Quantcast
Viewing all articles
Browse latest Browse all 3353

Read Data by passing filters to OData service from UI5 application

Dear Friends,

 

Need your help for reading data using OData service by passing filter data from UI5 application .

 

The service is being executed with below paths in Gateway system.

 

/sap/opu/odata/SAP/Z_TAKT_NC_APPLICATION_IT1_SRV/ReoccurranceListSet?$filter=Matnr eq '6L00038800' and Fegrp eq 'NC-DC-A' and Fecod eq 'AA'

 

 

We know how to pass the filter data using Array  and push corresponding elements in array for above path.

 

However, for below path don't know how to create filter parameter in a format of Array .Because some parameters to be placed in braces "( )" with "OR" operator .

 

/sap/opu/odata/SAP/Z_TAKT_NC_APPLICATION_IT1_SRV/ReoccurranceListSet?$filter=Matnr eq '6L00038800' and (Fegrp eq 'NC-DC-A' or Fegrp eq 'NC-DC-B') and (Fecod eq 'AA' or Fecod eq 'AHD')

 

Please share your pointers on this and provide sample code.

 

Advance thanks for your support

 

Ragards,

Ratnakar


Viewing all articles
Browse latest Browse all 3353

Trending Articles



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