‎2006 Nov 21 3:23 PM
I have created a list with hotspot capability.On hotspot click, it takes user to a ALV display. User enters some data on this ALV( it has checkboxes and a column with edit option). As soon as user hits save, data should be updated in custom table and calculations need to be re-done and prepare new list for user.
I have no problem till now. But once i hit back on this new list display, it goes back to previous list display. I see that all these lists are stacked up. How do i clear this list stack. I tried setting sy-lsind = 0 after at line-selection event but that doesnot reset the list stack and it takes me back to previous list.
Any suggestions?
‎2006 Nov 21 3:28 PM
‎2006 Nov 21 3:26 PM
‎2006 Nov 21 3:27 PM
hi,
if your intension is just to come out of the program then
in the user_command event
use
if sy-ucomm = 'BACK'.
leave program.
endif.
santhosh
‎2006 Nov 21 3:28 PM
‎2006 Nov 21 3:39 PM
Ravi,
I use the initial calculation subroutines again to calculate the data and re-display using write statements but before that i say leave to list-processing.
I do want my program to go back to selection-screen not leave program.
Thanks,
Kalyan.
‎2006 Nov 21 3:41 PM
Try using "LEAVE to SCREEN 0" in the final ALV's BACK button.
Regards,
Ravi
Note - Please mark all the helpful answers
Message was edited by:
Ravikumar Allampallam
‎2006 Nov 21 4:21 PM
Thanks guyz...Its working now..I had Call screen statement to call the ALV..I processed updation internal table on SAVE on this screen and called leave to list-processing after exiting the screen. Then it works. On SAVE on ALV, i collect data into internal table and said LEAVE TO SCREEN 0. It returned to statement after call screen 0200. There i updated data into custom table and displayed list.
Thanks for your help.
‎2006 Nov 21 4:23 PM
Please close the thread by marking "Problem Solved", against the answer that helped you the most.
Regards,
Ravi