SAP DATA OCCURS ABAP Statements



Get Example source ABAP code based on a different SAP table
  


• OCCURS DATA - obsolete

DATA, OCCURS
Short Reference

ABAP_SYNTAX_OBS
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 replaced by this: 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 use of the addition WITH HEADER LINE is obsolete

Return to menu