Show TOC

Implementing /IWBEP/IF_MGW_EDP_MAP_ACTIONLocate this document in the navigation structure

Implementing /IWBEP/IF_MGW_EDP_MAP_ACTION for Execute Action — Inbound Mapping

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

To implement inbound mapping interface method /IWBEP/IF_MGW_BOP_MAP_ACTION~MAP_INBOUND, loop through the it_parameter method of /IWBEP/IF_MGW_EDP_MAP_ACTION~MAP_INBOUND and assign the values to the BOP DO request.

  DATA: ls_parameter       TYPE /iwbep/s_mgw_name_value_pair.
  DATA: ls_request          TYPE /iwbep/cl_mgw_bop_sfl_read=>_params_request.
  DATA: lo_bop_do          TYPE REF TO /iwbep/cl_mgw_bop_sfl_read_do.

  lo_bop_do ?= io_bop_do.

  LOOP AT it_parameter INTO ls_parameter.
    CASE ls_parameter-name.
      WHEN 'airlineid'.
        ls_request-airlineid = ls_parameter-value.
      WHEN 'connectid'.
        ls_request-connectionid = ls_parameter-value.
      WHEN 'flightdate'.
        ls_request-flightdate = ls_parameter-value.

“ set the request
  lo_bop_do->set_request( ls_request ).
Implementing /IWBEP/IF_MGW_EDP_MAP_ACTION for Execute Action — Outbound Mapping

To implement outbound mapping interface method /IWBEP/IF_MGW_BOP_MAP_ACTION~MAP_OUTBOUND for Execute Action operation, 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 Execute Action operation, form the response data.

Continue with Error Handling in Mapping Specialists

Back to Developing Content on SAP Gateway OData Channel Using IWBEP