Académique Documents
Professionnel Documents
Culture Documents
How to create Gateway service for query operation using ABAP Development Workbench
Step 2 : Choose meta model Type as 'PS' (Public Solution Model) and select the option as "Generate from
Data Source Object" using radio button. Click on continue button.
Step 3 : Enter a suitable Description. Enter Data Source Type as RFC and the System Alias (this is the alias
that is connected to the back end system). Click on Continue button.
How to create Gateway service for query operation using ABAP Development Workbench
Step 5 : Click on Search button. Enter RFC name and click on continue button. (Here we are using a simple
custom RFC with one input parameter for PO number and 1 output table with PO Item details)
Step 6 : Select the added RFC object in left hand side by clicking on it and then click on create Mapping
button.
How to create Gateway service for query operation using ABAP Development Workbench
Step 7 : Select the operation type as Query so that all the attributes of FM get displayed.
Step 8 : Now the Input attribute 'i_ebeln' needs to be set. We can either set some constant value or we can
expose it as filterable value in the following way. To Change mapping of input parameter I_EBELN, Click on
Initial and then select Change Mapping Route. Then select the i_ebeln parameter from the pop up screen and
click on Continue button.
Step 9 : In Data Model details set key property for required fields by right clicking on attribute and selecting
set key property.
How to create Gateway service for query operation using ABAP Development Workbench
Step 10 : To save the Data Model click on Generate button which will also generate all of its corresponding
classes and configuration.
Step 11 : Click on Object Navigator Button. Right click on "Related GW Consumption model" and click on Add
Consumpt. Model.The Consumption Model is what exposes the Gateway Data Models to the network.
How to create Gateway service for query operation using ABAP Development Workbench
How to create Gateway service for query operation using ABAP Development Workbench
Step 15 : Go to Transaction /IWFND/MAINT_SERVICE and click on search button. Enter the Technical
Service name and search. Then Click on the Service.
How to create Gateway service for query operation using ABAP Development Workbench
Step 17 : Click on New entries button. Enter the name of your Consumption Model and click on F4
Button.Then Double click on your service document in the popup window. In the System Alias column enter the
alias of the system you want your service to call.
How to create Gateway service for query operation using ABAP Development Workbench
Step 20 : Now replace "$metadata" with entity set name which is "ztest_po_item_detailsCollection" in our case,
followed by " ?$filter=i_ebeln eq '3000000006' " which is a way to pass input parameter to query operation.
How to create Gateway service for query operation using ABAP Development Workbench
N.b. This technology is highly outdated, this article was put up for learning purposes only.