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

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

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

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 /sap/opu/odata/sap/API_BUSINESS_PARTNER/A_CustSalesPartnerFunc?$filter= BusinessPartner eq 'ExampleBP123' 

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' 

Keywords

S4_PC, LO-MD-BP, S4HC, S/4HANA, A_SupplierPartnerFunc, A_CustSalesPartnerFunc, Partner Functions, KNVP , OData , KBA , LO-MD-BP , Business Partners , Problem

Product

SAP S/4HANA Cloud all versions