RANGES

Basic form

RANGES sel FOR f.

Addition:

... OCCURS n

This statement is not allowed in an ABAP Objects context. See Prohibit RANGES.

Effect

Defines an internal table similar to a selection

criterion sel defined using the SELECT-OPTIONS sel FOR f statement.

The above statement is identical to:

DATA: BEGIN OF sel OCCURS 10,
         SIGN(1),
         OPTION(2),
         LOW  LIKE f,
         HIGH LIKE f,
      END   OF sel.

Note

If you use the IN operator in conjunction with SUBMIT, CHECK, IF, WHILE or SELECT, always define the associated internal table using SELECT-OPTIONS or RANGES (never directly).

Addition

... OCCURS n

Effect

Changes the OCCURS value 10 to the value of occ.

Additional help

Selection Tables