Show TOC

Getting Started with SAP Gateway ServicesLocate this document in the navigation structure

Use

An SAP developer wants to create an SAP Gateway service. The easiest way to do this is to use the Data Model generator that is available in SAP Gateway.

Note

The procedures in this cookbook are suitable for creating a service based on a Generic Channel Data Model.

The SAP Gateway Data Model generator lets you create an SAP Gateway service from an existing SAP interface technology almost automatically. Almost means that currently you have to perform one optional and one mandatory additional step to create the service after the Data Model has been created by the Data Model generator.

The following data sources are currently available for use with the Data Model generator:

  • BOR (Business Object Repository)

  • Screen Scraping repository

  • RFC (Remote Function Calls)

This cookbook serves as a jump start. We will not bother with all the details that are happening behind the scenes; instead we will show in a walk-through how you can create a service, and run it in SAP Gateway using BOR as a data source.

After having done this we will have a look at the service and metadata document of the service that has just been created.

Other more advanced topics such as renaming Properties, adding more Data Models to a service and creation of additional associations will be covered in further cookbooks in the future.

Creating an SAP Gateway Service Using the BOR Data Source
  1. Creating the Data Model

  2. Creating the UC Data Model

    (optional)

  3. Creating the Consumption Model

  4. Adding the Data Model to the Consumption Model

  5. Checking the Service

  6. Beautifying the service

    Since the service that you have created in step 1 is simpler than the original BAPI, some additional changes can be undertaken. This will be explained in detail in one of the upcoming cookbooks.

More Information

For more information, see Data Model Creation and Maintenance.