Overview
SAP Gateway is the environment to build and run OData services. SADL enhances the options of SAP Gateway by using a modeled way based on entity-relationship models, the SADL models.
For SADL models you can use CDS artifacts, actions, and functions.
OData models consist of entities which contain properties and navigation properties based on modeled associations (that is, connections between entities). A SADL model is an entity that contains modeled associations to other entities. During the service implementation, a mapping has to be established between OData model and SADL model.
Actions are business logic entities assigned to a business object node. Actions are called actively. Actions can modify nodes of their own as well as nodes of other business objects.
The function import is implemented via a Business Object Processing Framework (BOPF) action. For more information, see About the BOPF Development User Guide.
Depending on the tool, you either have to explicitly map the properties and navigation properties or the mapping is derived automatically at runtime.
OData services can expose service operations that, like entities, are identified using a URI. Service operations are simple functions exposed by an OData service whose semantics are defined by the author of the function. A service operation can accept primitive type input parameters and can be defined to return a single primitive or complex type, a collection of primitive or complex types, a single entity, a collection of entities, or void.
- SAP Gateway Service Builder (transaction SEGW)
- Using the mapping editor
SAP Gateway Service Builder offers an integrated mapping editor to connect one or several SADL models to OData entity sets.
For more information, see Generating an OData Service Using the Mapping Editor - Using referenced data sources to enable one or more CDS views, associations and actions to be exposed by OData services.
- Using the mapping editor
- ABAP Development Tools - Eclipse
Core Data Services (CDS) is a key concept for data definition in ABAP. With a simple annotation (@OData.publish: true), you can expose a single CDS view to OData directly as an OData service.
For more information, see About the ABAP CDS Development User Guide.