04-02-2024 3:36 AM - edited 04-02-2024 2:26 PM
Hi,
I have an Odata Query which is working (getting data) fine when i use 'eq' as below:
/sap/opu/odata/SAP/Z*****_01/BPInputsSet?$format=json&$filter= Account eq '800000012341' and Prodtyp eq 'EWR' &$expand=NavtoData1,NavtoData2&$format=json
But when i replace 'EQ' with '=' its throwing error like " 400 : Invalid token detected at position.".etc
How to correct this error?
This is not an error, it’s how it works as per OData spec.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Imagine these two:
Now think about writing a parser for the second option 😉 Also don't forget how URL params work in your browser.
You could also check the spec to learn that $filter doesn't not allow a '=' (scroll to the section): 4.5. Filter System Query Option ($filter)
User | Count |
---|---|
75 | |
9 | |
8 | |
7 | |
7 | |
6 | |
6 | |
6 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.