SAP ABAP S4 BP 客户供应商导入SAP推荐方法CL_MD_BP_MAINTAIN notes:2417298
Symptom
You want to create Business Partner with Customer and Supplier roles in the same system or want to integrate data with various other landscapes.
Other Terms
CL_MD_BP_MAINTAIN, API for Business Partner, IDOCs, BP SOA Service, S/4 HANA
Reason and Prerequisites
- As Business Partner (BP) is a leading object in SAP S/4HANA, it is necessary to replicate all the customers and suppliers as Business Partners.
- You need an API to create Business Partner with Customer and Supplier roles.
Solution
The following are possible use-cases:
- Requirement to create business partners in the same system: You can use API CL_MD_BP_MAINTAIN. Pass the data in CVIS_EI_EXTERN structure format and pass it to the method VALIDATE_SINGLE. This method validates all the data that is passed; after that, you can use the method MAINTAIN to create business partners.
- Integration of data with various landscapes: If you want to integrate BP/Customer/Supplier master data across different systems, you can use following interfaces:
a. IDOCs
There are two types of IDocs available that can be used:- DEBMAS: If you want to integrate customer (without BP) data between two systems, this IDOC can be used.
- CREMAS: If you want to integrate supplier (without BP) data between two systems, this IDOC can be used.
b. SOA Services
- If the system has data of Business Partners, use SOA services for integration. Business Partner SOAP services enable you to replicate data between two systems. There are both inbound and outbound services available. Refer to SAP Note 2472030 for more information.
However, the IDocs DEBMAS and CREMAS are not recommended for data integration between S/4HANA systems. In S/4HANA, Business Partner is the leading object. Therefore, you can use Business Partner web services (SOAP) for SAP S/4HANA integration.
Note: IDOCs integration in S/4 for creation of Customer/Supplier with same number as BP (Customizing configured as BP Internal numbering and Customer/Supplier External numbering with same number) will not be supported.
文章来自于网络,如果侵犯了您的权益,请联系站长删除!