Skip to content

ABAP Keyword Documentation →  ABAP - Reference →  Processing Internal Data →  Internal Tables →  Processing Statements for Internal Tables →  COLLECT 

COLLECT - result

Short Reference

Other versions: 7.31 | 7.40 | 7.54

Syntax


... { ASSIGNING <fs> [CASTING] } 
  | { REFERENCE INTO dref }.

Effect

With the ASSIGNING addition, the inserted or existing row is assigned to a field symbol <fs> and with the REFERENCE INTO addition, a reference to the inserted or existing row is set in a reference variable.

The syntax and meaning are the same as when specifying the output behavior in the READ TABLE statement and the same restrictions apply regarding the modification of key fields for primary and secondary table keys.