Show TOC

Implementing /IWBEP/IF_MGW_EDP_MAP_DELETELocate this document in the navigation structure

The Inbound mapping method is provided with:

  • BOP DO

  • A set of BOP DOs processed by previous mapping specialists

  • The entity data (ER_ENTITY or ER_ENTITYSET or ER_DATA). The entity data can be partially filled by previous mapping specialists.

  • Operation specific parameters

Implementing /IWBEP/IF_MGW_EDP_MAP_DELETE for Delete — Inbound Mapping

To implement inbound mapping interface method /IWBEP/IF_MGW_BOP_MAP_DELETE~MAP_INBOUND for read and expand entity, proceed as follows:

  1. Read the input parameters IT_KEY_TAB, IT_NAVIGATION_PATH.

  2. Determine if the BOP needs to be called multiple times based on the input (Optional).

  3. Set the BOP DO request.

Sample Code

DATA: ls_key_tab TYPE LINE OF /iwbep/t_mgw_name_value_pair.
DATA: lo_bop_do TYPE REF TO /IWBEP/cl_mgw_bop_sfl_bkrd_do.
DATA: lo_bop_do_additional TYPE REF TO  /IWBEP/cl_mgw_bop_sfl_bkrd_do.
DATA: ls_request TYPE /IWBEP/cl_mgw_bop_sfl_bkrd=>_params_request.
lo_bop_do ?= io_bop_do. 
LOOP AT it_key_tab INTO ls_key_tab. 
IF sy-index > 1.
  CREATE OBJECT lo_bop_do_additional.
  APPEND lo_bop_do_additional TO ET_ADDITIONAL_BOP_DO .
  lo_bop_do = lo_bop_do_additional.
 IF ls_key_tab-name Eq 'airlineid'.
       ls_request-airlinecarrier = ls_key_tab-value.
      lo_bop_do->set_request( ls_request ).
Implementing /IWBEP/IF_MGW_EDP_MAP_DELETE for Delete — Outbound Mapping

To implement outbound mapping interface method /IWBEP/IF_MGW_BOP_MAP_ACTION~MAP_OUTBOUND for Execute Action, proceed as follows:

  1. Get the BOP response.

  2. Check if there are any errors from the response. If yes, add the messages to the Message Counter.

  3. For Delete operation, form the response data.

Continue with Error Handling in Mapping Specialists

Back to Developing Content on SAP Gateway OData Channel Using IWBEP