Skip to Content
0

CDS View - Consumption View multiple default values

Oct 19, 2017 at 04:06 PM

642

avatar image

I'm building a consumption CDS view where I need to set multiple default values for a specific consumption filter:

The current default value works perfectly. My issue is that I need to include a few more values in there, and I can't figure out the correct syntax or method to do so.

For example, I need Movement Type to default to 601 and 901.

What's the correct way to do this?

All the best,

Marcelo

1.png (6.6 kB)
10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

2 Answers

ERALPER YILMAZ Oct 25, 2017 at 03:30 PM
0

Hi Marcelo,

Do you want to have multiple single value for the select-option?

I could not see to define a set of values for

defaultValue

in

select 
from vbak {

@Consumption.filter : { 
    selectionType : #SINGLE, 
    multipleSelections : true,
    defaultValue : '1653000003'
}    
    vbeln,    //several single values are allowed    

Perhaps you have already checked, if not have a look at

https://help.sap.com/doc/cc0c305d2fab47bd808adcad3ca7ee9d/7.5.6/en-US/d60c0bf6798a481fb7412bc89934cb8a.html

But there is not an explicitly shown sample for your case

Show 1 Share
10 |10000 characters needed characters left characters exceeded

Thanks Eralper,

As you mention the link doesn't provide an example for multiple default values in a filter.

At this point, it doesn't matter if it's multiple single values or a range. As long as I can DEFAULT multiple values in the filter, I'd be able to satisfy my requirements.

Best regards,

Marcelo

0
Hendrik Pleis May 02 at 09:18 AM
0

Hi Marcelo,

i Currently have the same problem. Did you find a solution?

Best regards,

Hendrik

Share
10 |10000 characters needed characters left characters exceeded