Method GET
Function
Method IF_UKM_EASY~GET looks for existing mappings. If a group is found for the specified source key, the target key is written in table CT_KEY_MAPPING.
Parameters of the Method
|
Type |
Name |
Description |
|
Import |
IV_READ_BUFFER |
This parameter defines if the buffer should be used to determine the mapping. If the parameter is true, the system tries to find the mapping in the buffer before accessing the database. |
|
Import |
IV_UPDATE_BUFFER |
This parameter defines if a mapping read from the database should be stored in the buffer in order to speed up future access to the mapping. |
|
Export |
ES_MESSAGES |
All the messages that occurred during processing are passed in export structure ES_MESSAGES. |
|
Changing |
CT_KEY_MAPPING |
The source keys for which you want to find a mapping are passed to UKMS with this table. If a mapping is found, the key is added to the table and the table is returned. |
Example
A coding example is given below (continuation of the previous example):
* Clear CLEAR: ls_mapping, lt_mappings[]. * Set context ls_mapping-main_context_id = 'This is a test context'. * Set source key ls_mapping-source-client_default = 'X'. ls_mapping-source-scheme_id = 'MaterialNumber'. ls_mapping-source-scheme_agency_id = 'EU3_003'. ls_mapping-source-scheme_agency_scheme_agency_id = 'ZZZ'. ls_mapping-source-value = 'B123'. APPEND ls_mapping TO lt_mappings. * Retrieve mapping (target key) CALL METHOD lp_ukm_easy->get EXPORTING iv_read_buffer = abap_true iv_update_buffer = abap_true IMPORTING es_messages = ls_messages CHANGING ct_key_mapping = lt_mappings.