Sub topic 11
Converting and Mapping Values
This chapter assumes you have created a migration project, selected migration objects, and prepared source data with templates. It also assumes the data has passed validation. Here you translate legacy values into the values your S/4HANA system expects.
Why values need mapping
Legacy systems rarely use the same codes as the target system. A legacy file might say DE for Germany, KG for kilogram, or NET30 for a payment term. S/4HANA may use different keys for the same meaning, or may not know the legacy value at all. If the cockpit loads an unknown value, the record fails with an error message.
The migration cockpit handles this with value mapping. You define, per field, which source value becomes which target value. The cockpit applies these rules while it converts the data, so you do not edit the source file.
Where value mapping sits in the flow
If you change a mapping after a simulation, run the simulation again. The earlier result no longer reflects your rules.
Defining mapping rules
Open your migration object in the project and go to its mapping step. The cockpit lists the fields that support value mapping. For each field, you can maintain rules in two ways:
- Manual entry. Type each source value and its target value in the mapping table. This suits short lists, such as a handful of units of measure.
- Download and upload. Download the list of source values found in your data, fill in the target column in a spreadsheet, and upload it again. This suits long lists, such as hundreds of material groups.
Some fields also let you set a fixed default for any unmapped value. Use this carefully, because a default can hide real data problems.
Example
| Source value | Target value | Field |
|---|---|---|
| DE | DE | Country |
| KG | KG | Unit of measure |
| NET30 | 0030 | Payment terms |
| 10 | 0001 | Customer group |
Notice that the first two rows map a value to itself. You still need to confirm such values, because the cockpit expects an explicit rule for every source value it finds in a mapped field.
Common errors
- Missing target values. A source value has no rule, so the record cannot be converted. Check the list of unmapped values before you simulate.
- Target value does not exist. The target value you typed is not defined in the S/4HANA system, for example a payment term not yet configured. Create it in customizing first, or the load fails.
- Case and spacing differences.
kgwith a trailing space is a different source value fromKG. Clean the source data before you map it. - Stale mappings. After you upload a new version of the source file, new values may appear. Re-check the mapping list.
Checking your mapping
Before you leave this step, confirm three things:
- Every source value in each mapped field has a target value.
- Every target value exists in the S/4HANA system.
- You saved the mapping, so the simulation uses it.
Exercise
Your source file contains the unit PC for pieces, but your S/4HANA system uses ST. You map PC to ST and run a simulation. The simulation still reports an error for one record that uses pc. What is the likely cause, and how do you fix it?
Show answer
The source value pc differs in case from PC, so the cockpit treats it as a separate value with no rule. Either clean the source data so all values use the same case and upload it again, or add a second rule that maps pc to ST. Then run the simulation again.