SAP Gateway Service Builder
The SAP Gateway Service Builder caters for the needs of both experienced and less experienced developers who want to expose data for easy consumption using a variety of platforms, frameworks, and devices.
While experienced developers have maximum flexibility to define a new service from scratch and integrate their own source code, less experienced developers can reduce the time and effort involved in creating services by generating services based on existing business objects, such as BW Easy Queries or CDS views (as of NW 7.40), or interfaces such as Remote Function Call (RFC) function modules or F4 Search Help topics
Service Creation
The development of services using the Service Builder takes place in the SAP backend system.
The Service Builder supports all phases in the development of OData services. They are as follows
Project Creation
To develop a service using SAP Gateway Service Builder, you first need to create a project. You open the SAP Gateway Service Builder by using the transaction code SEGW.
The Service Builder uses projects to bundle all the artifacts you need to develop a service in one central location, helping you to organize the service development and modeling process. Since projects consolidate all related data, you can easily work on multiple projects in parallel and reuse data between projects before generating and activating the actual service.
In addition, you can use projects to organize the movement of objects from one system environment to another ensuring that all artifacts remain together at all times.
Data Model Definition
There are two types of documents associated with each OData service:
Both document types can be retrieved from a server by means of an HTTP GET call. The service document is available at the Service Root URI and is formatted in Atom or JSON. If you click on the hyperlink, you send an HTTP GET call to the server and the server responds with the service document.
Service Builder Tree Structure
The Service Builder provides a nice tree view folder structure to organize the different components of a data model. This structure provides one folder for each of the following:
Data Model in Service Builder
In the figure, the example entity data model consists of the five entity types: Product, BusinessPartner, SalesOrder, SalesOrderItem, and Country (not yet modeled in the Service Builder). The data model has the following characteristics: