Symptom
You are replicating Business Partners from SAP Business Suite to SAP Cloud for Customer, webservice messages are failing in Cloud for Customer with below errors.
"You have already created a relationship with the same business partner. Adapt the relationship you just added or remove it."
"Relationship already exists. Please change or delete relationship."
Environment
SAP Cloud for Customer
Reproducing the Issue
- Login to Cloud for Customer system.
- Go to Administrator workcenter, General Settings View.
- Open Webservice Message Monitoring view.
- Find and check Business Partner replication inbound message, e.g. Service BusinessPartnerERPReplicationIn or BusinessPartnerReplicationIn.
- Check the Error Log.
Cause
This error is mainly due to duplicate Relationships/Account Teams being added to the Customer. The duplications in the payload would be mainly due to multiple Partner Functions sent with set of Partners but within different Sales Areas.
But the corresponding Party Role(s) or Relatinships(s) are not set as Sales Area dependent in Cloud for Customer. This leads to system trying to add same Account Team or Relationship multiple times(filtering out the associated Sales Area).
Resolution
Since you are replicating Sales Area Dependent Partner Functions, you need to ensure corresponding Party Role or Relationships have to be set as Sales Area Dependent in Cloud for Customer.
To do so,
- Relationships
- Go to Business Configuration workcenter.
- Open relevant Implementation Project.
- Find and open fine-tuning activity General Business Partners.
- Click on Maintain Relationships.
- Search the relevant local relationship(as per the code list mappings maintained for external BusinessPartnerRelationshipCategoryCode).
- Select the checkbox "Sales Area Dependency".
- Account Team
- Go to Business Configuration workcenter.
- Open relevant Implementation Project.
- Find and open fine-tuning activity Party Role Definition.
- Search the relevant local Party Role code(as per the code list mappings maintained for external PartyRoleCode).
- Select the checkbox "Sales Data".
Once these configurations are done, restart the failed messages.
See Also
KBA - https://launchpad.support.sap.com/#/notes/2877648
Keywords
Sales Area; Partner Functions; Relationships; Account Team , KBA , AP-RC-WSM , Web Service Message Monitoring View , LOD-CRM-INT-S4H , Integration of C4C with S/4 HANA , LOD-CRM-INT-ERP , Integration of C4C with ERP , LO-INT-COD , CRM On Demand Integration , Problem