SAP Integration Hub

SAP AIF Handbook

How to Implement Value Mappings in SAP AIF

Guide #3 - SAP AIF Configuration Guide for SAP Consultants

SAP Integration Hub's avatar
SAP Integration Hub
Aug 13, 2026
∙ Paid

📚 SAP AIF Configuration Series - Guide #3

We are configuring value mappings on top of the iDoc interface we developed in our previous guides.

If you are new here and would like to see the previous articles, check out the following guides.

  1. How to configure your first IDoc monitoring interface in AIF.

  2. How to Configure Fixed Values in SAP AIF

Value mapping in SAP Application Interface Framework (AIF) is a mechanism used to translate incoming external values into internal SAP-compliant values during message processing.

It’s needed because different source systems often use different coding or naming conventions than SAP. Value mapping ensures that these external representations are converted into the correct internal values, so the data can be processed without errors and remains standardized across interfaces.

Scenario

In this example, let’s assume the external system sends us the passenger (customer) master information with the title as MISTER or MISTRESS.

However, when we create the customer master data, we don’t want to use these external values in the title; instead, we want to save them as Mr. and Mrs.

We’ll create a value mapping for the FORM field in the iDoc.

The external values are converted into standard internal SAP values as follows:

  • MISTER → Mr.

  • MISTRESS → Mrs.

This ensures that incoming data is normalized during processing, regardless of how the external system represents the salutation.

Step 1 - Define Value Mapping

Transaction: /AIF/CUST -> SAP Application Interface Framework -> Error Handling -> Define Namespace-Specific Features -> Define Structure Mappings -> Define Field Mappings

In Define Structure Mappings -> Define Field Mappings, create a new entry.

SAP AIF Customizing screen showing the New Entries button for defining a field mapping
Creating a new field mapping entry under Define Field Mappings in /AIF/CUST

Make sure the destination structure is mapped correctly. We created this mapping in the previous example for Fixed Values.

SAP AIF Customizing screen displaying the destination structure assigned to the II_FL_CUST interface.
The destination structure mapping created in the Fixed Values chapter, which this field mapping builds on top of.

⚠️ Warning

Make sure the interface II_FL_CUST in namespace ZDEMO is already working before you start this step.

The value mapping you’re about to create sits on top of the structure mapping from the Fixed Values chapter, so that needs to be in place first.

Maintain the following values under Define Field Mapping:

  • Field in Destination Structure: E1SCU_CRE-E1BPSCUNEW-FORM — the field you’d like to transform

  • Field Name 1: E1SCU_CRE-E1BPSCUNEW-FORM — the field you’d like to transform

  • Namespace: ZDEMO Value Mapping: VM_FORM — the name of the new value mapping table

SAP AIF field mapping screen with Field in Destination Structure, Field Name 1, Namespace, and Value Mapping fields filled in.
Field mapping entry for the FORM field, pointing to the new value mapping VM_FORM in namespace ZDEMO.

💡 Tip

You can select the field from the drop-down.

SAP AIF field mapping screen with a drop-down list open, showing the FORM field being selected.
Selecting the FORM field from the structure drop-down when creating the field mapping.

Since the value mapping doesn’t yet exist, you’ll be prompted to create it.

Confirm the dialog.

SAP dialog box asking to confirm creation of a new value mapping named VM_FORM.
Since VM_FORM doesn't exist yet, AIF prompts to create it - confirm to open the value mapping maintenance session.

Then define the value mapping with the following settings:

SAP AIF value mapping definition screen with description, data element, value count, and Master Data settings.
Defining VM_FORM as a single-value, Master Data mapping tied to data element S_FORM.
  • Value Mapping Description: Map customer form (salutation)

  • Data Element for INT: S_FORM

  • Number of External Values: 1

  • Single or Multiple Value Mapping: Single

  • Customizing or Master Data: Master Data

💡 Customizing or Master Data?

This controls how and where the mapping values are maintained.

  • Master Data - values are maintained at runtime directly in transaction /AIF/VMAP. They’re client-dependent, meaning each client manages its own set of mapping values. Use this when the mapping is likely to change over time or differs between clients (e.g. sandbox vs production).

  • Customizing - values are maintained in the IMG and transported like any other Customizing entry. Use this when the mapping is stable and needs to be consistent across all clients through the transport landscape.

For most real-world interfaces, Master Data is the more practical choice because business users or support teams can update the values directly in /AIF/VMAP without needing a transport.

Our AIF eBook with a full collection of these guides is coming soon!

User's avatar

Continue reading this post for free, courtesy of SAP Integration Hub.

Or purchase a paid subscription.
© 2026 SAP Integration Hub · Privacy ∙ Terms ∙ Collection notice
Start your SubstackGet the app
Substack is the home for great culture