cancel
Showing results for 
Search instead for 
Did you mean: 

Lock / Freeze first Column in ALV

Former Member
0 Kudos

Hi,

is there a method in ALV where I can lock/freeze the first column from being scrolled ??

Thanks

Accepted Solutions (1)

Accepted Solutions (1)

thomas_jung
Developer Advocate
Developer Advocate
0 Kudos

Yes:

data: l_ref_cmp_usage type ref to if_wd_component_usage.
  l_ref_cmp_usage =   wd_this->wd_cpuse_alv( ).
  if l_ref_cmp_usage->has_active_component( ) is initial.
    l_ref_cmp_usage->create_component( ).
  endif.

  data l_salv_wd_table type ref to iwci_salv_wd_table.
  l_salv_wd_table = wd_this->wd_cpifc_alv( ).
  data l_table type ref to cl_salv_wd_config_table.
  l_table = l_salv_wd_table->get_model( ).
  l_table->if_salv_wd_table_settings~set_width( '100%' ).
  l_table->if_salv_wd_table_settings~set_scrollable_col_count( 8 ).

data l_column type ref to cl_salv_wd_column.
  l_column = l_table->if_salv_wd_column_settings~get_column( 'SO_ID' ).
  l_column->set_fixed_position(
    EXPORTING
       value = CL_WD_ABSTR_TABLE_COLUMN=>E_FIXED_POSITION-left ).

Answers (1)

Answers (1)

Former Member
0 Kudos

Thx Thomas.