Hello,
To perform a READ operation u need to implement Get_Entity method.
READ operation needs KEY's to be passed.
Response can have a single entry as part of response or null.
To perform a QUERY operation u need to implement Get_Entity_Set method.
QUERY operation needs FILTER's to be passed.
Response can have either single/multiple entries or null as part of response.
Please follow the below to get detail info :
Let’s code CRUDQ and Function Import operations in OData service!
U can also use SEGW to build your GW services.
The new SAP NetWeaver Gateway Service Builder: Build new OData Services in 3 Quick Steps
To pass a RANGE Table as input , u need to operate on BATCH.
As we cannot pass a table if inputs to GW for QUERY/READ operations so we need to use BATCH.
Please have a look at the below :
How To Batch Multiple Operations Into A Single Request
Regards,
Ashwin