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

ABAP Handle: data_changed_finished

Former Member
0 Likes
2,311

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

4 REPLIES 4
Read only

SimoneMilesi
Active Contributor
1,496

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.

Read only

0 Likes
1,496

I thank your answer, i already reffered to that blog with no success at all.

Read only

0 Likes
1,496

Where you placed the SET_CURRENT_CELL_VIA_ID method? Could you share a snippet of your code ?

Read only

0 Likes
1,496

Hi Adran please try below code for refresh.

is_stable-row = ' '.

is_stable-col = 'X'.