
In this post blog, I will guide you how to identify problems in the Business Partner Replication process and how to correct them.I am also sharing reason(s) of common issues and I collected the frequently asked questions with the answer/solution/current state by SAP.
The purpose of this document is to help you to identify the root cause of the issue in the Business Partner replication process, especially, if the root cause is not a bug but an incorrect configuration, incorrect user handling, knowledge gap, modification.
The content of the blog is the following
Target audience: Functional, technical expert, Consultant
Version: SAP S/4HANA, ERP, MDG, Ariba, C4C
To replicate Business Partner from one system to another one, the following configuration guide needs to be followed:
If the replication is not working correctly or you are facing an issue, ensure that the guide is followed correctly. Many times, the root cause of the replication issue is an incorrect customizing. For questions related to the configuration, involve the local consultant, or use our SAP Community which is the official channel for consulting inquiries.
Required release level for Ariba
Required release level for C4C
Older SAP S/4HANA, SAP ERP or SAP MDG releases do not support the end-to-end scenario as a SAP standard solution. SAP does not recommend building any custom solution for unsupported software products / releases.
With this feature the BP can be replicated from the source to the target system. It is working based on the current state logic. It means that the BP with the roles which are available in the source, will be contained in the payload and replicated to the target system. If the data is not contained in the payload, the data will be not replicated/deleted in the target system. If based on your business requirement you do not want to replicate all data, you can use DRFF filters or modification. Related to the DRFF setting, scroll until the FAQ section.
In order to avoid issues due to the configuration, ensure that the configuration such us CVI, number range…etc is same in the source and in the target.
As an example, in the case of direct replication mode, within transaction BP in S/4HANA, the data is modified or created then the change pointer is always written, and replication is triggered when we click on the save button as the replication event is also registered here.
This is determined within the customizing:
*Please note that this customizing is system specific.*
Automatically Trigger:
Manually Trigger: via DRFOUT transaction
If the direct replication is not working (the BP does not replicate to the target system by pressing the save button automatically in spite of the fact that the configuration is done correctly) test, if the manual replication (directly from Tcode DRFOUT) is working. The Function module MDG_BS_BP_OUTBOUND_DRF is responsible for triggering the service in direct mode. If the manual replication is working but the direct is not, check, if the FM MDG_BS_BP_OUTBOUND_DRF is calling during direct mode. This is activated in CRMC_BUT_CALL_FU.
Possible root cause(s):
As mentioned above many times the root cause of the BP replication issue is that the guide is not followed correctly. If you are facing an error, ensure that the Guide is followed correctly.
If the Guide is followed correctly, check if the customizing in the target system is compatible with the source system. If the customizing is different, can cause an error in the target.
To check, if the key mapping is correct/ solve key mapping issues, you can read the following blog: Troubleshooting Business Partner Key Mapping Issues
Check, if the original XML file contains the data. If no, create a ticket on the component component which belongs to the source system. In the section FAQ you can find a help how to identify the correct component.
Involve your local development team to check, if there is any Z program/ Z enhancement is causing the issue.
Create a ticket for SAP on the correct component where the target system belongs. In the section FAQ you can find a help how to identify the correct component.
Service definition: BUSINESSPARTNERSUITEBULKREPLIC for method BP_SUITEBULK_REPL_REQ_IN
Service definition: BusinessPartnerRelationshipSUI for method BUSINESS_PARTNER_RELATIONSHIP
First always test, if the issue is recreatable in the target system. Click on the button execute and check, if the error is there. If yes, the issue is recreatable. At this point, copy the message ID of the error. After that Go back to the Step 5, Test the correct service definition and load the file again.
Example issue: The Payload is successful but the update did not happen in the BP. There is no error. Key mapping is correct.
The steps are the same as debug failed payload until Step 9.
Now the XML file looks like as first-time replication so you can debug.
E.g., map custom fields, prevent the value deletion in the target, if the field is not contained in the payload ( and also the field is not in the source system)
For inbound: MDG_SE_BP_BULK_REPLRQ_IN
For outbound: MDG_SE_BP_BULK_REPLRQ_OUT
The Z programs will be listed. You can set breakpoint in every Z program and test one by one if the incorrect coding in a Z program is causing the issue.
To jump between the Z programs use F5 button
Always ensure that it is still active
To skip the Z program you can use the Goto Statement
Menu >> Debugger >> Goto Statement
CL_MDG_BP_FND_MAPPING | For issues relating to Mapping of Data |
Inbound | |
MAP_BUPA_COMPLETE_IN | Map Business Partner complete: Inbound |
MAP_CURR_STATE_IN | Map Complete Transmission indicator to API Current State |
MAP_BUPA_CONF_COMPLETE_IN | Map Business Partner complete: Confirmation Inbound |
APPLY_SEGMENT_FILTERS | Apply DRF Segment Filters in Inbound Processing |
Outbound | |
FILL_BUPA_MSG_OUT | Fill single BUPA Message for Outbound |
MAP_BUPA_COMPLETE_OUT | Map Business Partner complete: Outbound |
MAP_COMMON_DATA_OUT | Map Common Data: Outbound |
HANDLE_BP_CURRENT_STATE | Handle potential data loss in BP from outbound service |
FORCE_CTRL_INITIAL_VALUES | Analyze Data and force sending of Initial Values |
Mapping | |
FILL_MESSAGE_HEADER | Fill Message Header |
EXECUTE_STEP | Execute SMT Mapping Step |
HANDLE_SMT_ERROR | SMT Error Handling |
MAP_LOG | Map the LOG to the BAPIRETURN table |
MAP_LOG_OUT | Map the BAPIRETURN table to the LOG |
Common | |
MAP_COM_DATA_NOTES_IN | Map Communication Notes: Inbound |
MAP_COM_DATA_NOTES_OUT | Map Communication Notes Outbound |
MAP_COMMON_DATA_IN | Map Common Data: Inbound |
MAP_TAX_NR_IN | Map Tax Numbers: Inbound |
MAP_TAX_NR_OUT | Map Tax Numbers: Outbound |
MAP_PAYMENT_CARD_IN | Map Payment Cards for inbound |
MAP_PAYMENT_CARD_OUT | Map Payment Cards for Outbound |
Address | |
MAP_ADDRESS_INFO_IN | Map Address Information: Inbound |
MAP_ADDRESS_INFO_OUT | Map Address Information: Outbound |
BUPA_GET_ADDRESS_CVI | Get BP Address in CVI structure format |
Misc. | |
READ_BUPA_GROUPING | Read Business Partner Grouping |
READ_BUPA_RECEIVER_ID | Read Business Partner Receiver ID |
MAP_CREDIT_WORTHINESS_OUT | |
MAP_CREDIT_RATING_OUT | |
MAP_CREDIT_WORTHINESS_IN | |
MAP_CREDIT_RATING_IN | |
ADJUST_DATA_AND_DATAX | Adjusting data and datax for current state |
Read KBA 3393140 - Detailed explanation and examples of the use of segment filters in BP SOA webservice (DRF)
System A >> System B >> System C
Requirement: Once the BP is replicating to the system B, the system replicate that BP automatically to the system C
This scenario does not support in standard.
Workaround exists in SAP Note 2849394 - Subsequent replication is not triggered from an inbound web service to S/4HANA to further ...
https://blogs.sap.com/2020/03/13/drf-site-and-bp-master-data-between-s-4hana-systems/
https://blogs.sap.com/2018/08/06/configuring-service-group-in-soamanager/
Employee Business Partner replication was temporarily disabled in 1909. This has been reverted.
KBA 3462733 - DRF_OUT doesn't include Driver Business Partner Role details
Read the blog BP Number determination during replication
KBA 2841479 - Returns Supplier is not replicated via DRFOUT
Belongs to the correct component of the country specific component
E.g., CIN number is missing for India from the payload << belongs to the component FI-LOC-SD-IN
SAP Note 3314768 - S/4 BP: Adjustments for Data Replication with Pending Messages
Common key mapping issues:
In the following table, you can see some of the most common error messages returned during the inbound processing when there are key mapping issues in the payload:
Message text | Technical number |
Object Identifier type 888 still exists for ID value | 006(BS_SOA_COMMON) |
Object identifier type 927 still exists for ID value | 006(BS_SOA_COMMON) |
External Address ID already used for Business Partner Guid & | 009(BP_DATAREPL_FND) |
Address doesn't exist | 010(AM) |
Business partner &1 already exists | 286(R1) |
Address is still being used and may not be deleted | 455(R1) |
BP role &1 does not exist for partner &2 | 657(R11) |
Task insert is not supported for existing customer | 007(CVI_EI) |
Task insert is not supported for existing vendor | 042(CVI_EI) |
Not always an error will be raised. Sometimes, wrong key mapping will just cause unexpected behaviors:
See blog Troubleshooting Business Partner Key Mapping Issues
Please provide us the following information in the problem description, if you create a webservice ticket for us:
If you have any questions, feel free to ask on our SAP Community.
I hope this blog post was helpful for you. If so, click on "like" or "share". I'm looking forward to your feedback and thoughts or clarification questions you may have in the comment section below.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
5 | |
4 | |
4 | |
3 | |
3 | |
3 | |
3 | |
3 | |
3 | |
2 |