SAP Knowledge Base Article - Public

2652331 - RegionCode is Not Present by Default in Code List Mapping

Symptom

You send a message from your external system to C4C (Cloud for Customer) and you notice that the region is not correctly displayed in C4C, because the RegionCode in Code List Mapping is not maintained as expected. You check the code list mapping and the RegionCode's description is different from what you expect.

Environment

SAP Hybris Cloud for Customer

Reproducing the Issue

  1. Go to the Business Configuration work center.
  2. Search for the activity: Code List Mapping for Integration with External Applications and Solutions.
  3. Click on the hyperlink: Maintain Code List Mapping.
  4. Search for Local Data Type Name -> RegionCode.
  5. Observe the list of Local Codes, Description and External Codes: one or multiple code might be displayed with regards to a different country/region.

Cause

The list of RegionCodes does not include all the regions for all countries automatically.

E.g. RegionCode AB is displayed in the list for country X (where AB represents the RegionCode and X the country), however, the same code in your external system exists for country Z (where Z represents the second country).

Resolution

When the region code is different from what you expect, you need to create an additional Local Context for the respective country for RegionCode in Code List Mapping.

  1. Go to the Business Configuration work center.
  2. Search for the activity: Regions -> to make sure that the code you are looking for is available for the country.
  3. Search for the activity: Code List Mapping for Integration with External Applications and Solutions.
  4. Click on the hyperlink: Maintain Code List Mapping.
  5. Search for Local Data Type Name -> RegionCode.
  6. Add a new row in the Code List Mapping Rule section and choose the respective country in the Local Context column.
  7. Choose the mapping rule: Local and Remote Codes Are Equal.
  8. Save the changes.

Note: You can also use the mapping rule Local and Remote Codes are Equal with wild card - in this case, if the country code and the corresponding region code exist in C4C (even if they are not listed in Code List Mapping), they are going to be matched automatically and the message should not fail.

wildcard.png

See Also

Cloud for Customer Integration – Code List Mapping of Region Codes

Keywords

RegionCode, code list mapping, regions, local context , KBA , LOD-CRM-INT-ERP , Integration of C4C with ERP , LOD-CRM-INT-CRM , Integration of C4C with CRM , How To

Product

SAP Cloud for Customer add-ins all versions