SAP NetWeaver AS ABAP Release 740, ©Copyright 2014 SAP AG. All rights reserved.
Cannot Change an Internal Table in a Loop
In ABAP Objects, the following statements cause an error message:
LOOP AT itab INTO wa.
CLEAR itab.
ENDLOOP.
Correct syntax:
LOOP AT itab INTO wa.
...
ENDLOOP.
CLEAR itab.
Cause:
When the table is accessed again, system behavior will be unpredictable and may lead to runtime errors.