Archiv der Kategorie: ABAP

Create range for selecting values in abap

DATA:   r_values TYPE RANGE OF ztest123-value,
        r_values_line LIKE LINE OF r_values.
 
    r_values_line-SIGN = 'I'.  "I = include, E = exclude
    r_values_line-OPTION = 'EQ'.   "EQ, BT, NE ....
    r_values_line-LOW = '123'.  
    r_values_line-HIGH = '124'.
    append r_values_line to r_values.

 http://www.sapdev.co.uk/tips/tips_range.htm