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.
Overview:
Replacement for Obsolete Statements ABAP Objects