ABAP Keyword Documentation → ABAP − Short Reference
INSERT itab - Short Reference
Other versions: 7.31 | 7.40 | 7.54
Syntax
INSERT { wa
| {INITIAL LINE}
| {LINES OF jtab [FROM idx1] [TO idx2] [USING KEY key_name|(name)]} }
INTO { {TABLE itab}
| {itab INDEX idx}
| {itab} }
[ {ASSIGNING <fs> [CASTING]} | {REFERENCE INTO dref} ].
Effect
Inserts rows into an internal table itab
. A restricted
variant works withmesh paths.
Additions
-
wa
Inserts a work areawa
. -
INITIAL LINE
Inserts an initial row. -
LINES OF jtab [FROM idx1] [TO idx2] [USING KEY key_name|(name)]
Inserts the rows of internal tablejtab
that were specified by indexes idx1 andidx2
. The table key can be specified statically or dynamically. -
INTO TABLE itab
Specifies the insertion position using the primary table key. -
INTO itab INDEX idx
Specifies the insertion position using a table indexidx
. -
INTO itab
Specifies the insertion position in a loop using the current row. -
ASSIGNING <fs> [CASTING]
Assigns an inserted single row to a field symbol<fs>
, where casting can be performed. -
REFERENCE INTO dref
Assigns the reference (to an inserted single row) to a reference variabledref
.