OData Concept

Published: December 2025

OData Service Project

The very first thing needs to be created when developing a new SAP OData is an OData service project through transaction code SEGW. An OData service project is the codebase where you:

Every Odata ABAP service Project contains mainly:

Data Model: Entity, Entity Set, Entity Type, Association, Association Set

Entity Type : is an option to maintain collection of fields with data type and length. Entity type is similar to a STRUCTURE in normal ABAP.

Entity : is an option to hold single record at a time. ENTITY is similar to WORKAREA in normal ABAP.

Entity Set : is an option to hold collection of records. ENTITYSET is similar to INTERNAL TABLE in normal ABAP.

Association : is the relationship between two Entity Types

Association Set : is the relationship between two Entity Sets

Note : under single Odata Project, we can create any number of Entity Types, ENTITYSETs



Service Implementation

Mainly contains CRUD methods. The methods are shown in the following table:

SAP UI5/FIORI ODATA Service
create -------> Create_ENTITY( ) method -> C -> INSERT statement
bindElement --------> GET_ENTITY( ) method -> R -> SELECT Query ( 0/1 )
bindRows/bindItems----> GET_ENTITYSET( ) method -> R -> SELECT QUERY ( 0/1/N )
update ------> UPDATE_ENTITY( ) method -> U -> UPDATE statement
remove -------> DELETE_ENTITY( ) method -> D -> DELETE statement


Runtime Artifacts

Runtime Artifacts mainly contains Runtime Classes ( which are autogenerated ).

_MPC -> Model Provider Class ( ***** )

_MPC_EXT -> Model Provider Extension Class

_DPC -> Data Provider Class

_DPC_EXT -> Data PRovider Extension Class ( ***** )

_SRV -> REGISTERED SERVICE

_MDL -> REGISTERED MODEL



Service Maintenance

Error log -> to trace/find out errors occured during service execution

Gateway Client -> temporary screen to test OData Service functionality

Register -> To register odata service under SAP NW Gateway. Other option to register service is through transaction code /IWFND/MAINT_SERVICE