SAP ITAB SHORT FORMS



Get Example source ABAP code based on a different SAP table
  


• READ TABLE itab - short form ABAP Statement
• LOOP AT itab - short form ABAP Statement
• INSERT itab - short form ABAP Statement
• COLLECT - short form ABAP Statement
• APPEND - short form ABAP Statement
• MODIFY itab - short form ABAP Statement
• DELETE itab - short form ABAP Statement

READ, LOOP, INSERT, COLLECT, APPEND,MODIFY, DELETE, Short Forms

Obsolete Syntax
READ TABLE itab table_key|free_key| index.

LOOP AT itab $[ cond$].

INSERT itab_position $[result$].

COLLECT itab $[ result$].

APPEND TO itab $[SORTED BY comp$] $[ result$].

MODIFY table_key$|index $[TRANSPORTING comp1 comp2 ...$]$[result$].
MODIFY itab TRANSPORTING comp1 comp2 ... WHERE log_exp$|(cond_syntax).

DELETE TABLE itab.

What does it do?
These short forms of processing statements for internal tables, which are forbidden in classes, can only be used for obsolete standard tables with header line. INTO itab, itab INTO, itab TO, and FROM itab are added to them implicitly, with itab indicating the header line. Instead, an explicit work area wa must be specified in explicit additions INTO wa, wa INTO, wa TO, and FROM wa.