Get Example source ABAP code based on a different SAP table
• OCCURS DATA BEGIN OF - obsolete
DATA>, BEGIN OF OCCURS> Short Reference >
ABAP_SYNTAX_OBS DATA BEGIN OF itab OCCURS n.> ...> DATA END OF itab $[VALID BETWEEN intlim1 AND intlim2$].>
ABAP Addition ... VALID BETWEEN intlim1 AND intlim2>
What does it do? 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>.
Latest 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. ABAP_HINT_END • VALID BETWEEN DATA END OF - obsolete
ABAP Addition
What does it do? 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>.