2013 Mar 08 9:54 PM
Hi!
For some reasons i've used the old function module reuse_alv_grid_display in a large report.
I'm calling it few times for list outputs, few times for a protocol ...
But when i click on the back button (the one near cancel and exit) i have to walk through all previous list outputs.
What i want is to go immediately to the starting selection screen.
This should have to do with the list index (or similar)...
How can i avoid that previous lists stay in buffer when i call the alv-module again?
Thanks in advance for your help.
Cheers, Ingo
2013 Mar 09 12:55 PM
Hi Ingo,
You could use the function code of the back button in your program
CASE sy-ucomm.
WHEN 'BACK'.
LEAVE LIST-PROCESSING.
WHEN OTHERS.
....other processing.
ENDCASE.
Hope this helps
2013 Mar 09 12:55 PM
Hi Ingo,
You could use the function code of the back button in your program
CASE sy-ucomm.
WHEN 'BACK'.
LEAVE LIST-PROCESSING.
WHEN OTHERS.
....other processing.
ENDCASE.
Hope this helps
2013 Mar 09 2:50 PM
Hi Aniket!
Thanks for your answer.
I've tried already leave to screen ...
but this doesn't work 'cause i'm using a three tabbed selection screen with three subscreens.
So my current code uses leave program but this isn't very comfortable 😉
I'll try your suggestion on Monday (now it's Saturday) and let you know.
Thanks.
Cheers, Ingo
2013 Mar 09 7:09 PM
As your are using full screen ALV FM, let those manage the screen, in the user_command parameter there is a field to exit the FM, so back to previous screen, set it when managing "back" events. (Just read documentation of FM and the thousands of thread on the subject, RS_SELFIELD-EXIT = 'X'.) So when control will get back to your form, e.g. when clicking BACK on another call of th FM, the current ALV will close, leave to previous screen.
Regards,
Raymond
2013 Mar 11 7:15 PM
Hi!
Nothing of the suggested solutions works.
I think this has to do with the three tabbed subscreens i'm using.
I've found something that works:
At start of selection i'm using
function module RS_REFRESH_FROM_SELECTOPTIONS to save the inserted data.
If sy-ucomm is '&F03' i'm using
submit my current program with selection-table 'the saved data'
via selection-screen.
Not highend coding but it works 😉
Thanks all for the ideas regarding this case.
Cheers, Ingo