Application Development and Automation 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: 
Read only

Problem with undo button

Former Member
0 Likes
715

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?

4 REPLIES 4
Read only

Former Member
0 Likes
643

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

Read only

MarcinPciak
Active Contributor
0 Likes
643

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

Read only

naveen_inuganti2
Active Contributor
0 Likes
643

Hi,,

Why can't you clearing the screen elements, when that buttonis triggered in the PAI event!

--Naveen Inuganti

Read only

RoySayak
Active Participant
0 Likes
643

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