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: 

Return to same position in ALV when going from one ALV to another and back

Former Member
0 Kudos
171

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

1 ACCEPTED SOLUTION

Sandra_Rossi
Active Contributor
0 Kudos
80

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

2 REPLIES 2

Sandra_Rossi
Active Contributor
0 Kudos
81

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

Former Member
0 Kudos
80

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.