Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 3017

How to use 'or' 'and' operators in one odata request uri?

$
0
0

Hi everyone,

 

I want to filter in gateway service, and what I want to query is like that: /sap/opu/odata/sap/Z_CAPACITY_MANAGEMENT_GW_SRV/CAPA_MAINSet?$filter=Sid eq '***' and Client eq '***' and Ttype eq '***' and Rena eq '***' or Rena eq '***'.

But when I type like above, it'll return error. When I just type: /sap/opu/odata/sap/Z_CAPACITY_MANAGEMENT_GW_SRV/CAPA_MAINSet?$filter= Rena eq '***' or Rena eq '***'. It'll work.

 

So my question is how to use 'or' and 'and' operators in one odata request uri?

 

Thanks!

 

Best,

Cassie.


Viewing all articles
Browse latest Browse all 3017

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>