Symptom
While replicating plants from S4H to C4C, the error "Code List Mapping For Value XYZ Of Data Type Country Code Missing" is raised in the C4C Webservice message monitoring.
Here XYZ represents the ISO country code sent from S4.
Environment
- SAP Cloud for Customer
- SAP S/4 Hana
Reproducing the Issue
- Go to Administrator Work center.
- Go to Webservice Message Monitoring.
- Select the failed message with relevant service interface.
- Navigate to error log , check the error message "Code List Mapping For Value XYZ Of Data Type Country Code Missing".
- When you check the payload , you can see the value is sent under CountryCode node which refers to XYZ in the above message.
Cause
The S4 Hana webservice PlantMasterDataReplicationBundleRequest_Out by design uses for country code in the plant address the ISO country alpha-3 code (char 3). Any mapping of sent data should be implemented on the receiver side.
Resolution
In the C4C tenant:
- Go to the Business Configuration work center and click on Overview.
- Search the configuration element Code List Mapping for Integration with External Applications and Solutions.
- Click on Maintain Code List Mapping.
- Under Code List Mapping Definition select CountryCode for Local Data Type Name.
- Under Code List Mapping Rule select Mapping Rule = Local And Remote Codes Are Equal.
- Change the rule to Map Individual Codes.
- Now it is possible to add/edit now the existing mappings for the 3 digit ISO country codes to the C4C 2 digit countries code.
Keywords
s4/hana, c4c, plant integration, code list mapping, country code, CAN, CA, region code, QC, Quebec, integration error, ISO country code, PlantMasterDataReplicationBundleRequest_Out, mapping error, local context , KBA , LOD-CRM-INT-S4H , Integration of C4C with S/4 HANA , How To
SAP Knowledge Base Article - Public