(DV-2305) Field Mapping
Field mapping functionality gives you the option to compare table images that would be not comparable using the standard function. When table images are compared following restrictions apply:
- Key fields
- Order in before and after image must be the same
- Underlying data element must be the same
- Value fields
- Name must be the same while the position is not important
A comparison of two different tables is often not possible due to these restrictions. Correctly defined field mapping gives you better flexibility for comparing different tables.
Field mapping definition
A new field mapping can be defined in two ways:
- The first option is in the table variant definition screen. For more information about the variant, definition see the chapter Table Definition.
- Fill Field Mapping ID into the corresponding screen field.
- Double-click on the specified name to create a new field mapping. Screen for Field Mapping Definition is displayed.
- If a field mapping with the same name already exists, you are redirected to the screen for Field Mapping Definition of an existing mapping.
- Fill Field Mapping ID into the corresponding screen field.
- The second option is to execute the program /DVD/EQS_TABE_FLDMAP.
- List of available field mappings is displayed
- To add a new mapping, add a row to the list and provide a technical Field Mapping ID.
- To delete an existing mapping, remove rows from the list.
- To edit an existing mapping, double-click on the particular row.
- List of available field mappings is displayed
Field Mapping Definition screen
In Field Mapping Definition you define:
Name mapping
- This mapping renames the output column of a table variant from value A to value B. Use this mapping to match value fields with a different name so they may be compared.
- To define the name mapping enter a column name of the original table in Old Field Name and the new column name in the New Field Name.
Data element mapping
- This mapping converts the values of column A from an old data element to a new data element. Use this mapping to compare key fields with different data elements.
- To define the data element mapping you may either fill in the original Old Data element or the original Old Field Name and the New Data element.
- The restriction of the same order of keys still applies to key fields.
Data type mapping
- This mapping converts the values of column A from an old data type to a new data type. Use this mapping to compare key fields with different data types in the case data elements are not defined.
- To define the data type mapping click Show Advanced Mapping to display columns for the New Data type, New length and New Decimals. You may enter either the original Old Data element or original Old Field Name and the New Data type.
Enter also New length and New decimal places if it is necessary. - The restriction on the order of keys also applies.
- Use standard functions to add or remove new mappings.
- Change values in the particular table columns to edit existing mappings.
- You can specify the renaming and conversion of table columns at once by defining values in all four fields.