SAP Knowledge Base Article - Public

2859009 - How to Query Customer/Supplier Business Partner Partner Functions via an OData API Call With API_BUSINESS_PARTNER in SAP S/4HANA Cloud Public Edition

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

  1. A call is made using an Entity set, for example /sap/opu/odata/sap/API_BUSINESS_PARTNER/A_BusinessPartnerAddress?$filter= BusinessPartner eq 'ExampleBP123'.
  2. The complete set of partner functions are not returned.

Cause

Incorrect entity set.

Resolution

Customer Partner Functions

  1. The correct entity set to check the Partner Functions of a Customer Business Partner is A_CustSalesPartnerFunc.
  2. 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

  1. The correct entity set to check the Partner Functions of a Supplier Business Partner is A_SupplierPartnerFunc.
  2. Example /sap/opu/odata/sap/API_BUSINESS_PARTNER/A_SupplierPartnerFunc?$filter= BusinessPartner eq 'ExampleBP123'.

See Also

Business Partner (A2X)

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