Skip to Content
0
Sep 23, 2008 at 08:50 PM

alv tree fixed colum problem

120 Views

hi gurus does any one know how to set one fixed column in an alv tree i do this but i doesnt work.

DATA: gs_fieldcat_add TYPE lvc_s_fcat.

CLEAR: gt_fieldcat_tree .

FREE : gt_fieldcat_tree .

REFRESH gt_fieldcat_tree.

CLEAR gs_fieldcat.

gs_fieldcat-col_pos = 1.

gs_fieldcat-reptext = 'Nombre'.

gs_fieldcat-scrtext_s = 'Nombre'.

gs_fieldcat-fieldname = 'SNAME'.

gs_fieldcat-tabname = 'IT_FINAL'.

gs_fieldcat-key = 'X' ."con esto la columna se queda fija"

gs_fieldcat-key_sel = 'X' .

gs_fieldcat-col_opt = 'X'.

gs_fieldcat-FIX_COLUMN = 'X'.

gs_fieldcat-outputlen = '25'.

APPEND gs_fieldcat TO gt_fieldcat_tree.

this column is the first one but the column is not fixed, any idea?