2022 Oct 21 11:38 AM
Hi, I want check the range LR_VAL specifically the LOW field.
My code is like this but it doesnt work.
IF waers IN LR_VALUES[]
>>Do something
ENDIF.
2022 Oct 21 11:42 AM
it won't work. For me you have to use a standard table to extract a list of value.
Just imagine you have SIGN = 'E' somewhere
2022 Oct 21 1:37 PM
Does your internal range only contains exact values (I/EQ records)
Also define your range from the actual field definition to remove any error related to some wrong length for example...
2022 Oct 21 1:44 PM
No issue:
TYPES ty_range_waers TYPE RANGE OF waers.
DATA(lr_val) = VALUE ty_range_waers( sign = 'I' option = 'EQ' ( low = 'CHF' ) ( low = 'EUR' ) ).
ASSERT 'CHF' IN lr_val.
ASSERT 'EUR' IN lr_val.
ASSERT 'USD' NOT IN lr_val.
2022 Oct 21 7:45 PM
sandra.rossi Thanks. However, I have resolved it in a different way as I have populated the LR_VAL range in a wrong way.