Quantcast
Channel: SCN : Discussion List - SAP HANA and In-Memory Computing
Viewing all articles
Browse latest Browse all 5653

Passing multiple values to a single input parameter

$
0
0

Hi folks,

 

I have a Microstrategy query successfully passing input parameter to a calculation view.  For example I can pass a movement type to a material movements calculation view input parameter.  However if I try to pick more than one movement type the query then fails; 

 

Generated SQL that works looks like this;

selectsum(a11.TOTALQUANTITY)  WJXBFS1
from"_SYS_BIC"."MyPackage/CA_TEST_PASS_PARAMETER"

('PLACEHOLDER' = ('$$MoveType$$', '101')


a11

 

When choosing more than one value in Microstrategy the SQL now fails and looks like this;

selectsum(a11.TOTALQUANTITY)  WJXBFS1
from"_SYS_BIC"."MyPackage/CA_TEST_PASS_PARAMETER"

('PLACEHOLDER' = ('$$MoveType$$', '101'),

'PLACEHOLDER' = ('$$MoveType$$', '103'))

a11

 

If I cut and paste the SQL and run directly in HANA studio the error is;

 

Could not execute 'select sum(a11.TOTALQUANTITY) WJXBFS1 from "_SYS_BIC"."MyPackage/CA_TEST_PASS_PARAMETER" ...' in 66 ms 361 µs .

SAP DBTech JDBC: [2048]: column store error: search parameter error:  [2018] A received argument has an invalid value;TABLE/VIEW parameter: ( 'PLACEHOLDER'='$$MoveType$$, 103') not supported

 

Is it possible to pass multiple values in a single parameter?  I'm using SP67 for this test.

 

Thanks,

-Patrick


Viewing all articles
Browse latest Browse all 5653

Trending Articles



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