Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

$count at end of the ODATA url

Hi Experts,

I am using one ODATA service in my SAPUI5 application. Below is my Service URL -

                http://yyy.yyy.yyy.com:0000/sap/opu/odata/sap/ZAS_SODEXO_SRV/SODEXO_DISBURSE_SET?$filter=Action eq 'COUNT' and Fdate eq '12.12.2014' and Tdate eq '12.12.2014' and Bukrs eq '1001' and Pernr eq '123456'

My oDATA is working fine and fetching data when I am testing. But I am facing one problem when I am executing my application. When my application hitting the service URL, one extra string added at last position in my service automatically. The new service is looking like -

http://mmkndslp1.corp.mahindra.com:8000/sap/opu/odata/sap/ZAS_SODEXO_SRV/SODEXO_DISBURSE_SET?$filter=Action%20eq%20%27COUNT%27%20and%20Fdate%20eq%20%2712.12.2014%27%20and%20Tdate%20eq%20%2712.12.2014%27%20and%20Bukrs%20eq%20%271001%27%20and%20Pernr%20eq%20%27123456%27/$count

Due to this, I think my ODATA could not fetch data and giving error. The error is - Left hand expression of memberaccess operator invalid.

How to handle this case? Kindly suggest on this case.

Any kind of possible solution would be highly acceptable.

Thanks in advanced.

Regards,

Arindam Samanta.

Not what you were looking for? View more on this topic or Ask a question