[英]Cloud-SDK Filter by subfields
I'm using S4 Cloud-SDK to make queries on SAP S/4 Hana and I trying to get information about Business Partners filtering with company code. 我正在使用S4 Cloud-SDK在SAP S / 4 Hana上进行查询,并且尝试获取有关使用公司代码过滤的业务伙伴的信息。 The fields that I'm looking for are:
我正在寻找的字段是:
For that I'm using BusinessPartnerService to get these fields. 为此,我正在使用BusinessPartnerService来获取这些字段。 The problem is, I'm doing lots of queries to get this information and I would like to reduce the number of queries to the database.
问题是,我正在做很多查询来获取此信息,并且我想减少对数据库的查询数量。 One of the queries is listed below.
查询之一在下面列出。
List<BusinessPartner> businessPartners = businessPartnerService.getAllBusinessPartner().select(
BusinessPartner.TO_SUPPLIER.select(Supplier.TO_SUPPLIER_COMPANY),
BusinessPartner.TO_BUSINESS_PARTNER_CONTACT, BusinessPartner.TO_BU_PA_IDENTIFICATION,
BusinessPartner.TO_BUSINESS_PARTNER_ADDRESS, BusinessPartner.TO_BUSINESS_PARTNER_TAX, BusinessPartner.ALL_FIELDS)
.execute();
Is it possible to filter the query above using an EntityLink? 是否可以使用EntityLink过滤上面的查询? For example, something similar to the following:
例如,类似于以下内容:
.filter(BusinessPartner.TO_SUPPLIER.select(
Supplier.TO_SUPPLIER_COMPANY.COMPANY_CODE.eq("ABCD")))
更新: 2.8.0和更高版本支持1:1导航属性。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.