cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

SAP Integration Suite - Graph / create requests

schneira
Explorer
764

Hello everybody!

I'm working on SAP Graph and I'm wondering how a Business Partner could be created. In the moment my Business graph has only one source which is a S4/HANA instance (RISE contract / not cloud).

What I miss is the BusinessPartnerCategory attribute. So at a API POST request using /sap.graph/BusinessPartner I get error 'Business partner category  does not exist'. 

Also the API Navigator says id  -> 'This attribute is required for Create requests'. But I want to create one.

Please  could you give some hints. How should the body of the POST look like.

Thx and best regards,

Ralf Schneider

Accepted Solutions (1)

Accepted Solutions (1)

chris_lindmayer
Advisor
Advisor
Hello Ralf,
 
Thank you for using our product! We're glad you're exploring its features and we encourage you to continue discovering all the amazing things it can do.

Graph offers multiple options for you (and a recommendation):

Option 1: Use the "Mirrored Entity". Graph exposes the complete BusinessPartner entity of S/4 HANA in the sap.s4 namespace (sap.s4.BusinessPartner).

Option 2: Create your own "Custom Entity" based on sap.s4.BusinessPartner, tailored to your use case. You can simplify access by focusing only on relevant fields and adapt the naming to match your domain wording. Another powerful option is to combine it with your other custom data sources and API entities, or even create links to related entities (like other mirrored entities).

Option 3: The "sap.graph" namespace provides an opinionated, fixed simplification over standard entities. It is not very customizable, but it demonstrates the basic idea of custom entities. In particular, for sap.graph.BusinessPartner, the category is represented as different specializations of BusinessPartner, such as sap.graph.CorporateAccount or sap.graph.IndividualCustomer.

My recommendation is around Option 1 and Option 2. This is future-proof and gives you all the options to grow your solution.


I hope this information helps! If you have any more questions or need further clarification, please let me know.
 
Regards,
 
Christian
schneira
Explorer
0 Likes

Hi Christian, Thanks for your reply.

Your remark in Option 3 ...

In particular, for sap.graph.BusinessPartner, the category is represented as different specializations of BusinessPartner, such as sap.graph.CorporateAccount or sap.graph.IndividualCustomer

was the information I missed. I think Option 2 makes sense for us.

Thx for help and best regards,

Ralf 

Answers (0)