05-26-2011 9:14 AM
Hi Experts,
I have created a ALV report using class CL_SAL_TABLE. I have created some buttons in the application toolbar of ALV by which I can jump to other ALV views. Now my requirement is if I click on the Exit (Shift+F3) button on the standard toolbar at that time, I'd be taken back to the selection screen. Currently both the back and exit button behaves the same way (i.e. set screen 0. leave screen.). I want to change the behaviour for exit button.
Can anybody help me how to implement that?
Thanks,
Mainak
05-26-2011 9:58 AM
Hello Mainak,
Now my requirement is if I click on the Exit (Shift+F3) button on the standard toolbar at that time, I'd be taken back to the selection screen.
"Exit" button of the which screen? I mean - the starting ALV or the subsequent ones. Please clarify!
05-26-2011 10:07 AM
05-27-2011 5:24 AM
Hi Mainak,
Call the screen number that you wish to. (Selection-screen number).
CASE sy-ucomm.
WHEN EXIT.
CALL SCREEN 'xxxx'.
05-27-2011 8:15 AM
Hi Sowmya,
The problem is not the code that I need to put but the problem is the place where I need to place the code. Can you explain that please (In which event handler method more precisely?)
Thanks,
Mainak
05-30-2011 8:18 AM
Hi,
I am awaiting your suggestions. Please help me on this.
Thanks,
Mainak
05-31-2011 4:18 PM
Hello Mainak,
It's very simple. Create a custom GUI Status and set you GUI status in the PBO.
Then write your own code for the Back/ Exit inside the PAI Module .
Hope this helps.
Thanks,
Greetson
06-18-2011 5:06 PM
Hi Greetson,
I am already using a custom GUI status. Have you already tried this by your own? If you have succeeded, then can you please share the steps you did to achieve this.
Thanks,
Mainak
Edited by: Mainak Aich on Jun 18, 2011 9:38 PM