ABAPDATA_HEADER_LINE - DATA HEADER LINE

BAL Application Log Documentation   RFUMSV00 - Advance Return for Tax on Sales/Purchases  
This documentation is copyright by SAP AG.

DATA - HEADER LINE

Short Reference



Obsolete Syntax

... WITH HEADER LINE ...

Effect

This addition to the statements DATATABLE OF, DATARANGE OF, and the obsolete statement DATAOCCURS (which is not allowed in classes) declares a further data object alongside the internal table, known as theheaderline. This object has exactly the same name as the internal table and has the row type of the internaltable as its data type. A header line cannot be declared for internal tables with a table-like row type. This is possible for structured row types with table-like components, however.

If you specify the name of an internal table itab in an operand position of an ABAP statement, the statement determines whether thetablebody or header line is used. As a rule, all table-specific statements such as SORTor LOOP use the internal table, whereas all other statements use the header line. Exceptions to this rule are listed underInternal Tables with Header Line.

To address the table body instead of the header line in statements, you can append [] to the table name:

... itab[] ...

For internal tables without a header line, the table body is always used. An internal table with a header line cannot be a component of a structure or a row of another internal table.

Notes

  • These statements for processing individual table rows haveobsolete shortforms that use the header line as a work area implicitly. These short forms are allowed only outside of ABAP Objects.
  • If the name primary_key is explicitly specified or asecondary key is defined when theprimary keyis being defined, the addition WITH HEADER LINE can no longer be specified, either inside or outside of classes.





CL_GUI_FRONTEND_SERVICES - Frontend Services   SUBST_MERGE_LIST - merge external lists to one complete list with #if... logic for R3up  
This documentation is copyright by SAP AG.


Length: 3121 Date: 20120522 Time: 043437     triton ( 174 ms )