Relationship: OData Operation, HTTP Method and ABAP Statement (General Methods used during OData Service Development)
The table below shows the relationship between an OData operation, the corresponding HTTP method call and the corresponding ABAP statement call. These methods are mostly used by the Developer to implement their own functionality in the corresponding DPC extension class.
OData Operation | HTTP Method | ABAP Statement | Comments | Front-end method |
---|---|---|---|---|
Create (CREATE_ENTITY) | POST | INSERT | Call create( ) | |
Read (GET_ENTITY) | GET | SELECT SINGLE * | Call bindElement( ) | |
Read (GET_ENTITYSET) | GET | SELECT | Call bindRows( ) | |
Update (UPDATE_ENTITY) | PUT | UPDATE | Call update( ) | |
Delete (DELETE_ENTITY) | DELETE | DELETE | Call remove( ) | |
Function Import | GET, POST | SELECT, INSERT | Custom Operations | Call callfunction( ) |
Create File (CREATE_STREAM) | POST | INSERT | Upload a file to a database table | |
Get File (GET_STREAM) | GET | SELECT | Download a file | |
Update File (UPDATE_STREAM) | PUT | UPDATE | Update the file content in a database table | |
Delete a File (DELETE_STREAM) | DELETE | DELETE | Delete the file content in a database table | |
Execute Action (EXECUTE_ACTION) | GET / POST | SELECT / INSERT | ||
GET_EXPANDED_ENTITY | GET | SELECT | Select a record based on a specific field/ID | |
GET_EXPANDED_ENTITYSET | GET | SELECT | Select item records based on a specific header record |
Note:
The above methods are available in the DPC class.
Tip:
Where to find the DPC / Data Provider Class?
Answer: Go to SEGW transaction, open your Project for which the generation is done, open the Runtime Artifacts to navigate to the Class.
Comments
Post a Comment