on 01-02-2014 1:47 PM
I have had success, thanks to information provided on these pages in passing parameters from a universe to HANA graphical views; however, my application requires passing parameters to a scripted view. I have not been able to do this: when I attempt to define the view in a universe, the Information Design Tool interprets parameters as manditory and throws an error: seach on calculation model requires parameters; required variable <parameter> is not set. Can someone help me with a solution to this problem?
Hi Steve,
Have you tried setting a default value to the parameters in the scripted view?
Regards,
Rashmi
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Rashmi,
Thanks for your response. Yes I have tried that. The Information Design Tool requires that parameters not be set to mandatory. However in a scripted calculation view, parameters by default are created as mandatory - that seems to be the cause of the problem. In the properties view of the parameter, I set the 'Is Mandatory' value to FALSE and provide a default value. However, this does not clear the inaccessable checkbox in the pop up window for the parameter nor does it change properties of the parameter as viewed by the IDT.
Steve
Hi Steve,
By looking your screen shot, you have defined an input parameter with name "REGION" and in Script based calculation view, you are using "inregion" instead of "REGION" in placeholder.
If possible, use UPPER CASE "REGION" instead of SMALLER CASE "region" while defining script based calculation view.
Couple of more points:
If you have created a semantic layer using calculation view contains input parameter in BO Information Design tools.Then later when you access the same semantic layer through BI tools then automatically prompt dialog should appears asking for values. OR With universes on a single view it is possible to use the END_SQL parameter where you add the parameters to pass to the view, something like:
END_SQL defined as WITH PARAMETERS ('PLACEHOLDER' = ('$$CURRENCY_CODE$$', 'EUR'), 'PLACEHOLDER' = ('$$DATE$$', '09092007'))
And you can actually use prompts instead of hard coded values.
Please refer this document from Page No 16. [https://scn.sap.com/docs/DOC-27676].
Hope this helps.
Best Regards,
Vaibhav
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.