Skip to Content
avatar image
Former Member

ABAP Handle: data_changed_finished

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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Nov 22, 2016 at 08:19 AM

    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.

    Add comment
    10|10000 characters needed characters exceeded

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

    Hi Adran please try below code for refresh.

    is_stable-row = ' '.

    is_stable-col = 'X'.

    Add comment
    10|10000 characters needed characters exceeded