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: 

alv tree fixed colum problem

alejandro_romero2
Participant
0 Kudos

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?

2 REPLIES 2

amit_khare
Active Contributor
0 Kudos

Refer this report in SE38 - bcalv_tree

0 Kudos

thanks but it doesn works