Skip to Content

HANA Input parameter issue - Need help

I got struck with HANA input parameters issue, Any ideas/Suggestions are greatly appreciated.

Issue :

---------

I have a basic calculation view of data category as cube. It has projection, aggregation (default) and semantics. In projection, I am restricting table VBAK, need five fields Doc num VBELN, creation date ERDAT, division SPART, sales org VKORG and NETWR.

Want to create four input parameters for four fields VBELN, ERDAT, SPART and VKORG. User should be able to enter multiple entries for VBELN/VKORG/SPART and date range for ERDAT.

Note :

1, When input parameter left as blank, system should fetch all values and i need all four parameters (Incase of one parameter, i know, it works with match function).

2. If user enters two parameters and left two as blank, data should fetch as per parameters entered considering blank parameters as 'ALL VALUES' (Just like BEx variables)

Any inputs/suggestions from your end is greatly appreciated.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • Posted on Aug 10, 2016 at 02:13 PM

    Hi Raghavendra,

    Create Variables instead of Input parameters for VBELN, ERDAT, SPART and VKORG.

    This will fulfill your purpose.

    Regards

    Raj Kumar Salla


    Add a comment
    10|10000 characters needed characters exceeded

    • Your interpretation of what you see in the debug view windows is not correct.

      The debug view doesn't anticipate all possible selection criteria but generates a default query that allows for the selected node to execute.

      Raj has demonstrated that very well and PlanViz is the right tool to check for actual execution.

      If the filter consideration is the only reason for the use of input parameters, then I'd recommend to reconsider as applying the conditions in the WHERE condition does the same thing.

  • Posted on Aug 10, 2016 at 04:42 AM

    Have a look on the below thread which will answer on how to use MATCH :

    Regards,

    Krishna Tangudu

    Add a comment
    10|10000 characters needed characters exceeded

    • Hi Krishna,

      Thank you for your time/response.

      'Match' function is working fine with single input parameters, incase of multiple input parameters, if i use 'match' on all and if I pass value to one parameter and left another one blank, still system bringing all values.... ( Ideally, system should fetch data based on parameters entered only,.. just like BEx variables or any other variables)

      ex - i have two parameters year and customer. If i pass customer value and left year as blank, system should fetch data for that customer for all years.

  • Posted on Aug 10, 2016 at 07:35 AM

    I'm not quite sure, why you want to provide all the filtering through parameters.

    Why not simply leave it to the WHERE clause?

    Which front end are the users using?

    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.