ABAP Keyword Documentation → ABAP − Reference → Obsolete Language Elements → Obsolete Declarations → Internal Tables → Internal Tables with Header Line
RANGES
Other versions: 7.31 | 7.40 | 7.54
Obsolete Syntax
RANGES range_tab FOR dobj [OCCURS n].
Effect
Obsolete declaration of a ranges table. This statement (not allowed in classes) is a short form of the following statement sequence which is also not allowed in classes:
sign TYPE c LENGTH 1,
option TYPE c LENGTH 2,
low LIKE dobj,
high LIKE dobj,
END OF range_tab.
Declares an internal table range_tab with the structure of a
ranges table and a
header line. Without the
addition OCCURS, the initial
memory requirement of the ranges table is set to ten rows. The addition OCCURS
can be used to specify a numeric literal or a numeric constant n to determine a different initial memory requirement.
Notes
-
The statement
RANGESis replaced by the additionTYPE|LIKE RANGE OFof the statements TYPES andDATA. If used, these declare ranges tables without header lines. -
The
signandoptioncolumns of a ranges table declared usingRANGESare not related to data types in ABAP Dictionary. For a ranges table defined in ABAP Dictionary, these columns are based on the data elements DDSIGN and DDOPTION.