cancel
Showing results for 
Search instead for 
Did you mean: 

Odata service is not triggering in get Entity set

Former Member
0 Kudos

Hi,

    I am working on a gateway service and I have created one RFC to expose data in Gateway service.

the input parameter in the FM Is UserId ,IvSmodid IvModid IvAppid

based on that I am populating one table.

I used this RFC in Gateway service and my service URL is looks like below :

http://<HOST>:8000/sap/opu/odata/sap/<Servicename>/po_apprvalset(UserId2='VBHANOT',IvSmodid='PO_APPROVL',IvModid='PO_APPROVL',IvAppid='ZMOB_PO')


but this service is not getting triggered to Get entityset, everytime it triggers to Get Entity.


Can you help how to make it working for Get entity set also.



Thanks

Ram



Accepted Solutions (0)

Answers (3)

Answers (3)

Pavan_Golesar
Active Participant
0 Kudos

Hello  Ram Pathak,

         Your URI will not hit get_entityset, If you want to hit get entity set then try keeping brackets empty..

AshwinDutt
Active Contributor
0 Kudos

Hello Ram,

You need to pass Inputs as part of filters to hit the Get_Entity_Set method.

Use the below :

http://<HOST>:8000/sap/opu/odata/sap/<Servicename>/po_apprvalset?$filter=UserId2 eq 'VBHANOT' and IvSmodid eq 'PO_APPROVL' and IvModid eq 'PO_APPROVL' and IvAppid eq 'ZMOB_PO'

Regards,

Ashwin

kammaje_cis
Active Contributor
0 Kudos

You are passing the, so it is going to Get_entityset.

Try this.

http://<HOST>:8000/sap/opu/odata/sap/<Servicename>/po_apprvalset

Former Member
0 Kudos

Hi Krishna,

           I tried the same you told me but in My RFC there are 4 input field and i have to pass that in RFC then only it will give me output.

I tired your suggestion but it is not working. some how i need to pass the 4 input parameter then only i will be able to see the output in service

Thanks

Ram