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: 

How to go back to an ALV display.

Former Member
0 Kudos

hello there,

i need to create an ALV report then in this ALV when i click on a custom made button,the system call a transaction. if the user press the back button,the system must redirect to the previous ALV display.

my question is how can i perform this task.

i cant access the code of the transaction been called.

thanks in advance.

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi,

As you said that when you select a record on ALV and then you click on custom button it navigates to a Ztransaction, there when you click on back on 'BACK' write it as leave to screen 0. it should take you to the previous screen.

if you trying to modify the value through module pool for the selected record on ALV why dont you try that on ALV itself...

Hope you got it.'

Regards,

Ranjith N

7 REPLIES 7

Former Member
0 Kudos

Hi ..

When you press back button ideally system should come back to the Alv Screen..

The below link can throw show you some path towards the solution .

Just have a look ...

Hope this helps you.

Thanks and Regards

Aditi Wason

0 Kudos

thank Aditi Wason.

i have one more question. the thing is that i have not done the entire coding yet,am still investigating on my problem because i thought to be able to perform the back operation i should create a module pool.

when i call the required transaction in the first screen i must input some details and by pressing enter the system call another screen. so my second question is, will it works, as you kindly replied previously, in this situation also; that is the back operation will bring me back to the alv from the second screen in the transaction?

thank again.

Edited by: click_17 on Aug 23, 2009 7:01 AM

0 Kudos

Hi,

If you want to display the ALV screen on clicking the BACK button, then you can code something like this



if sy-ucomm eq 'BACK'.
    leave to screen <screen number> " The screen number where you have your ALV display.
endif.

0 Kudos

thanks for your answers.

but the problem is that i did not implement the transaction and hence i dont have access to its source. therefore i cant check if the BACK button is been pressed.

Former Member
0 Kudos

Hi,

As you said that when you select a record on ALV and then you click on custom button it navigates to a Ztransaction, there when you click on back on 'BACK' write it as leave to screen 0. it should take you to the previous screen.

if you trying to modify the value through module pool for the selected record on ALV why dont you try that on ALV itself...

Hope you got it.'

Regards,

Ranjith N

Former Member
0 Kudos

Hi

You can try to find a user exit for that transaction and can add your code to it.

Can you specify which transaction you are using.

Thanks and Regards

Aditi Wason

Former Member
0 Kudos

hi guys,

thanks you for your help. i have finally solved this problem with the help of a friend.

i just need to activate the back button and when calling the required transaction i just need to skip the first screen.

it works fine.

thanks again