SAP Knowledge Base Article - Public

2939274 - You have already created a relationship with the same business partner. Adapt the relationship you just added or remove it.

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

  1. Login to Cloud for Customer system.
  2. Go to Administrator workcenter, General Settings View.
  3. Open Webservice Message Monitoring view.
  4. Find and check Business Partner replication inbound message, e.g. Service BusinessPartnerERPReplicationIn or BusinessPartnerReplicationIn.
  5. 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,

  1. Relationships
    1. Go to Business Configuration workcenter.
    2. Open relevant Implementation Project.
    3. Find and open fine-tuning activity General Business Partners.
    4. Click on Maintain Relationships.
    5. Search the relevant local relationship(as per the code list mappings maintained for external BusinessPartnerRelationshipCategoryCode).
    6. Select the checkbox "Sales Area Dependency".
  2. Account Team
    1. Go to Business Configuration workcenter.
    2. Open relevant Implementation Project.
    3. Find and open fine-tuning activity Party Role Definition.
    4. Search the relevant local Party Role code(as per the code list mappings maintained for external PartyRoleCode).
    5. 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

Product

SAP Cloud for Customer add-ins all versions ; SAP Cloud for Customer core applications all versions