Hello,
I have a scenario to pass multiple values to one single input parameter to calculation view and inside this suppose to use IN operator to get the records from table dynamically, I wrote the CV, activated and executed it i did not get results (0 records) in case of multiple coma separated value, so i finally debug it, i have seen input parameter value is getting correct in CV after run but SELECT statement not bringing any data, but after hard code i am getting the record, Find below code and screen shoot in Debug Mode. Finally i have to use this in XSOADTA to consume in SAP UI5 via parameters, i already did very similar kind of thing using GUI Modeling and IDT of SAP BO, want to know why problem this time, No syntax error simply hard coding its works but dynamically not, i tried using declaring variable and setting its default value, also tried Sub query but no luck.
SQL Script Code:
/********* Begin Procedure Script ************/
BEGIN
lt_tab = SELECT MATNR,ERNAM,1 AS MESURE FROM "SKSUMAN"."MARA"
WHERE MATNR IN ( :IP_PARAM );
var_out = SELECT * FROM :lt_tab;
END
/********* End Procedure Script ************/
To Call SQL script CV:
CALL "_SYS_BIC"."Traning.modelling/CV_PARAM/proc"('''OMRON 1000'',''MAT2''',?);
Debug Mode Screen Shoot:
Thanks
Saurav Kumar Suman
