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

'back' action simulation

Former Member
0 Likes
571

Hi,

I've written an enhancement to prevent saving of production order based on some conditions. I want that whenever the conditions are not met , the program should simulate 'back' action i.e. return to previous screen. I've tried leave to screen 0 & leave program. Both of them terminate the program. Can any one please help ?

Bye

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
513

Try using the below;

If you want to reset the transaction use;

LEAVE TO TRANSACTION sy-tcode.

If you want to come out to SAP Access SCreen use;

LEAVE PROGRAM.

Regards

Karthik D

2 REPLIES 2
Read only

Former Member
0 Likes
514

Try using the below;

If you want to reset the transaction use;

LEAVE TO TRANSACTION sy-tcode.

If you want to come out to SAP Access SCreen use;

LEAVE PROGRAM.

Regards

Karthik D

Read only

0 Likes
513

works like charm ...Thanks sir.