TYPES - RANGE OF

Syntax

TYPES dtype {TYPE RANGE OF type}|{LIKE RANGE OF dobj}
            [INITIAL SIZE n].

Effect

This statement defines a table type for a ranges table, that is with the table type standard table, with a standard key, and a specially structured row type whose internal definition can be displayed as follows in ABAP syntax:

TYPES: BEGIN OF linetype,
         sign   TYPE c LENGTH 1,
         option TYPE c LENGTH 2,
         low    {TYPE type}|{LIKE dobj},
         high   {TYPE type}|{LIKE dobj},
       END OF linetype.

The additions TYPE and LIKE determine the data type of the components low and high:

The addition INITIAL SIZE is synonymous with the definition of normal internal table types.

Note

A ranges table has the same structure as a selection table, and can be used for pass by value to the selection screen of an executable program, which was called with SUBMIT, in logical expressions and in the addition WHERE of open SQL statements.