Hi,
Currently we are developing a data model for CRM on HANA where we have to use some input parameters to filter the information. We have created a graphical calculation view where we use the input parameters DATEFROM and DATETO.
We need to call this CV in another scripted calculation view where we want dynamically fill these input parameters. We have found in other topic a solution with following syntax:
SELECT * FROM "_SYS_BIC"."ZCMOBJECT" (PLACEHOLDER."$$DATEFROM$$" => ADD_DAYS (CURRENT_DATE, -1),
PLACEHOLDER."$$DATETO$$" => ADD_DAYS (CURRENT_DATE, -10));
However with this syntax our performance is a little poor because the graphical view takes around 8 - 9 seconds and with this syntax we get 25 - 30 seconds.
If we use the following syntax the performance is the same like when we run the graphical calculation view:
SELECT * FROM "_SYS_BIC"."ZCMOBJECT" ('PLACEHOLDER' = ('$$DATEFROM$$', '20150301' ), 'PLACEHOLDER' = ('$$DATETO$$', '20150311'));
We also got problems with CPU consumption with the first approach.
Does anyone have any problems with this solution?
PS. An additional note is related with a limitation because we have to do some calculations with function WORKDAYS_BETWEEN and this is only available in scripted CVs and that's the reason to use this scripted calculation view.
Thank you very much for your time.
Best regards,
Pedro Amaro