ABAP Keyword Documentation → ABAP - Quick Reference
COLLECT - Quick reference
Other versions: 7.31 | 7.40 | 7.54
Syntax
COLLECT wa INTO itab { [ASSIGNING <fs> [CASTING]]
| [REFERENCE INTO dref] }.
Effect
Inserts work areas wa
as rows in an internal table itab
.
Here, the primary table key already exists for some rows and the values of the remaining components are added to the values of the existing rows.
Additions
-
ASSIGNING <fs> [CASTING]
Assigns the inserted row to the field symbol<fs>
. A casting can be performed here. -
REFERENCE INTO dref
The data reference indref
is set to the inserted row.