SAP Knowledge Base Article - Public

3543373 - Business Partner Replication From S4 to C4C Failing With the Error "No Entry With Default Script Code Exists"

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

  1. Go to the Administrator work center.
  2. Go to the General Setting work center view.
  3. Open the Web Service Message Monitoring under System Administration.
  4. 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:

  1. Go to Business Configuration Work center;
  2. Click on Overview;
  3. Search for Code List Mapping;
  4. Open the "Code List Mapping for Integration with External Applications and Solutions" Activity;
  5. Click on Maintain Code List Mapping;
  6. Filter for "AddressRepresentationCode" Local Data Type Name;
  7. Add the 0 as Local Code and ' ' as External Code;
  8. 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

Product

SAP Cloud for Customer core applications 2411