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. ENDCASE. ENDLOOP. “ set the request lo_bop_do->set_request( ls_request ). |
To implement outbound mapping interface method /IWBEP/IF_MGW_BOP_MAP_ACTION~MAP_OUTBOUND for Execute Action operation, proceed as follows:
Get the BOP response.
Check if there are any errors from the response. If yes, add the messages to the Message Counter.
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