OData Basics – Part 6 (Build Service using GBI)
Consuming BOPF in OData service is very simple and can be achieved in 3 steps. Refer to the blog Gateway BOPF Integration (GBI)
Start with transaction SEGW
Click ‘Create’ button:
To consume BOPF, Navigate to Data Model >>> Redefine >>> BOPF Service
For this demo, I have chosen “/BOBF/DEMO_PRODUCT” and “SELECT_ALL” as default query
Choose the required nodes from BOPF business object and click ‘Finish’
Now, generate run time artifacts..
Next, Activate the service as shown in below screenshot or through transaction /IWFND/MAINT_SERVICE
Test the service now..
When I executed the service, I was able to see metadata of the service:
I have retrieved the data related to ROOT node
Also used association to retrieve the text data
Data can be verified in the backend test environment BOBT: