Application Development 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: 

Help regarding on Datachange event in ALV

Former Member
0 Kudos

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

1 ACCEPTED SOLUTION

mvoros
Active Contributor
0 Kudos

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

2 REPLIES 2

mvoros
Active Contributor
0 Kudos

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

Former Member
0 Kudos

Hi Martin,

Thanks for the help. It worked.

I am closing this thread.

Regards,

Simha