Quantcast
Channel: SCN: Message List - SAP HANA Developer Center
Viewing all articles
Browse latest Browse all 9165

Re: How to use the "In" operator in Calculated View Filter Expression

$
0
0

Hello Jon and all Experts,

 

Any luck on the above issue.

 

We are also facing a very similar issue.

 

Need your help input and help to resolve the xsodata activation error.

I want to create a xsodata definition which will point a calculation view with a input parameter which can take multiple values in  it.

 

The service defination is

service{

   "SAPCAR.views::CV_DC_AVAILABLE_STOCK_QUERY_TEST_12JAN"as"CV_DC_AVAILABLE_STOCK_QUERY_TEST_12JAN"

      keysgeneratelocal"GenID"

      parametersviaentity"IP" ;

}

While activating it we are getting the bellow error.

 

error_screenshot.png

 

The error in activating the xsodata file gets removed once Multiple entries check box in Input Parameter definition is removed(input parameter for single value is selected.)

 

 

Definition of the input parameter is given below.

 

Parameter_defination.png

 

When performing data preview from HANA studio ,I am able to view data and the generated sql is also provided below.

 

SELECT TOP 200 "SAPClient", "Article", "Location", sum("AvailableStock") AS "AvailableStock" FROM "_SYS_BIC"."SAPCAR.views/CV_DC_AVAILABLE_STOCK_QUERY_TEST_12JAN" ('PLACEHOLDER' = ('$$P_Article$$', '''260342953065''') ) GROUP BY "SAPClient", "Article", "Location";

 

SELECT TOP 200 "SAPClient", "Article", "Location", sum("AvailableStock") AS "AvailableStock" FROM "_SYS_BIC"."SAPCAR.views/CV_DC_AVAILABLE_STOCK_QUERY_TEST_12JAN" ('PLACEHOLDER' = ('$$P_Article$$', '''260203903140'',''260342953065''') ) GROUP BY "SAPClient", "Article", "Location";

 

Thanks in advance for your valuable input.

 

Regards

Rohit


Viewing all articles
Browse latest Browse all 9165

Trending Articles



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