‎2016 Nov 21 8:12 PM
Hi gurus i'm in need of your knowledge, i'm using OO Alv with the method data_changed_finished when the method executes the internal table is refreshed and so the actual focus who as an example i'm in col 2 row 3 goes to col 1 row 1 is there a way to prevent this?, i need to get the next, i've already tried to at least try to keep the same row:
CALL METHOD g_alv_detef->refresh_table_display
exporting is_stable.
but the method refreshes it anyway.
Thank you for your time and help
‎2016 Nov 22 8:19 AM
After the refresh, you have to call the method SET_CURRENT_CELL_VIA_ID.
The issue has been exploited and explained by 28f4b37a40894f18a22abc696b8154f4 even in his own blog http://abapblog.com/articles/tricks/22-refresh-alv-grid-and-keep-position-and-current-cell as well in many archive threads.
‎2016 Nov 23 2:11 PM
I thank your answer, i already reffered to that blog with no success at all.
‎2016 Nov 25 9:59 AM
Where you placed the SET_CURRENT_CELL_VIA_ID method? Could you share a snippet of your code ?
‎2016 Nov 22 11:17 AM
Hi Adran please try below code for refresh.
is_stable-row = ' '.
is_stable-col = 'X'.