CDS View with parameters table type and FOR ALL ENTRIES

Hi,

I’m slowly starting to create CDS View with parameters. Apparently we cannot pass type tables as parameters in order to do a FOR ALL ENTRIES in my SELECT.

More simply, I have the following code that I would like to convert to CDS View:

 

REPORT zmy_test.

DATA: lt_matnr TYPE range_t_matnr.

lt_matnr = VALUE #( ( sign = ‘I’ option = ‘EQ’ low = ‘000000454665464655’ )
( sign = ‘I’ option = ‘EQ’ low = ‘000000665988866530’ ) ).

SELECT * FROM mara INTO TABLE @DATA(lt_mara_d)
FOR ALL ENTRIES IN @LT_matnr
WHERE matnr = @LT_matnr-low.

WRITE:/, lines( lt_mara_d ).

 

Thanks for your help.

Scroll to Top