Application Development 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: 

Regarding alv output

former_member598013
Active Contributor
0 Kudos

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

1 ACCEPTED SOLUTION

former_member203501
Active Contributor
0 Kudos

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 ..

6 REPLIES 6

former_member184119
Active Contributor
0 Kudos

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

Former Member
0 Kudos

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

former_member203501
Active Contributor
0 Kudos

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 ..

0 Kudos

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

0 Kudos

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

Former Member
0 Kudos

Hi,

instead of Leave to screen 0 call the alv screen number.