AT field_symbol
ABAP Syntax(Obsolete) AT {NEW}|{END OF}
fsi .
What does it do? If the additions INTO wa or ASSIGNING
fs are used in the statement LOOP
, a field symbol fsi can be specified after
AT {NEW}|{END OF} , outside classes. The
associated component of the work area wa or the field symbol
fs is assigned to this field symbol.
Latest notes: This form of specifying components dynamically is obsolete
and has been replaced by (name) .
Bad example
name = 'WA-COL1'.
ASSIGN (name) TO comp .
LOOP AT itab INTO wa.
AT NEW comp .
...
ENDAT.
ENDLOOP.
Good example
name = 'COL1'.
LOOP AT itab INTO wa.
AT NEW (name).
...
ENDAT.
ENDLOOP.
Documentation extract taken from SAP system, � Copyright SAP AG. All rights reserved