Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

alv tree fixed colum problem

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?

Tags:
Not what you were looking for? View more on this topic or Ask a question