4 weeks ago
Hello SAP Community,
I am currently working with SAP S/4HANA Public Cloud and I need to programmatically retrieve Customer Hierarchies (e.g., parent-child relationships between sold-to, payer, bill-to, ship-to partners, etc.). After reviewing the available APIs in the SAP Business Accelerator Hub, I have not found an OData or SOAP API that explicitly supports fetching customer hierarchies or customer master relationship data.
I have already explored the following:
Business Partner APIs (API_BUSINESS_PARTNER)
Available CDS Views and Communication Scenarios
None of these seem to expose the full customer hierarchy data as required for our use case.
My questions:
Is there an existing standard API or communication scenario in S/4HANA Public Cloud that supports retrieving customer hierarchies?
If not available as a standard API, is there a released CDS View or extension point that can be used via a custom communication scenario?
Are there recommended approaches or best practices for handling this requirement in a public cloud environment, given the extensibility restrictions?
Any guidance or references would be highly appreciated.
Thank you in advance!
Request clarification before answering.
Hello @THEMBO_JONATHAN
In help portal, I found a CDS view Customer Sales Area Partner Function (I_CUSTSALESPARTNERFUNC) which mentions that:
This CDS view retrieves data related to customer partner function.
Could you please have a look on that?
Best regards,
Irene
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks
The Customer Sales Area Partner Function is also present in the core public api: Business Partner
So I am able to pull data from the end point related to the customer sales partner function and looking at it, it does not meet my requirement of obtaining the
Customer Hierarchies
User | Count |
---|---|
73 | |
18 | |
9 | |
8 | |
7 | |
4 | |
4 | |
4 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.