0% found this document useful (0 votes)
14 views

ODataClass 2

Uploaded by

Jaya Sankar
Copyright
© © All Rights Reserved
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
14 views

ODataClass 2

Uploaded by

Jaya Sankar
Copyright
© © All Rights Reserved
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 3

Fundamentals of OData Services :

______________________________

OData Services are mainly for "Database Functionalities" ( SELECT, INSERT, DELETE,
UPDATE )

OData Services are of 3 types :


OData ABAP Service : for interaction with SAP ECC/CRM/SRM

OData HANA Service : for interaction with SAP HANA

OData External Service : for interaction with non-SAP

Note : For all these OData Services , THe Front-end Developement Approach remains
"Same"
i,e
The Front-end Applications will consume OData Services for Database
Interaction
The Front-end Application deals with Screens or "View Designing" with
screen Elements ( Table/Drop/Check/Chart/List/MicroChart)
_________________________________________________________________________

OData Service Project using SEGW Transaction Code ( SAP Netweaver Gateway with
ECC )

OData Service Project Contains mainly 4 Folders


___________________

DataModel
Service Implementation
Runtime Artifacts
Service Maintainence
__________________________________________________

Data Model :
-------------------

Entity Type : is an option to Maintain Collection of Fields with DataType and


length
EntityType is similar to "STRUCTURE" in Normal ABAP

Entity : is an option to hold single record at runtime


Entity is similar to "WORKAREA" in Normal ABAP

EntitySet :is an option to hold collection of record(s) at runtime


EntitySet is similar to "INTERNAL TABLE" in Normal ABAP

Association : is the relationship between Two Entity Types

AssociationSet : is the relationship between Two EntitySets


_____________________________________________________

note :under Single OData Service Project, we can have N Number of Entity Types
under single oData Service Project , we can have N Number of
EntitySets
______________________________________________________________________

Service Implementation :
---------------------------------------

Service Implementation mainly contains CRUD Methods for implementing Database


operations

CREATE_ENTITY( ) C for INSERT functionality

GET_ENTITY( ) R for SELECT query ( 1 record )

GET_ENTITYSET( ) R for SELECT query ( N records)

UPDATE_ENTITY( ) U for UPDATE Functionality

DELETE_ENTITY( ) D for DELETE functionality


______________________________________________________________________

From Front-end ,
we use create( ) method to Access CREATE_ENTITY( ) method of OData
we use bindElement( ) method to Access GET_ENTITY( ) method of OData
we use bindRows() method to Access GET_ENTITYSET( ) method of OData
we use update( ) method to Access UPDATE_ENTITY( ) method of OData
we use remove( ) method to Access DELETE_ENTITY( ) method of OData
_________________________________________________________________________

Runtime Artifacts:
-----------------------------------
RunTimeArtifacts are technically collection OF Classes for implementing Database
functionalities

_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 Maintainence:
------------------------------------

Error Log -> to trace/find out errors which occured during odata service
execution

Register -> To register OData Service under SAP Netweaver Gateway


component

Gateway Client -> To Test OData Services


__________________________________________________________________

Gateway Client -> Temporary screen To test odata services


Ui5/FIORI -> Actual Screens to Test odata services
___________________________________________________________________

You might also like