cancel
Showing results for 
Search instead for 
Did you mean: 

Getting Wiered Line like " | " in the WD ALV column Header feilds output

0 Kudos

Hi Experts,

I have implemented ALV component in my developement, In the column headers im getting an additional line like this " | " in all teh header feilds.

Can any one pls guide me to avoid this additional line,

Regards

Sri

Accepted Solutions (1)

Accepted Solutions (1)

0 Kudos

Hi Saravanan,

Thanx for your immediate response. The solution which you provided is working fine:)

I need one more solution for issue related to Column Header

I have craeted an WD ALV with 36 Columns, in that first 3 columns are Fixed and rest of the 33 columns are scrolabble. The Column header text for first 10 feilds are aligned to right and remaining column header text are aligned to left.

In this scenario, i need to align all the Column header text to Center , Pls do help me out in this .

Regards

Sri

saravanan_narayanan
Active Contributor
0 Kudos

Hello Sri,

I doubt whether you can center align the header text alone. What you can do is you can center align the entire column (including content and header).


  data lr_column type ref to cl_salv_wd_column.
  lr_column =  lr_column_settings->get_column( id = <Column_name> ).
  lr_column->set_h_align( cl_wd_table_column=>e_h_align-center ).

BR, Saravanan

P.S. Please use one thread for one issue. If the thread is closed then pls dont add more issues to the same thread.

Answers (1)

Answers (1)

saravanan_narayanan
Active Contributor
0 Kudos

Hello Sri,

Call the method if_salv_wd_column_settings->SET_COLUMN_HEADER_SPLITTER( abap_false ) to remove this splitter.


 data lo_cmp_usage type ref to if_wd_component_usage.
  data lo_interfacecontroller type ref to iwci_salv_wd_table 
 data lr_value type ref to CL_SALV_WD_CONFIG_TABLE.
 data: lr_column_settings type ref to if_salv_wd_column_settings.

  lo_cmp_usage =   wd_this->wd_cpuse_alv( ).
  if lo_cmp_usage->has_active_component( ) is initial.
    lo_cmp_usage->create_component( ).
  endif.


  lo_interfacecontroller =   wd_this->wd_cpifc_alv( ).
 lr_value = lo_interfacecontroller->get_model( ).

  lr_column_settings ?= lr_value.
  lr_column_settings->set_column_header_splitter( abap_false ).

BR, Saravanan