Skip to Content
0
Jun 18, 2018 at 11:03 AM

Getting error message while calling Odata service with filter expression from SCP XSJS

139 Views

Hello

I have one Odata service with request URI as below:-

/sap/opu/odata/sap/ZQ316_CHATBOT_SRV/PurchaseOrderItemSet?$filter=PoNumber eq '3000000004' &$format=json

Now when i call this URI from gateway client its giving me expected result. Now my purpose is to call this odata service from my XSJS through SCP cloud. I have called gateway service from xsjs successfully for other Odata service without filter expression. But when i am using filter to call this service from xsjs getting this error message :-

Here is the request message i have built in xsjs :-

request = new $.web.WebRequest($.net.http.GET,"/PurchaseOrderItemSet?$filter=PoNumber eq '"+vnum+"' &$format=json");

Attachments

formateerror.png (13.0 kB)