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: 

column moves to new position when refreshing or sorting alvgrid

Former Member
0 Kudos

Hello,

I have the problem that a specific column moves to a new position when I refresh oder sort the alv-grid. Thanks.

Regards, Lars.

3 REPLIES 3

FredericGirod
Active Contributor
0 Kudos

Hi,

do you have define the field catalog yourself ? if yes, do you have check the column col_pos ?

Rgd

Frédéric

Former Member
0 Kudos

Hi Sternbergg,

1. Check whether a display variant is activated.

2. Try and inspect your field catalog. Some methods that are triggered when you sort the ALV grid might be modifying the field catalog. Try and correct them.

Regards,

Aniket

Former Member
0 Kudos

Hi,

I guess you are using the REFRESH_TABLE_DISPLAY method. Make sure you set the IS_STABLE parameter.

CALL METHOD <ref.var. to CL_GUI_ALV_GRID>->refresh_table_display

EXPORTING

IS_STABLE = <structure of type LVC_S_STBL>

I_SOFT_REFRESH = <variable of type CHAR01>.

Parameter

Meaning

IS_STABLE

If the row or col field of this structure is set, the position of the scroll bar for the rows or columns remains stable.

Regards,

Ravi

Note :Please close the thread if this resolves the issue.