Symptom
You are replicating business partners from S/4HANA to C4C and you are sending PartnerFunction actionCode="05" or actionCode="05", however the relationship is not being deleted.
Environment
SAP Cloud for Customer
Reproducing the Issue
- Go to the Administrator work center.
- Go to the General Setting work center view.
- Open the Web Service Message Monitoring under System Administration.
- Select query All.
- Search for message successful BusinessPartnerReplicationIn incoming message.
- Click on View and select Payload
The incoming payload looks like:
<PartnerFunctions actionCode="03"> (or "05")
<BusinessPartnerRelationshipCatagoryCode>AB</BusinessPartnerRelationshipCatagoryCode> (AB means code ID)
<PartyInternalID>123456</PartyInternalID> (123456 means Business Partner ID)
<ReceiverPartyInternalID xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:nil="true"/>
<DefaultIndicator>false</DefaultIndicator>
</PartnerFunctions>
However, when checking the Master Data, the relationship hasn't been deleted/removed.
Cause
As per the standard design of the system, actionCode "03" or "05" is not supported on PartnerFunction level.
Resolution
In order to delete the PartnerFunctions, you need to set the following:
- Maintain LCTI = True in the incoming payload.
- Maintain the Relationship defined as Sales Area dependent in the C4C business configuration.
In case on the C4C the partner functions shouldn't be changed during inbound replication, you can defined the actionCode="06" as described in SAP Blog Post ERP to C4C: Integration of Account Relationships.
See Also
Keywords
Action Code, 05, 03, Delete, Remove, PartnerFunctions, Relationship, BusinessPartnerReplicationIn, C4C, S4, S/4HANA, ERP, Business Partner, actionCode , KBA , LOD-CRM-INT-ERP , Integration of C4C with ERP , LOD-CRM-INT-S4H , Integration of C4C with S/4 HANA , How To