Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

ON CHANGE OF

Former Member
0 Kudos

Hi pals,

What is the replacement for ON CHANGE OF in ECC 6.0... it is obsolete in OO concepts?...

thanks

Krishnan

1 ACCEPTED SOLUTION

Former Member
0 Kudos

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^

2 REPLIES 2

Former Member
0 Kudos

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

Former Member
0 Kudos

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^