connectors

No menu items for this category

Setup SAP ERP APIs

In this section, we provide guides and references to use setup the SAP ERP APIs needed for the connector.

This document details the integration of Open Metadata with SAP systems, emphasizing the use of CDS Views and OData services to efficiently expose SAP data. To achieve this, data must be exposed via RESTful interfaces. Key concepts include:

  • SAP Gateway: A software component that bridges RFC and RESTful interfaces.
  • RAP (Restful Application Programming): A coding framework designed to expose services via RESTful interfaces.
  • CDS (Core Data Services): A layer that describes data objects and annotates them with desired functionalities, which are converted into code upon activation.
  • OData V2 or V4: A RESTful standard that simplifies interaction with database backends.

Using the Eclipse based ABAP Development Tools (ADT) the Restful interfaces are built.

After creating a new ABAP Project for the connected SAP system, a new Data Definition object is to be created.

Data Definition Object

Create data definition object

  • Create the first view that gets the table metadata
  • Then create the second view for table columns

Using the transaction /nsegw in SAPGUI, open the configuration screen for the SAP Gateway and create a new project with default project type.

Create Project

Create Project

Create a reference to the CDS views under Data Model and import the views. This is all that is needed to configure the OData details thanks to the CDS view annotations.

Add Reference

Add Reference

The final step is to expose the generated code as OData service. This is the Register step.

Register odata Service

Register odata Service

In the next screen click on Add Service and add the service as new OData endpoint. The service alias is the location where the SAP Gateway is installed.

Add Service As Endpoint

Add Service As Endpoint