Documentation View

We are hiring and constantly growing! Have a look through our vacancies to find the right role for you!

ABAPDATA_BEGIN_OF_OCCURS - DATA BEGIN OF OCCURS

ABAPDATA_BEGIN_OF_OCCURS - DATA BEGIN OF OCCURS

BAL Application Log Documentation   General Data in Customer Master  
This documentation is copyright by SAP AG.
SAP E-Book

DATA, BEGIN OF OCCURS

Short Reference



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

Addition:

... VALID BETWEEN intlim1 AND intlim2

Effect

This variant of the statement string introduced by DATA BEGIN OF, which is forbidden in classes, declares an internal table itab as a standard table with a structured line type and a header line. The declarations between the statements DATA BEGIN OF and DATA END OF define the components of the line type of itab, just as in the regular variant of DATA BEGIN OF. The data object n, which must be specified either directly as a numeric literal or as a numeric constant, determines the initial memory requirement.

Notes

  • The statement string above is the original form of the declarations of internal tables. Internal tables declared in this way have always been tables in the real sense, meaning that the lines are mainly constructed from individual columns.
  • The following statement list replaces the above statements (except for the addition VALID BETWEEN), whereby the role of the header line is taken from the work area wa:
DATA BEGIN OF wa.
       ...
DATA END OF wa.
DATA itab LIKE TABLE OF wa.
The last statement is a short form of the complete declaration of itab, where the table type and key are supplemented with standard values.
  • The creation of the header line cannot be disabled in this variant. Since header lines in internal tables should never be used, however, this way of declaring internal tables should never occur again.

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. intlim1 and intlim2 expect columns from the internal table of the data type d, i, n, or t. These columns are used implicitly as interval limits in the obsolete form of the statement PROVIDE.






General Material Data   General Material Data  
This documentation is copyright by SAP AG.

Length: 3462 Date: 20221127 Time: 035422     sap01-206 ( 61 ms )