Application Development and Automation 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: 
Read only

Problem with navigation in Lists

Former Member
0 Likes
814

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?

1 ACCEPTED SOLUTION
Read only

RichHeilman
Developer Advocate
Developer Advocate
0 Likes
786

Can you try to decrement it. Do this at line-selection.


sy-lsind = sy-lsind - 1.

Regards,

Rich Heilman

7 REPLIES 7
Read only

Former Member
0 Likes
786

How are you calling the second list?

Regards,

Ravi

Read only

Former Member
0 Likes
786

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

Read only

RichHeilman
Developer Advocate
Developer Advocate
0 Likes
787

Can you try to decrement it. Do this at line-selection.


sy-lsind = sy-lsind - 1.

Regards,

Rich Heilman

Read only

0 Likes
786

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.

Read only

0 Likes
786

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

Read only

0 Likes
786

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.

Read only

0 Likes
786

Please close the thread by marking "Problem Solved", against the answer that helped you the most.

Regards,

Ravi