7.2    SAP Gateway Service Builder

SAP Gateway translates complex data structures into easy-to-consume OData services. SAP Gateway Service Builder is the central interface of SAP Gateway (accessed via Transaction SEGW); it includes both code-based development of OData services for experienced developers and non-code-based generation of services for less experienced developers. We’ll cover only the non-code-based development services in this book.

SAP Gateway Service Builder contains all relevant functions for the modeling and development of OData services in SAP Gateway, and supports the entire development lifecycle of an OData service in SAP Gateway. SAP Gateway Service Builder’s main objective is to provide comprehensive support for building OData services in a declarative way or for reusing existing business objects in the SAP Business Suite system. Later, you’ll see a data model in SAP Gateway Service Builder. This modeling environment follows a project-based approach, and all relevant data is consolidated in these projects.

Now that you understand the terms entities, entity types, entity sets, associations, and so on from the service document and service metadata document, let’s explore these concepts in the SAP Gateway Service Builder. To begin, first navigate to SAP Gateway Service Builder by following these steps:

  1. Log in to the SAP Gateway server.
  2. Open SAP Gateway Service Builder by running Transaction SEGW.
  3. Open a project by clicking inline image.
  4. Enter the Create Sales Order project details; that is, enter “SRA017_SALESORDER_CREATE” in the Project field and press (Enter) (see Figure 7.13).
    Create Sales Order Project

    Figure 7.13    Create Sales Order Project

You should now see the Sales Order Creation project (see Figure 7.14).

SAP Gateway Service Builder

Figure 7.14    SAP Gateway Service Builder

From the screen shown in Figure 7.14, note the following details:

Entity Type Properties

Figure 7.15    Entity Type Properties

Navigation Properties

Figure 7.16    Navigation Properties

Associations

Figure 7.17    Associations

Service Maintenance

Figure 7.21    Service Maintenance

So far, we’ve reviewed the basic OData concepts and SAP Gateway Service Builder components via an example based on the Create Sales Order OData service. Now, let’s look at the most important part of SAP Gateway Service Builder: modeling an OData service.