Symptom
You are replicating a Business Partner from S/4HANA to SAP Sales Cloud (C4C) via interface via BusinessPartnerReplicationIn and the incoming message failed with error "No entry with the default script code exists".
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 Erroneous.
You can see: "No entry with the default script code exists".
Cause
The error says "No entry with the default script code exists" which indicates that the AddressRepresentationCode is missing under PostalAddress node in the incoming S/4HANA payload.
There has to be a postal address in the default script always.
Resolution
The C4C AddressRepresentationCode 0 should be mapped to the remote code ' ' (= space) using the Code List Mapping on the C4C side.
You can do it by following the below steps:
- Go to Business Configuration Work center;
- Click on Overview;
- Search for Code List Mapping;
- Open the "Code List Mapping for Integration with External Applications and Solutions" Activity;
- Click on Maintain Code List Mapping;
- Filter for "AddressRepresentationCode" Local Data Type Name;
- Add the 0 as Local Code and ' ' as External Code;
- Save and Close.
Make sure that you are using the same Mapping Group for the Code List Mapping in the "Business Partner Replication to SAP Business Suite" Communication Arrangement.
Keywords
AddressRepresentationCode; script; C4C; Cloud for Customer; Code List Mapping; Code; List; Mapping; PostalAddress; S/4HANA , KBA , LOD-CRM-INT-ERP , Integration of C4C with ERP , Problem