Defining a Dynamic Enrichment
Once the mapping for a domain is loaded, it is important to specify which tables and fields must be dynamically enriched. To do so, maintain the table /DVD/RMX_DYNENR.
The following columns are available:
-
Table name: SAP table name to which the business object belongs
-
Field name: Name of a field in an SAP table
-
Order of enrichment: Allows multiple enrichment rules to be defined for the same field. This column also allows you to define the order of the data enrichment.
-
Domain: Domain name of the field
-
Enrichment type: Connection to the enrichment type in the table /DVD/RMX_ENR_MAP
-
Reference field name: Names of reference fields in an SAP table. Note that there are four fields that hold reference field names.
-
Enrichment mode:
-
REPLACE: Replaces the old value with a new value.
-
CONCAT: Concatenates the old value and a new value.
-
ADD_FIELD: Adds an additional field to a table structure that will store a new value.
-
-
On / Off: Specifies whether a rule is active or not.
-
Function module name: Enables you to define a custom function module to handle more complex scenarios. If you leave this field empty, the default function module /DVD/RMX_DATA_ENR_WITHOUT_BUFF is used.
The following function modules are available:
-
/DVD/RMX_DATA_ENR_WITHOUT_BUFF: Default function module.
-
/DVD/RMX_DATA_ENR_LANGU_DEPEND: Language-dependent function module that returns text based on a language priority.
-
/DVD/RMX_DATA_ENR_HR_TIME_DEP: Function module that can handle time-dependent data, e.g. in the HR module.
The following function group is available:
-
/DVD/RMX_HR_DATA_ENR: Stores various function modules for the data enrichment of HR tables. If you require more information, the documentation/setup instructions are part of the header of the function modules.
Setting and Using Language-dependent Enrichment
To use language-dependent data enrichment, it is important to use the first reference field to store a language code when loading the mapping. In addition, you must leave the first reference field empty when defining it in the table /DVD/RMX_DYNENR.
The last step is to define language priority in the table /DVD/RMX_ENR_LAN. This specifies the order in which the function module will try to retrieve a new value from the mapping table.
Language priority queue
The following columns are available:
-
Key field: Priority of the language
-
Language: Name of the language
In the image above, the function module will first try to retrieve a new English value, then a German value and finally a French value. If nothing is found, an empty value is returned.