ABAPDATA_BEGIN_OF_OCCURS - DATA BEGIN OF OCCURS

ROGBILLS - Synchronize billing plans   SUBST_MERGE_LIST - merge external lists to one complete list with #if... logic for R3up  
This documentation is copyright by SAP AG.

DATA - BEGIN OF OCCURS

Short Reference



Obsolete Syntax

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 sequence introduced with DATA BEGIN OF (which is not permitted in classes) defines an internal table itab as astandard table with a structured row type and aheaderline. The declarations between the DATA BEGIN OF and DATA END OF statements define the components of therowtype for itab, in the same way as for normal variants of DATABEGIN OF. Data object n, which has to be specified as a numeric literal or numeric constant determines the initial memory requirement.

Notes

  • The above statement sequence is the original way of declaring internal tables. Internal tables declared in this way were always tables in the strict sense in which rows are generally built from individual columns.
  • The following statement sequence replaces the above statements (with the exception of the VALID BETWEEN addition) and the role of the header line is assumed by a 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 full declaration of itab in which the table kind and table key are enhanced with default values.

  • A header lineis always created for this variant # this cannot be deactivated. However, since header lines are particularlyundesirable in internal tables, this type of declaration should no longer be used for internal tables.


Addition

... VALID BETWEEN intlim1 AND intlim2

Effect

The VALID BETWEEN addition of the DATA END OF statement is only significant if the internaltable is to be processed using the obsolete form of the PROVIDEstatement. As intlim1 and intlim2, you can specify columns from the internal table ofdata type d, i, n, or t. In the obsolete form of the PROVIDE statement, these columns are used implicitly as interval limits.


ROGBILLS - Synchronize billing plans   CPI1466 during Backup  
This documentation is copyright by SAP AG.


Length: 3569 Date: 20120522 Time: 043138     triton ( 186 ms )