Without having to write a single line of code, SAP Gateway Data Model generator allows you to create and expose REST compliant services through which you can search for and maintain business entities in an SAP system.
Existing resources, such as, BOR objects, RFC BAPIs, and transaction screens can be leveraged as data sources, without any disruption in your SAP backend system, enabling you to access SAP data.
In this tutorial, you will create a SAP Gateway service that allows all the CRUD (CREATE, READ, UPDATE, and DELETE) operations to be quickly modeled, simplified, and exposed to allow client applications to easily consume and maintain SAP business data.
The tutorial covers the OData Channel approach, which provides developers with more control and flexibility.
It will guide you through the process of creating and testing a SAP Gateway service using the BOR (Business Object Repository) as your data source.
Using other data sources such as, Screen Scraping, and Remote Function Calls, will be covered in the future.
The following are the prerequisites to complete the steps in this tutorial:
Familiarize yourself with the specific SAP function you want to use. Refer to the function module documentation for the specific BAPI in transaction SE37.
For this tutorial, you will use the User objects.
Access to a configured SAP Gateway 2.0 SP03 or higher system.
Proper permissions in the system (both in SAP Gateway and the SAP backend system).
Firefox and the Firefox REST Client Add-On for testing.
The instructions in this tutorial are based on the Firefox REST client, however, there are other REST clients, such as, WFetch which can be used as well.
If you are using Microsoft® Internet Explorer to test the QUERY and READ operations as specified in this guide, make sure it is not configured to show “friendly error messages”.
To configure, go to the menu, Show friendly HTTP error messages. This will help you analyze any errors if they occur.remove the selection for