Symptom
Your requirement is to replicate the Business Partners from an external system to S/4HANA Cloud system. Upon triggering the replication, you see the below error in the S/4HANA Cloud system:
BP role YYYYYY does not exist for partner XXXXXX
where XXXXXX represents the Business Partner ID
YYYYYY represents the Business Partner Role
00000XXXXXX represents the Internal ID of the Business Partner
XYZ represents the Business System
Environment
SAP S/4HANA Cloud
Reproducing the Issue
Trigger the Replication from the external system to S/4HANA Cloud system.
- Login to the S/4HANA Cloud system
- Go to the app Message Dashboard
- Calendar Monitor
- From (Date/Time): MM/DD/YYYY HH:MM:SS
- To (Date/Time): MM1/DD1/YYYY1 HH:MM:SS
- Search
- Select the Namespace / Interface : Business Partner Replication from Client - BP_IN/00001
- Click on Errors
- On the Monitoring and Error Handling screen, click each of the messages to understand the details of the Logs
Error occurred for partner 00000XXXXXX; passed on to Forward Error Handling
Business partner XXXXXX does not exist
BP role YYYYYY does not exist for partner XXXXXX
- Go to the app Manage Key Mapping
- Object Selection
- Business Object Type: Business Partner
- Business System: XYZ
- Object ID Type/Object ID: Business Partner Number / XXXXXX
The BP is not yet created but key mapping is generated.
Cause
The Internal IDs in the request payload contain the leading zeros.
For example: 00000XXXXXX is sent instead of XXXXXX for Business Partner, Customer and Supplier.
<InternalID>00000XXXXXX</InternalID>
Resolution
As per the SAP Help Portal, the Internal ID shall be provided without leading zeros.
<InternalID>XXXXXX</InternalID>
Ensure that the Internal ID(s) in the request payload do not contain the leading zeros. Further, delete the already created key mapping from the app Manage Key Mappings and thereafter trigger the replication from the external system to S/4HANA Cloud system.
See Also
Keywords
Key Mapping, Internal ID, Business Partner, InternalID, Replication, Zero , KBA , LO-MD-BP-WS , Web Service for Business Partner , Problem