SAP ITAB SHORT FORMS

Get Example source ABAP code based on a different SAP table
  


ARTICLE

READ, LOOP, INSERT, COLLECT, APPEND, MODIFY, DELETE - Short Forms
• READ TABLE - 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

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.

Effect
In the processing statements shown above for internal tables, a specification of the obsolete header lines INTO itab, itab INTO, itab TO, and FROM itab is supplemented implicitly. For these short forms to be used, a header line must exist. These short forms must not be used in classes. Instead, an explicit work area INTO wa, wa INTO, wa TO , and FROM wa must be specified.