09-29-2008 2:46 AM
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
09-29-2008 3:33 AM
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
09-29-2008 3:33 AM
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
09-29-2008 4:37 AM
Hi Martin,
Thanks for the help. It worked.
I am closing this thread.
Regards,
Simha