SAP NetWeaver AS ABAP Release 740, ©Copyright 2014 SAP AG. All rights reserved.
ON CHANGE OF - ENDON not Permitted
ABAP Objects error message at:
ON CHANGE OF f.
...
ENDON.
Correct syntax:
DATA g LIKE f.
IF f <> g.
...
g = f.
ENDIF.
Reason:
The system internally creates a global invisible auxiliary field which cannot be controlled
by the program. You are recommended to declare your own auxiliary field and process it with the IF control structure.