SAP Knowledge Base Article - Public

2756349 - Error: Target group must be different from source group - When Replicating Business Partner Hierarchy

Symptom

You replicate business partner hierarchy from SAP ERP to SAP Cloud for Customer (C4C), but the message fails in Web Service Message Monitoring with the below error:

'Target group must be different from source group'

Environment

SAP Cloud for Customer

Reproducing the Issue

Prerequisites: you have a working integration scenario using interface BusinessPartnerHierarchySimpleReplicationIn.

  1. Go to the Administrator work center.
  2. Navigate to General Settings > Web Service Message Monitor.
  3. Observe the error log of the failed message for interface BusinessPartnerHierarchySimpleReplicationIn, the below error is displayed:
    'Target group must be different from source group'

Cause

This error usually occurs during replication (or in the Data Workbench) when an account is set as its own parent.  This is a cyclic relationship and it is not supported by the system.

E.g.

<BusinessPartnerHierarchySimple>

      <BusinessPartnerInternalID>ABC</BusinessPartnerInternalID> (ABC represents the ID of the account)

      <BusinessPartnerInternalIDTypeCode>918</BusinessPartnerInternalIDTypeCode>

      <ParentBusinessPartnerInternalID>ABC</ParentBusinessPartnerInternalID>

      <ParentBusinessPartnerInternalIDTypeCode>918</ParentBusinessPartnerInternalIDTypeCode>

    </BusinessPartnerHierarchySimple>

 You might have a valid connection between different sales areas in ERP and have a link between customer - sales org - distribution channel - division. but C4C still skips the sales area in the customer hierarchy.

Resolution

The customer hierarchies in C4C are sales area independent, whereby in ERP they are sales area dependent.

Therefore, it needs to be checked if all parent relationships are unique, even if the sales area dependency is removed during extraction. Only if the uniqueness of all parent relationships are confirmed, the extraction to C4C is recommended. Otherwise the selection criteria in the extraction report and the filter criteria in the distribution model needs to be adjusted, so that the uniqueness is ensured, this can be done by filtering on the sales area.

There is a check report RCOD_CUSTHIER_CHECK you can use for this.

Keywords

target group, source group, business partner hierarchy , KBA , LOD-CRM-INT-ERP , Integration of C4C with ERP , How To

Product

SAP Cloud for Customer add-ins all versions