‎2009 Feb 23 12:42 PM
Hi,
I am adding a 'UNDO' functionality on my screen which would work like sap standard screen undo button..but somewhere I am getting confused with it.Do anyone know any function module etc through which I can get some help..I tried to run a program ( in debug mode) and clicked on 'undo' on the standard toolbar so that I can view the logic behind it...but it didint stop on that..How can I view the code behind standard toolbar buttons?
‎2009 Feb 23 1:18 PM
Hi,
Can you be more specific about where this standard button is and what it looks like? I don't know of any undo feature of the standard toolbar.
Regards,
Nick
‎2009 Feb 23 2:22 PM
Hi,
I suppose you mean BACK button on standard toolbar. Is that right? If so, simply type /h in command field and press BACK button. System will switch to debugging mode and you can see the coding behind the button.
Regards
Marcin
‎2009 Feb 23 2:35 PM
Hi,,
Why can't you clearing the screen elements, when that buttonis triggered in the PAI event!
--Naveen Inuganti
‎2009 Feb 23 2:51 PM
Hi Priya,
Pick any standard SAP report which have UNDO functionality, put /H at command bar, go to debug mode and check the value of SY-UCOMM. After getting the value of sy-ucomm put that value on the pf-status of your program.
And you can write your own logic for undo button.
Regards,
Sayak