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

about screen

as_dr
Participant
0 Likes
736

Hi Experts,

My problem is regarding with screen after creating the document (in any t-code) want to exit the current screen fe.if the user create the order in VA01 and save the document system should shutting the existing screen how can I solve the problem what I need?

Thanks so much for any help

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
714

Try to use 'LEAVE PROGRAM'.

6 REPLIES 6
Read only

Former Member
0 Likes
715

Try to use 'LEAVE PROGRAM'.

Read only

matt
Active Contributor
0 Likes
714

Please use a meaningful subject in future

What you want is for every transaction to leave the existing screen when save is pressed? That's not how SAP is designed. You would have to change nearly every transaction.

Given the question as stated, how Gaurav's answer is correct is beyond me.

Read only

0 Likes
714

Dear Matthew,

Gaurav 's answer is correct ,when the document save screen doesn't leave we have to use back buton for leaving current screen.İf you have any suggestion please share wtih me .

Read only

matt
Active Contributor
0 Likes
714

No. Gaurav isn't telling you to press the back button, he's telling you the ABAP command that if added to a transaction will leave the screen entirely. it's usually the command implemented by the back button.

Your requirement, if I understand it, is for ALL transactions to leave the screen when save is pressed. If that is your requirement, then I'm afraid SAP doesn't work like that, and there is no practical, general solution.

Read only

0 Likes
714

Dear Matthew,

Ok.I understand you. But if I don't want to use back buton for leaving the screen LEAVE programme is solution or not?

Read only

matt
Active Contributor
0 Likes
714

To use LEAVE PROGRAM, you'll have to modify the program behind VA01 (for example), and add the command at the right place for it to take effect. I.e. it's non-trivial and the solution for each transaction may well be different.

I'm pretty sure whoever came up with this requirement doesn't want the expense of modifying all standard transactions in your system. It's probably cheaper to train your staff...

Maybe though, there is another solution - but we can only determinet at if you can explain why this requirement exists? What is it that the users are doing that you don't want them to do?