Application Development and Automation 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: 
Read only

alv tree fixed colum problem

alejandro_romero2
Participant
0 Likes
505

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?

Refer this report in SE38 - bcalv_tree

2 REPLIES 2
Read only

amit_khare
Active Contributor
0 Likes
385

Refer this report in SE38 - bcalv_tree

Read only

0 Likes
385

thanks but it doesn works