Hello Tirupati,
Since u would like to pass range values to those key parameters, there would be single/multiple or null entries as part of GW response based on your input value. Considering that the method which is to be implemented is Get_Entity_Set/QUERY operation.
1. Implement Get_Entity_Set / QUERY operation and map the fields accordingly in Service Builder and generate run-time objects.
2. In DPC_EXT class , Redefine below methods and just write ' EXIT ' and activate.
/IWBEP/IF_MGW_APPL_SRV_RUNTIME~CHANGESET_BEGIN
/IWBEP/IF_MGW_APPL_SRV_RUNTIME~CHANGESET_END
3. As per my knowledge the below are the operators supported by GW through URL.
LE Less than or equal to
GE Greater than or equal to
NE Not equal to
GT Greater than
LT Less than
Other operators like CP etc... has to be handled explicitly in GW level in DPC_EXT class in respective methods by checking whether the input value contains ' * ' .
If the input contains ' * ' then u need to pass CP operator explicitly in the code level.
4. U need to Create a PAYLOAD to BATCH all the different operations in a single request :
Headers to be passed :
Content-Type : multipart/mixed; boundary=batch
x-csrf-token : < pass the value >
Method :
POST
Sample URL :
http://<Host with the POSt Num>/sap/opu/odata/sap/<Your Service Name>/$batch
Sample Payload -> example when u have two operations in 1 single request.
If Get_Entity / READ is implemented then below is the PAYLOAD :
--batch
Content-Type: application/http
Content-Transfer-Encoding: binary
GET get_data11(ImWhttype='C2',ImCountry='TH') HTTP/1.1
--batch
Content-Type: application/http
Content-Transfer-Encoding: binary
GET get_data11(ImWhttype='C1',ImCountry='TH') HTTP/1.1
--batch--
If Get_Entity_Set / QUERY is implemented then below is the PAYLOAD :
--batch
Content-Type: application/http
Content-Transfer-Encoding: binary
GET get_rec_types1?$format=json HTTP/1.1
--batch
Content-Type: application/http
Content-Transfer-Encoding: binary
GET get_order_details HTTP/1.1
--batch--
With this u must be able to implement what u r expecting.
Regards,
Ashwin