Method DELETE

Function

Method IF_UKM_EASY~DELETE deletes existing mappings or elements of existing mappings.

Parameters of the Method

Type

Name

Description

Export

IT_KEY_MAPPING

The keys to be deleted are specified in this table. If only one entry remains in a mapping group as a result of the key deletion, the entire group is deleted.

Export

ES_MESSAGES

All the messages that occurred during processing are passed in export structure ES_MESSAGES.

Notes

Changes made using this method are not stored automatically. To do this you must use the SAVE method.

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. * Delete mapping CALL METHOD lp_ukm_easy->delete   EXPORTING     it_key_mapping = lt_mappings   IMPORTING     es_messages    = ls_messages.