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: 

ALV handle button

Former Member
0 Kudos

Hi experts.

On standard screen I have created 3 button: button1, button2 , EXIT button.

When click on button1 --> show ALV

when click on button 2 ---> show ALV

when click on EXIT button --> I want leave all ALV and back selection screen (screen to input data)==> How to do with EXIT button to leave all ALV to back selection screen?

Thanks alot.

1 REPLY 1

Former Member
0 Kudos

Hi

Are you displaying both the alvs(i mean alv1 and alv2) on same screen?

if both are displayed on same screen then handling back/exit button would not be a problem. if both are displayed on 2 different screeens, and one screen is displayed at a time ( i mean after selection screen either alv1 or alv2 are displayed then also its easy to handle. just write leave to screen 0. it will work.

if alv1 and alv2 are displayed in sequence, like after selection screen alv1 then alv2 and you want to jump from alv2 to back to selection screen then u have to use the following logic.

In screen alv2 back button write leave to screen 0. and in PBO of alv1 screen check sy-ucomm if its back then again write leave to screen 0. This way you can directly jump from alv2 to selection screen.