on 11-09-2021 4:54 PM
hi,
I want to put a condition for alv report . need to maintain data from 4 document types (BLART) from bsis and bsak. I'm trying to add the condition in select query. Where BLART = 'KE' & 'RN' & 'Z5' & 'KZ'.
but it takes only first document in type 'KE' only.
how to maintain these documents types. how to declare this..tried multiple ways..please help on this.
1> Try OR operator like
Where BLART = 'KE' OR
BLART = 'RN' OR
BLART = 'Z5' OR
BLART = 'KZ'.
2> Try Range table
DATA ltr_blart_range TYPE RANGE OF blart. "<DataElement>
ltr_blart_range = VALUES #(
( sign = 'I' option = 'EQ' low = 'KE' )
( sign = 'I' option = 'EQ' low = 'RN' )
( sign = 'I' option = 'EQ' low = 'Z5' )
( sign = 'I' option = 'EQ' low = 'KZ' )
).
Select * from <db>
Where BLART IN ltr_blart_range.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
83 | |
10 | |
10 | |
9 | |
7 | |
6 | |
6 | |
6 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.