This document provides instructions for completing CRUD operations on a custom table called ZEKKOEKPO using SAP Gateway. It involves:
1) Creating the custom table and SEGW service project
2) Configuring get, post, put, and delete methods to execute each CRUD operation
3) Testing each operation by calling the service and verifying the response status
This document provides instructions for completing CRUD operations on a custom table called ZEKKOEKPO using SAP Gateway. It involves:
1) Creating the custom table and SEGW service project
2) Configuring get, post, put, and delete methods to execute each CRUD operation
3) Testing each operation by calling the service and verifying the response status
This document provides instructions for completing CRUD operations on a custom table called ZEKKOEKPO using SAP Gateway. It involves:
1) Creating the custom table and SEGW service project
2) Configuring get, post, put, and delete methods to execute each CRUD operation
3) Testing each operation by calling the service and verifying the response status
Create SEGW project by importing DDIC structure. Set Ebeln, Ebelp as key field for the Entity Type. Register the Service using /IWFND/MAINT_SERVICE. Test the metadata using /IWFND/GW_CLIENT and it should be successful with status code 200.
1. Execute Get Operation :
Redefine GET_ENa. Enter the values in payload. TITY method of the service & use SELECT query & fetch the data from ZEKKOEKPO and assign the work area to Exporting parameter ER_ENTITY Test the service using transaction /IWFND/GW_CLIENT. Output should display all the selected field values based on Ebeln. Redefine GET_ENTITYSET method of the service & use SELECT query & fetch the data from ZEKKOEKPO and assign the work area to Exporting parameter ER_ENTITYSET URI ex - /sap/opu/odata/sap/ZGW_PO_SRV/zekkoekpoSet(Ebeln=’4580000990′,Ebelp=’ 001′) Execute Post Operation : We need to first prepare the request string using GET Operation and then use the string to POST dat zz
Redefine CREATE_ENTITY method
Use Below code (Logic as per the requirement)
Call the POST Operation with correct URI
/sap/opu/odata/sap/ZGW_PO_SRV/zekkoekpoSet Check the status is “Created”.
2. Exec]ute Put/Update Operation :
While POST is to create entries, PUT Operation is to update/modify existing entries. Like POST Operation, PUT also has two steps. Execute GET Operation with the option “Use as Request” and then execute the real PUT Operation. Redefine the Update_Entity. 3. Execute Delete Operation : For DELETE we do not need to execute GET and Use as Request. We just need to pass the right URI with correct options Redefine DELETE_ENTITY Method.
URI : /sap/opu/odata/sap/ZGW_PO_SRV/zekkoekpoSet(Ebeln=’4580000990′,Ebelp=’001′)