Skip to Content
author's profile photo Former Member
Former Member

How to pass variables ( NOT INPUT PARAMETER ) in script based calculation view - SAP HANA


I would like to know how to get total number of employees for departments. How to achieve this in SAP HANA Script based calculation view ?

example :- Select Count(*) from emp where dept in ( <I need to pass the variable here > );

I would like to pass departments ( eg 'A','B','C','D') into the above sql ( In Script based calculation view )


Sayan Paul

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Best Answer
    Posted on Jan 27, 2014 at 12:12 PM

    Hi Sayan,

    I just posted the answer in the other thread where you asked me.

    One more thing, you cannot reference variable in a script based calculation view as it doesn't have something placeholder.


    Krishna Tangudu

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.