cancel
Showing results for 
Search instead for 
Did you mean: 

How to Freeze a column in alv report

Pratik2228
Participant
0 Kudos

HI all,

I am new to web dynpro created a  alv report, i want to freeze a column how should i do it,

please help in  steps as i am new to it.

OR any link will be a great help for me...

Thanks

Accepted Solutions (1)

Accepted Solutions (1)

former_member184958
Active Participant
0 Kudos

Hi,

You need to get the columns name, using if_salv_wd_column_settings~get_columns( ).

after that,

lr_column_left =  l_table_left->if_salv_wd_column_settings~get_column( 'the name of column').

lr_column_left->set_fixed_position( cl_wd_abstr_table_column=>e_fixed_position-left)

lr_column_left is type ref to cl_salv_wd_column and l_table_left is  type ref to cl_salv_wd_config_table

For scroll,

if_salv_wd_table_settings~set_scrollable_col_count( X number).

Regards,

John.

Pratik2228
Participant
0 Kudos

Thanks sir..

former_member184958
Active Participant
0 Kudos

Hi Rohan,

Sorry to interrupt, If you got answer please close the thread by marking answered button. then only it will helpful to others future reference.

Regards,

John. 

Answers (1)

Answers (1)

former_member191939
Active Contributor
0 Kudos

Hi Rohan,

If you set the field catalog attribute "key = X" for the field that you want to freeze.

Hopefully it will work.

Do assign Points

Regards.

Pratik2228
Participant
0 Kudos

sir can you be little clear what you want to say

former_member191939
Active Contributor
0 Kudos

Hi Rohan,

If you are building an ALV report using SLIS type-pools then do the following.

wa_fieldcat-key="X"

or you can try this as well.

wa_fieldcat-fix_column="X"

If you have any further doubt please feel free to ask.

Regards

Eugene