Set up a Complex Lookup Table
A complex lookup table contains a multiple part key.
Refer to Set up Lookup Tables for more information.
NOTE: A lookup table can be added in Target Design with up to five key fields. If the table requires more than five key fields, a view must be written.
NOTE: If the Target system is Oracle, a view must be written. A Target lookup table for an Oracle Target cannot be created using the Target Lookup Table page.
NOTE: The RuleXref action must be used with a lookup table that has multiple key fields. This allows missing values in the Target table to be inserted into the Value Mapping table. The Xref action can only be used with a lookup table that has a single key field. If the Target Lookup table is a multiple key table, the Value Mapping process concatenates Target values from the multiple key fields into a single field. To map fields on a multiple key lookup table, use the RuleXref action for the field to be mapped on the Field Mappings page. RuleXref concatenates Source values and is the recommended Migration Solution process to load the values correctly into the Value Mapping process.
NOTE: When mapping fields on a multiple key lookup table, concatenate the fields with a “:” separator, for example, field1:field 2.
NOTE: A description for the Lookup Table Value table can be added on the Target Lookup Table page’s Vertical View in the Description field.
A lookup table that already exists can be edited, or a lookup table can be added. The process is the same.
To configure a complex lookup table (one with a multipart key) in Target Design:
-
Select Configuration > Lookup Table Setup in the Navigation pane.
-
Click Edit or Add.
View the field descriptions for the Target Lookup Table page
-
Enter the name of the table that contains the values that are used in value mapping in the VALUE TABLE NAME field.
NOTE: If editing a lookup table, this name is already provided.
-
Select an option in the TYPE list box.
-
Enter the first key in a value table with a multipart key in the VALUE TABLE COLUMN 1 field.
-
Enter the second key in a value table with a multipart key in the VALUE TABLE COLUMN 2 field.
NOTE: Additional columns can be added on the Vertical View.
-
Enter the column on the Value Table that stores the Client or Tenant of the data in the VALUE TABLE CLIENT COLUMN field.
NOTE: This field is used with SAP only.
-
Enter the name of the table that stores the descriptions for the values in the value table in the DESCRIPTION TABLE NAME field.
NOTE: This field displays in Map on the Vertical View of the Value Mapping (Config) page (Configuration > Value Mapping (Config)).
-
Enter the name of the column that stores the descriptions for the values in the value table in the DESCRIPTION TABLE COLUMN field.
-
Enter the key column on the Description table used to uniquely identify values if the Description table key is different from the Value table’s key column in the DESCRIPTION TABLE KEY COLUMN field.
NOTE: This field is used with the lookup table T006.
NOTE: If this field is blank, the Description Table Key uses the Value Table Key.
-
Enter the column on the Description Table that stores the Client or Tenant of the data in the DESCRIPTION TABLE CLIENT COLUMN field.
NOTE: This field is used with SAP only.
-
Enter the column on the Description Table that stores the language identifier column in the DESCRIPTION TABLE LANGUAGE COLUMN field.
NOTE: This field is used with SAP only.
-
Click Save; the Vertical View displays.
-
Select the column containing the value to use if more than one value table column is set for the value table (as in, there is data in the VALUE TABLE COLUMN 1 and VALUE TABLE COLUMN 2 fields and so on) in the MULTI VALUE FIELD LOOKUP TABLE VALUE COLUMN list box.
NOTE: This is the actual field that will be loaded into the Target table.
-
Enter the where clause used to filter values in the value table column to restrict the values used in the lookup table in the WHERE CLAUSE field, if needed.
-
Click Save.
Was this article helpful?
Sorry about that.
Why wasn't this helpful? (check all that apply)
Thanks for your feedback.
Want to tell us more?
Send an email to our authors to leave your feedback.
Great!
Thanks for your feedback.