SAP MDG · UTILITIES
How do I maintain SAP MDG value mapping via file export and import?
Use value mapping to map system-internal code values to values in a global or system-specific code list, then mass maintain the mappings by exporting XML with MDG_EXTR_FPM_CMP, editing the XML, importing it with MDG_FILE_UPLOAD_CMP, and verifying the result in MDGIMG. The guide applies from MDG 7.0 and SAP S/4HANA 1511.
Use value mapping to map system-internal code values to values in a global or system-specific code list, then mass maintain the mappings by exporting XML with MDG_EXTR_FPM_CMP, editing the XML, importing it with MDG_FILE_UPLOAD_CMP, and verifying the result in MDGIMG. The guide applies from MDG 7.0 and SAP S/4HANA 1511.
Use value mapping to map system-internal code values for a customizing element to an external code list, then mass maintain the mapping by exporting it to XML, enriching the XML, importing it back, and verifying the result in MDGIMG. The guide applies from MDG 7.0 and SAP S/4HANA 1511.
Process flow
- Confirm prerequisites and business-agreed mappings.
- Open MDGIMG and go to General Settings > Value Mapping > Maintain Value Mapping.
- Create or verify the initial mapping relationship for TABL / MDG_BS_MATERIAL_INDUSTRIAL_SE1.
- Create the initial code mappings in Define Value Mapping.
- Start MDG_EXTR_FPM_CMP and export the value mapping as XML.
- Edit the XML in an XML-capable text editor and add or modify CodeMapping entries.
- Start MDG_FILE_UPLOAD_CMP and import the edited XML.
- Review the import log and verify the mapping back in MDGIMG.
MDGIMGCross-Application Components > Master Data Governance > Central Governance > General Settings > Value Mapping
Open Maintain Value Mapping and maintain the value mapping relationships and code mappings.
PFCGRole Menu > Supplier Governance > Data Exchange > Load Data (File-Based) > Export Master Data
Locate or expose MDG_EXTR_FPM_CMP for file-based export.
PFCGRole Menu > Supplier Governance > Data Exchange > Load Data (File-Based) > Import Master Data
Locate or expose MDG_FILE_UPLOAD_CMP for file-based import.
Referenced tables
| Object | Purpose |
|---|---|
MDG_BS_MATERIAL_INDUSTRIAL_SE1 | Global data type used in the source example for material industry sector value mapping. |
MARA-MBRSH | Example customizing field used by the guide for industry sector mapping. |
ILLUSTRATIVE ABAP SAMPLE
Example XML CodeMapping entry from the guide
The source shows the following entry for adding a new mapping in the exported XML. Use the XML exported from your own system as the baseline, because the guide notes inconsistencies between screen values, prose, and XML representation.
1<CodeMapping>
2 <InternalCode>1P</InternalCode>
3 <ExternalCode>005</ExternalCode>
4 <InMapDefault>/</InMapDefault>
5 <OutMapDefault>/</OutMapDefault>
6</CodeMapping>The remaining configuration, implementation details, and testing guidance continue from this answer more…
Related questions and keywords
Alternative questions
- What is this guide about?
- How do I mass maintain value mapping using files?
- Which releases support this process?
Possible questions
- What is value mapping in SAP MDG?
- Why do I need value mapping?
- What is the MDGIMG path for value mapping?
- Which Web Dynpro applications are used?
- How do I export and import value mapping XML?