cancel
Showing results for 
Search instead for 
Did you mean: 

How to create a BP customer from external data on S/4Hana

dr_ajt
Participant
0 Kudos

Hi,

I need to programmatically create a customer on a SAP RISE S/4Hana system. The external system will be the system of reference for customers, and I need to replicate the data (creates and changes) into a SAP S/4Hana system. We are using a SAP CPI middleware system, so we can control the type and structure of the data that is presented, but we know that the external system does not have any concept of SAP's org structures, so we'll have to dynamically fill the details in as part of the interface.

I'm looking for options, and I've found several people asking the same question and no definitive answers.

  • We could generate a DEBMAS IDoc, but I don't believe that will create the Business Partner that is required.
  • We could use the CMD_EI_API class, but it's not clear that creates the Business Partner either, and someone commented that the class isn't for customer use
  • I see there is the BAPI_BUPA_CREATE_FROM_DATA as well

We just need to create or change the customer, the payer, bill_tos, ship_tos and any associated contacts. As I said the external system doesn't know about SAP company codes or sales orgs, terms of payment, and a whole range of actual master data you would think off, so they will all be defaulted into the data structure before making the call.

I'm just looking for the current best practice on how to create customers as part of day to day activity, rather than by migration or mass upload process.

Accepted Solutions (0)

Answers (1)

Answers (1)

banderson
Product and Topic Expert
Product and Topic Expert
dr_ajt
Participant
0 Kudos

Thanks, I wasn't aware of this, which is part of the reason I asked the question.

I'm currently looking at the class: cl_md_bp_maintain which isn't well documentent but seems to do everything I need. However I'll check out the SOAP interface as well. Though because we will need to derive a lot of data from z tables to construct our new BPs the standard class may be the better option.

Again, thanks for the suggestion.