Show TOC

Enabling SAP Back-End Content as OData ServicesLocate this document in the navigation structure

Enabling SAP back-end content as OData services using Integration Gateway.

Context

Integration Gateway provisions SAP back-end content as OData services using the OData Channel (ODC). ODC allows you to expose OData services by defining object models and registering a corresponding runtime data provider class. There are two ODC application components: the business data provider and the metadata provider. An ODC data provider implements a single interface that is very close to the OData Protocol. OData Channel applications obtain access to common framework services, for example, logging or transaction handling, using a set of agents called “Common Service Exposure”. These agents wrap existing framework services in a way that OData Channel applications can easily consume.

Integration Gateway provides Custom Processors, a plug-in mechanism to provide your own logic on top of the output generated by the API toolkit for SAP Mobile Platform to enhance / modify the content. See Defining Custom Code on https://help.hana.ondemand.comInformation published on SAP site. The relevant content is located in Start of the navigation path API toolkit for SAP Mobile Platform Documentation Next navigation step  Binding Data Sources Next navigation step  Defining Custom Code End of the navigation path.

OData Feature Status
Create Supported
Read Supported
Update Supported
Delete Supported
Query Supported
Function imports Supported
Navigation Supported
Delta token Supported
Tombstone Supported
System query options: $orderby, $skip, $top, $select, $expand, $inlinecount, $count, $filter and $format. Supported
Complex types Supported
$count Supported
$batch Supported
Deep insert Not supported
Custom query options Not supported
$link Not supported
Function import Not supported
$value Not supported
$filter Details
String functions
  • Supported:
    • bool substringof(string po, string p1)
  • Not supported:
    • string trim(string p0)
    • string concat(string p0, string p1)
    • int length(string p0)
    • int indexof(string p0, string p1)
    • string replace(string p0, string find, string replace)
    • bool endswith(string p0, string p1)
    • bool startswith(string p0, string p1)
    • string toupper(string p0)
    • string substring(string p0, int pos)
    • string substring(string p0, int pos, int length)
    • string tolower(string p0)
Partially supported
Logical operators - all the logical operators are supported except for 'Not'. Partially supported
Date functions Not supported
Math functions Not supported
Arithmetic operators Not supported
Type functions Not supported
Note Register the SAP service in the Gateway Management Cockpit before you use API toolkit for SAP Mobile Platform. See Registering an SAP Service on Gateway Management Cockpit.

Procedure

  1. Use API toolkit for SAP Mobile Platform to finalize the service registration:

    For details of the tasks performed in this step, see API toolkit for SAP Mobile Platform Documentation on https://help.hana.ondemand.comInformation published on SAP site. The relevant topic to refer to is provided in the corresponding sub steps below.

    1. Create an OData implementation project. See Creating an OData Implementation Project.
    2. Select the OData Channel datasource to bind with an entity set. See Selecting a Datasource.
    3. Use the Custom Processor plug-in to define your own logic. See Defining Custom Code.
    4. Generate and deploy integration content. See Generating and Deploying Service Implementation Project.
  2. Log in to Gateway Management Cockpit. You should see the registered service in the Registered Services screen.