12-10-2008 1:33 PM
Hello Gurus....
I have a problem in the Report.
My scenario is I have Creatd on one alv. In the ALV output I have created one Button. Inside the button I called one SCreen (Say screen 100).
Everything is working fine. once the Button is pressed then the screen is called.
Now when I try to press the button inside the Screen it takes me directly to the selection screen. But i want to display the report output.
I have written the code inside the button in SCreen
Leave to screen 0.
Please provide me some solution.
Thanks,
Chidanand
12-10-2008 1:39 PM
hi dont use this ...leave to screen 0 ..this is for the initial selection screen .
try to call another screen say 200 for the display . in that create a custom container or tabstrip or what ever...it will works ..
12-10-2008 1:35 PM
see write the code of the screen command form what u have written & where u have written (Hope obivously PAI) .So its easy to catch
Regards
Sas
12-10-2008 1:38 PM
Hi Chidanand,
Leave to screen XXXX terminates the processing of the current screen and take you directly to screen 0.
If you use LEAVE SCREEN without a SET SCREEN before it, you terminate the
current screen and branch directly to the screen specified as the default next-screen in the
screen attributes.
If you dont call the screen sequence and directly use Leave to screen 0, then the transaction is terminated.
So, you might either want to use SET SCREEN or CALL SCREEN before LEAVE TO SCREEN based on your requirement.
Hope that helps!
Vijay
12-10-2008 1:39 PM
hi dont use this ...leave to screen 0 ..this is for the initial selection screen .
try to call another screen say 200 for the display . in that create a custom container or tabstrip or what ever...it will works ..
12-10-2008 2:00 PM
Hello All,
Thanks for the Quick Reply,
Actually I have tried all the above mentioned combination in the Screen button but still it is not working.I really dont know why it is behaving like this.
I am using the normal alv output and in the output of the normal alv I have craeted one button. Inside the button I have called one screen but when I try to come in the PAI Event I am not getting the ALV output cause my screen still remain there.
I have used several combinations:
like
Leave to SCreen 0
Leave screen
Leave list-processing
Leave to list-processing.
Any other solution then please let me know.
Thanks,
Chdianand
12-10-2008 2:04 PM
Hi Chidanand,
Don't use leave screen command in this case.
Use CALL SCREEN incase you want to return to the screen you were in after the outut processing is done.
Or, use SET SCREEN incase you want to branch to a new screen sequence and you dont want to return.
Let us know how it goes!
Vijay
12-10-2008 1:39 PM