Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Help regarding on Datachange event in ALV

Hi Friends,

I have handled a data change event in OO ALV.

when a user id is selected from a column by using F4 or typed in, the next column which has name will be fetched from DB table on event datachange, i have called CALL METHOD G_GRID_100->REFRESH_TABLE_DISPLAY once the data is fetched to display back on ALV ,but the width of ALV is more than 500, so this editable field is somewhere at 400th position, so as soon as refresh is done, screen is being shown to the original position.

I want to trigger the refresh but still be at the same column position.

how to handle this.

I have tried using

      CALL METHOD CL_GUI_CONTROL=>SET_FOCUS
        EXPORTING
          CONTROL = G_GRID_100.

but not working.

Any help on this is highly appreciated.

Regards,

Simha

Tags:
Former Member
replied

Hi,

have you tried to use parameter IS_STABLE when you call method refresh_table_display? Just set IS_STABLE-ROW = 'X' and Is_STABLE-COL = 'X' and it should stay on the previous position.

Cheers

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question