ABAP Keyword Documentation → ABAP - Short Reference
AT - Short Reference
Other versions: 7.31 | 7.40 | 7.54
Syntax
[AT FIRST.
...
ENDAT.]
[AT field_groupi [WITH field_groupj].
...
ENDAT.]
[AT NEW comp1.
...
ENDAT.
...
[AT NEW comp2.
...
ENDAT.
[...]]]
[ ... ]
[[[...]
AT END OF comp2.
...
ENDAT.]
...
AT END OF comp1.
...
ENDAT.]
[AT LAST.
...
ENDAT].
Effect
Control level processing within LOOP
loops using
internal tables or
extraction datasets (obsolete), where statement blocks
enclosed in AT
and ENDAT
are executed depending on conditions.
Additions
-
FIRST
First row of the internal table or the extraction dataset. -
field_groupi
Row of the extraction dataset that was appended by the statementEXTRACT field_groupi
. -
WITH field_groupj
Condition that the next row was appended byEXTRACT field_groupj
. -
NEW comp1
,NEW comp2
, ...
First row of a group with the same content in the componentscomp1
,comp2
, ... and in the components to the left ofcomp1
,comp2
, ... -
END OF comp1
,END OF comp2
, ...
Last row of a group with the same content in the componentscomp1
,comp2
, ... and in the components to the left ofcomp1
,comp2
, ... -
LAST
Last row of the internal table or the extraction dataset.