The document provides instructions to implement the GetEntity and GetEntitySet methods for a service that retrieves sales document data from the VBAK table. It involves creating a SEGW project, setting the sales document as the key field, redefining the GetEntity method to select additional fields based on the sales document, and redefining GetEntitySet to select all fields and return them in the response. The instructions should be followed to properly expose the sales document data via OData.
The document provides instructions to implement the GetEntity and GetEntitySet methods for a service that retrieves sales document data from the VBAK table. It involves creating a SEGW project, setting the sales document as the key field, redefining the GetEntity method to select additional fields based on the sales document, and redefining GetEntitySet to select all fields and return them in the response. The instructions should be followed to properly expose the sales document data via OData.
The document provides instructions to implement the GetEntity and GetEntitySet methods for a service that retrieves sales document data from the VBAK table. It involves creating a SEGW project, setting the sales document as the key field, redefining the GetEntity method to select additional fields based on the sales document, and redefining GetEntitySet to select all fields and return them in the response. The instructions should be followed to properly expose the sales document data via OData.
X` - implement Map GetEntity and GetEntity set Method
Scenario – Create SEGW project by importing DDIC structure, import VBAK structure and select Sales Document, Sales Org, Delivery Block and Net Value. Set Sales Document 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. Redefine GET_ENTITY method of the service and SELECT Sales Org, Delivery Block and Net Value by providing Sales Document from VBAK and assign the work area to Exporting parameter ER_ENTITY Test the service using transaction /IWFND/GW_CLIENT. Output should display all the field values Sales Document, Sales Org, Delivery Block and Net Value based on Sales Document. Redefine GET_ENTITYSET method of the service and SELECT Sales Document, Sales Org, Delivery Block and Net Value from VBAK and assign back to work area to Exporting parameter ER_ENTITYSET