Skip to Content

Determine if calculation view multiple entries parameter is empty or blank

I have a calculation view which has an input parameter which is defined as allowing multiple entries.

This calculation view is consumed in an AMDP class method, where I pass a string to the parameter like such: 'A','B' (based on the user entry of selections).

I use this parameter inside the calculation view in a projection filter expression: in("field", $$xxxx$$)

This works OK - until I don't pass anything to the parameter. (In other words the calculation view receives a null or blank or empty array - I'm not sure which).

So that all values are allowed when the parameter is not specified (ie, the user leaves the selection option blank in the ABAP program that calls the method), I would like to construct an expression like:

if(Isnull($$xxxx$$), 1=1, in("field", $$xxxx$$))


if(trim($$xxxx$$) = '', 1=1, in("field", $$xxxx$$))


if(trim(string($$xxxx$$)) = '', 1=1, in("field", $$xxxx$$))


if(match($$xxxx$$, '*')), 1=1, in("field", $$xxxx$$)) [where * is specified as the default for the parameter)

But these variations all don't work.

Anybody aware of a solution..?

1npbe.png (27.4 kB)
Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Posted on Jul 26, 2020 at 03:27 PM

    We had a similar situation but couldn't find any adequate solution, even I will be interested to now if anyone found a solution. That said however please see if there is something you could achieve by changing the parameter type for your scenario


    Abhishek Shanbhogue

    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.