2011 Aug 11 12:19 PM
Hello,
I'm using REUSE_ALV_GRID_DISPLAY. I have one main ALV from which user can doublick on different cells which takes him to one of 3 different ALVs. I'm simply using REUSE_ALV_GRID_DISPLAY again. When going back (using standard &F03 user command), the main ALV always shows the beginning of table rather than returning to where I left it.
I tried to get OO reference of the grid using GET_GLOBALS_FROM_SLVC_FULLSCR and set the current cell using
gr_alv_sum->set_current_cell_via_id and gr_alv_sum->set_focus (I gee the current cell and status after the cell in main ALV is doubleclicked), but with no luck. Once I get back to main ALV the focs is set to first column, first row.
Would you know what am I doing wrong?
Thank you in advance.
Filipes
2011 Aug 11 5:24 PM
Hi Filipes,
I think it's the way you have written the "user command" callback subroutine in the first ALV. Did you call the second ALV from there, and did you change the rs_selfield return parameter?
BR
Sandra
2011 Aug 11 5:24 PM
Hi Filipes,
I think it's the way you have written the "user command" callback subroutine in the first ALV. Did you call the second ALV from there, and did you change the rs_selfield return parameter?
BR
Sandra
2011 Aug 12 3:59 PM
Hi Sandra,
you are right! it was my setting of the refresh to 'X' that reset also the position of the current cell. It should have been obvious to me. Thank you for correct answer.