DATA - BEGIN OF OCCURS

Syntax

DATA BEGIN OF itab OCCURS n.
  ...
DATA END OF itab [VALID BETWEEN intlim1 AND intlim2].

Addition:

... VALID BETWEEN intlim1 AND intlim2

Effect

This sequence of statements, which is forbidden in classes, declares an internal table itab as a structured standard table with a header line. The declarations between the statements DATA BEGIN OF and DATA END OF define the components of the row type for itab. The data object n that has to be specified as a numeric literal or numeric constant determines the initial memory requirement.

Addition

... VALID BETWEEN intlim1 AND intlim2

Effect

The VALID BETWEEN addition of the DATA END OF statement is only important if the internal table is to be processed using the obsolete form of the statement PROVIDE. As intlim1 and intlim2, you can specify columns from the internet table of the data type d, i, n, or t. These columns are used implicitly as interval limits in their obsolete form of the statement PROVIDE.

Note

In classes, no internal tables with header lines can be declared. For this reason, the above sequence of statements is not allowed in classes. The following sequence of statements replaces the above statements (with the exception of the addition VALID BETWEEN); here the role of the header line is adopted by the work area wa:

DATA BEGIN OF wa.
       ...
DATA END OF wa.

DATA itab LIKE TABLE OF wa.

The last statement is an abbreviated form of the complete declaration of itab, where the table type and key are supplemented with standard values.