Symptom
- The Partner Functions of a Customer Business Partner are to be queried with the OData API API_BUSINESS_PARTNER.
- The Partner Functions of a Supplier Business Partner are to be queried with the OData API API_BUSINESS_PARTNER.
Environment
SAP S/4HANA Cloud Public Edition
Reproducing the Issue
- A call is made using an Entity set, for example /sap/opu/odata/sap/API_BUSINESS_PARTNER/A_BusinessPartnerAddress?$filter= BusinessPartner eq 'ExampleBP123'.
- The complete set of partner functions are not returned.
Cause
Incorrect entity set.
Resolution
Customer Partner Functions
- The correct entity set to check the Partner Functions of a Customer Business Partner is A_CustSalesPartnerFunc.
- Example 1. /sap/opu/odata/sap/API_BUSINESS_PARTNER/A_CustSalesPartnerFunc?$filter= BusinessPartner eq 'ExampleBP123'.
Example 2. /sap/opu/odata/sap/API_BUSINESS_PARTNER/A_CustomerSalesArea(Customer='Customer',SalesOrganization='SalesOrganization',DistributionChannel='DistributionChannel',Division='Division')/to_PartnerFunction.
Supplier Partner Functions
- The correct entity set to check the Partner Functions of a Supplier Business Partner is A_SupplierPartnerFunc.
- Example /sap/opu/odata/sap/API_BUSINESS_PARTNER/A_SupplierPartnerFunc?$filter= BusinessPartner eq 'ExampleBP123'.
See Also
Keywords
S4_PC, LO-MD-BP, S4HC, S/4HANA, A_SupplierPartnerFunc, A_CustSalesPartnerFunc, Partner Functions, KNVP , OData, business partner, bp, SAP S/4HANA Cloud Public Edition, query, customer, vendor , KBA , LO-MD-BP , Business Partners , Problem
Product
SAP S/4HANA Cloud Public Edition all versions