10-10-2007 9:14 AM
Hi pals,
What is the replacement for ON CHANGE OF in ECC 6.0... it is obsolete in OO concepts?...
thanks
Krishnan
10-10-2007 9:20 AM
hi
good
i dont think there is any replacement of ON CHANGE OF in ECC6.0,yes it might be absolute in OO concept but not in normal ABAP report.
thanks
mrutyun^
10-10-2007 9:17 AM
Yes. You're right.
ON CHANGE OF is not supported in OO ABAP.
This is an excerpt from the Obsolete ABAP Language Constructs. YOu can define another field to track the changes and process accordingly.
ON CHANGE OF - ENDON not allowed
The pseudo control structure ON CHANGE OF - ENDON is not allowed in ABAP Objects.
Error message in ABAP Objects
if the following syntax is used: ON CHANGE OF f. ... ENDON.
Correct syntax:
DATA g LIKE f.
IF f <> g. ...
g = f.
ENDIF.
Reason:
A global invisible work field over which the program has no control is created internally.
A separate work field should be declared and processed using the IF control structure.
Also see https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/abap/obsolete%20ab... Page #19
10-10-2007 9:20 AM
hi
good
i dont think there is any replacement of ON CHANGE OF in ECC6.0,yes it might be absolute in OO concept but not in normal ABAP report.
thanks
mrutyun^