‎2009 Nov 16 9:33 PM
Hello Everybody,
I have created custom menu in Module Pool program.;
I am trying to switch between 2 views using the Menu.
When I click on Back after the switch using menu,
I am going back to the previous screen.
But I want it to go to Easy Access screen when I click on back.
Can someone help me with this please.
Thanks,
Sneha Singh.
Edited by: Julius Bussche on Nov 17, 2009 12:24 AM
Please use appropriate subject titles.
‎2009 Nov 16 9:38 PM
>
> Hello Everybody,
>
> I have created custom menu in Module Pool program.;
> I am trying to switch between 2 views using the Menu.
>
> When I click on Back after the switch using menu,
> I am going back to the previous screen.
>
> But I want it to go to Easy Access screen when I click on back.
> Can someone help me with this please.
>
Write code to leave screen instead of leave to transaction 0.
‎2009 Nov 16 9:38 PM
>
> Hello Everybody,
>
> I have created custom menu in Module Pool program.;
> I am trying to switch between 2 views using the Menu.
>
> When I click on Back after the switch using menu,
> I am going back to the previous screen.
>
> But I want it to go to Easy Access screen when I click on back.
> Can someone help me with this please.
>
Write code to leave screen instead of leave to transaction 0.
‎2009 Nov 16 9:42 PM
Sampath, I did write code to Leave Screen.
I am using the command "LEAVE PROGRAM".
But its going back to the previously called screen.
‎2009 Nov 16 9:51 PM
Did you try : Leave to current transaction statement?
Anyways, Leave program should work.
Just a work around..... change the Go to PF-status - double click on the back button or the buttons you specified to back, exit cancel then choose 'E' in functional type.
In your program.... write .... module exit at exit-command. Double click on the exit module and write the code
leave program.
This should work as you expected .
Good luck
‎2009 Nov 16 9:54 PM
Sampath,
Thanks. I did what u suggeste previously, but it didnt work.
I added the line "LEAVE TO TRANSACTION 'SESSION_MANAGER'".
Its working. Thanks for the pointer. Full points awarded.