cancel
Showing results for 
Search instead for 
Did you mean: 

ALV header text truncated

Former Member
0 Kudos

Hi All,

Can you advise me how to get rid of this issue.

i have used ALV in webdynpro.The Column header text of the table is truncated due to unknown problem.

Please let me know the solution fo this issue.

For ex..

there r 3 rows and columns.The heading of the column is employee Number , Employee Name and Employee Salary

So instead of Employee Number the table is showing as emp and the rest of the text is truncated.(Instead of Employee Salary it is showing as Emplo....)

The table contents are ok...

EMPLOYEENUMBER EMPLOYEENAME EMPLOYEESALARY

1113 Sunny 10000

1114 Ritin 12000

1116 Bajaj 12008

Regards,

Priya

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi, in addition to what Koen said.

Can share with you the example coding:


data:
  l_value TYPE REF TO cl_salv_wd_config_table,
  lr_salv_wd_table TYPE REF TO iwci_salv_wd_table.

  lr_salv_wd_table = wd_this->wd_cpifc_alv_child( ).

***************** GET MODEL ******************
* get ConfigurationModel from ALV Component: This reference is used to set ALV properties
  l_value = lr_salv_wd_table->get_model( ).


**************** COLUMN SETTINGS *******************
* init ColumnSettings
  DATA: lr_column_settings TYPE REF TO if_salv_wd_column_settings.
  lr_column_settings ?= l_value.

* get table of column settings - each line one column
  DATA: lt_columns TYPE salv_wd_t_column_ref.
  lt_columns = lr_column_settings->get_columns( ).

* loop over table - in each loop another column can be modified
  DATA: ls_column TYPE salv_wd_s_column_ref,
        lo_header type ref to CL_SALV_WD_COLUMN_HEADER.

* define visible columns
  LOOP AT lt_columns INTO ls_column.
    lo_header = ls_column-r_column->CREATE_HEADER( ).
    CASE ls_column-id.
****For Material
      when 'MATERIAL'.
        lo_header->SET_TEXT( value = 'Material').
      when 'DESCRIPTION'.
        lo_header->SET_TEXT( value = 'Description').
      when 'VOLUME'.
        lo_header->SET_TEXT( value = 'Volume').
      when 'VOLUMEUNIT'.
        lo_header->SET_TEXT( value = 'Volume Unit').

    endcase.

  ENDLOOP.

Hope it can help you a little.

Best wishes.

Former Member
0 Kudos

Hi,

please check [this thread|;

solutions for both 7.0 and 7.01 are described.

Greetz,

Koen