Integration Blog Posts
cancel
Showing results for 
Search instead for 
Did you mean: 
Deljo_Davis
Explorer
0 Likes
382

Introduction

This guide is created especially for beginners who are just getting started with SAP Integration Advisor (IA) and want to understand how code value mappings work within Message Implementation Guidelines (MIG) and Mapping Guideline (MAG).

In SAP Cloud Integration (CPI), we typically maintain Value Mappings as separate artifacts and reuse them across integration flows. However, in Integration Advisor, the approach is different. For each MAG, we define source and target code lists inside the corresponding source and target MIGs, and then manually establish the code value mappings within the MAG during field mapping.


But what happens when the same code value mappings are needed across multiple MAGs?
Instead of creating them repeatedly, Integration Advisor provides a cleaner and more efficient solution: Global Code Value Mappings.
By defining code mappings at a global level, you can reuse them across any number of MAGs—saving time, avoiding duplication, and ensuring consistent mapping across your integration scenarios.
In this blog, we’ll walk through:

1) How to create custom code list 

2) Assigning the code list to the source and target fields

3) Create global code value mappings and use them across multiple MAGs in Integration Advisor.

 

Create custom code list

To create the custom code list, click on the custom type systems under the design tab and click on the Custom Codelist option.

Deljo_Davis_0-1774941964409.png

Then click on Add and create source and target code lists

Deljo_Davis_0-1774950562763.png

 

 

Entries can be added from other code lists or via a CSV upload.

Deljo_Davis_3-1774944148921.png

Alternatively, click Add an Entry and manually enter each source value along with its corresponding name

 

The source and target code lists shown below have been created to demonstrate this scenario

Deljo_Davis_1-1774950743200.png

 

Deljo_Davis_2-1774950850228.png

Assign the Code Lists to the fields:

Now, lets assign this source and target code list to the respective source and target MIG fields.

Open the source MIG, choose the source field that you want to link to the source code list, and then click the + icon

Deljo_Davis_3-1774951369853.png

 

Then choose From Custom Type Systems, select the custom codelist, and from the list of available code lists, pick the one you want to assign

Deljo_Davis_4-1774951509825.png

Similarly assign the target code list to the Target MIG

Deljo_Davis_5-1774951842529.png

 

Create and assign global code value mapping:

Now go to the MAG, map the corresponding source and target fields, and then click Create Global Mapping under the Code Value Mapping section.

Deljo_Davis_6-1774952165136.png

 
Once created, the global code mapping appears as shown below, and you can modify the name if needed

Deljo_Davis_7-1774952276169.png

Next, select "All remaining source values" under the add option to add the entries to the global code mapping

Deljo_Davis_8-1774952391494.png

Deljo_Davis_9-1774952449601.png

 

Return to the MAG and choose Assign Global Mapping. From the list, select the global code value mapping created earlier

 

Deljo_Davis_10-1774952553593.png

 

Deljo_Davis_11-1774952596650.png

And now this global code mapping can be used across multiple MAGs.

 

Conclusion:

This blog post describes the process of creating global code value mapping in SAP Integration Adviser and using them across multiple Mapping Guidelines.

Any insights or feedback on this approach would be greatly appreciated.