Skip to Content
0

ABAP Handle: data_changed_finished

Nov 21, 2016 at 08:12 PM

178

avatar image
Former Member

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

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

2 Answers

Simone Milesi Nov 22, 2016 at 08:19 AM
1

After the refresh, you have to call the method SET_CURRENT_CELL_VIA_ID.

The issue has been exploited and explained by Lukasz 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.

Show 2 Share
10 |10000 characters needed characters left characters exceeded
Former Member

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

0

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

0
avatar image
Former Member Nov 22, 2016 at 11:17 AM
0

Hi Adran please try below code for refresh.

is_stable-row = ' '.

is_stable-col = 'X'.

Share
10 |10000 characters needed characters left characters exceeded