SAP DATA OCCURS ABAP Statements

Get Example source ABAP code based on a different SAP table
  



DATA - OCCURS

Short Reference
• OCCURS DATA - obsolete

ABAP Syntax(Obsolete)DATA itab { {TYPE [REF TO] type}
| {LIKE [REF TO] dobj} } OCCURS n
[WITH HEADER LINE].

What does it do? This statement is forbidden in classes. It has exactly the same function as the following DATA statement for the declaration of a standard table and is replace by this also: DATA itab { {TYPE STANDARD TABLE OF [REF TO] type}
| {LIKE STANDARD TABLE OF [REF TO] dobj} }
WITH NON-UNIQUE DEFAULT KEY
INITIAL SIZE n.
[WITH HEADER LINE].

The usage of the addition WITH HEADER LINE is obsolete anyway.

Return to menu