2013 May 17 3:19 PM
Hi,
I'm using ALV Grid to display some data. As the grid has a certain kind of calendar functionality I do not want the user to change the positions of the columns of the grid. The columns should stay in there initial fix position.
I tried setting field FIX_COLUMN of the field catalog but this doesn't work. Also setting the colomns as key columns does not fix the columns.
Does anybody has a solution for this issue?
Thanks. Peter
Hi,
I'm using ALV Grid to display some data. As the grid has a certain kind of calendar functionality I do not want the user to change the positions of the columns of the grid. The columns should stay in there initial fix position.
I tried setting field FIX_COLUMN of the field catalog but this doesn't work. Also setting the colomns as key columns does not fix the columns.
Does anybody has a solution for this issue?
Thanks. Peter
2013 May 17 3:30 PM
2013 May 17 3:41 PM
Hi Peter,
Are using using an OO ALV grid?
If so then what you suggest should have worked i.e.
Setting the fieldcatalog value of KEY to 'X'.
e.g.
LOOP AT p_fieldcat ASSIGNING <lfs_fieldcat>.
CASE <lfs_fieldcat>-fieldname.
WHEN 'MATNR'.
<lfs_fieldcat>-hotspot = c_x.
<lfs_fieldcat>-key = 'X'.
2013 May 17 5:48 PM
Hi Peter,
The only way I am aware of is to hide the colum headers by using NO_HEADERS of the layout structure. This will make the heading hidden but if you want a heading you can have it filled in your first row if possible.
Regards,
Karthik