Show TOC

Sample Service - BasicLocate this document in the navigation structure

Introducing a basic OData sample service to aid service development with SAP Gateway.

The basic OData sample service for SAP Gateway provides you with a practical, working OData service with meaningful content that supports basic OData operations. This sample service is based on the Enterprise Procurement Model (EPM) and is available as standard for SAP Gateway Foundation (component SAP_GWFND) as of SAP NetWeaver Release 7.40 Support Package 08.

Note Since the basic OData service GWSAMPLE_BASIC is intended purely as a sample service, SAP reserves the right to make changes to this service in future Support Packages.
  • SAP Gateway Sample Service - Basic: GWSAMPLE_BASIC (namespace IWBEP) as part of the SAP Gateway Foundation component SAP_GWFND.
  • Associated Service Builder project: /IWBEP/GWSAMPLE_BASIC
The sample service GWSAMPLE_BASIC supports the following scope:
  • CRUDQ operations for the entity types BusinessPartner, Contact, Product, SalesOrder, SalesOrderLineItem
  • Value help entity types derived from search helps
  • Deep insert for SalesOrder and SalesOrderLineItems
  • Generic expand
  • Batch
  • Count
  • Inlinecount, skip, top
  • Filter
  • OrderBy
  • Usage of SAP annotations
  • Usage of complex types
  • Function imports
  • Navigation properties

Runtime Artifacts

The following runtime artifacts belong to the basic sample OData service:
Table 1: Runtime Artifacts
Artifact Purpose
/IWBEP/CL_GWSAMPLE_BAS_DPC Data Provider Class - Base Class
/IWBEP/CL_GWSAMPLE_BAS_DPC_EXT Data Provider Class - Extension Class
/IWBEP/CL_GWSAMPLE_BAS_MPC Model Provider Class - Base Class
/IWBEP/CL_GWSAMPLE_BAS_MPC_EXT Model Provider Class - Extension Class

Before you can use the sample OData service GWSAMPLE_BASIC, you must first register this service in your SAP Gateway system in Activate and Maintain Services (transaction /IWFND/MAINT_SERVICE).

For more information, see Registering Sample Service - Basic.

To view the service metatdata document for the sample service, enter the URI /sap/opu/odata/IWBEP/GWSAMPLE_BASIC/$metadata in the SAP Gateway Client.