Get Example source ABAP code based on a different SAP table
Standard SAP Help for RANGES
RANGES
Short Reference • RANGES ABAP Statement • FOR RANGES (obsolete) • OCCURS RANGES (obsolete)
ABAP Syntax(Obsolete)RANGES rtab FOR dobj [OCCURS n].
What does it do? 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: DATA: BEGIN OF rtab OCCURS {10|n}, sign TYPE c LENGTH 1, option TYPE c LENGTH 2, low LIKE dobj, high LIKE dobj, END OF rtab.
Declares an internal table rtab with the structure of aselection table and a header line. Without the addition OCCURS, the initial memory requirement of the ranges table is set to ten rows. You can use the addition OCCURS to specify a numeric literal or a numeric constant n to determine a different initial memory requirement.