Skip to Content
0

Issues calling the PO SRA020_PO_TRACKING_SRV service

Nov 16, 2017 at 06:16 PM

53

avatar image
Former Member

Hi, I am working on a UI5 application which needs to get PO data using services used by FIORI "track purchase order". Ran into the following issues

1. When I call the service without any query options(http://localhostxxx/proxy/sap/opu/odata/sap/SRA020_PO_TRACKING_SRV;MO/POLists?$skip=0&$top=100), I get no results

2. When I use the exact call used by fiori app(https://[Gateway server]:8043/sap/opu/odata/sap/SRA020_PO_TRACKING_SRV;mo/POLists?$skip=0&$top=100&$orderby=CreatedAt%20desc&$filter=CreatedAt%20gt%20%2720171015%27&$inlinecount=allpages&sap-client=100), I get data

3. When I use the same call using proxy(http://localhost:xxx/proxy/sap/opu/odata/sap/SRA020_PO_TRACKING_SRV;MO/POLists?$skip=0&$top=100&$OrderBy=CreatedAt%20desc&$filter=CreatedAt%20gt%20%2720170928%27&$InlineCount=AllPages&sap-client=100), I get HTTP 400 error which is pretty wierd. I also noticed that if I don't use camel case in query string(orderby instead of OrderBy), it gives me a syntax error.

I am very new to UI5 coding so can someone explain what's going on here. Thanks

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Joseph BERTHE Nov 17, 2017 at 06:57 AM
0

Please try this URL (Case sensitive !!!) (the mo should be in lowercase) :

http://localhostxxx/proxy/sap/opu/odata/sap/SRA020_PO_TRACKING_SRV;mo/POLists?$skip=0&$top=100)

Regards,

Joseph

Share
10 |10000 characters needed characters left characters exceeded