HI ,
The last column of ALV gets compressed when I manually set my widths to my fields.
I have a comments section in my Table when the data is huge, So I have to set the width of the field so that the table does not look odd.
But when I add the same, the last field of my ALV gets compressed. I added one last field to the same ALV table, and last added field is compressed.
My code for setting the ALV data is as follows.
lo_table_settings->set_fixed_table_layout( abap_true ).
LOOP AT t_column INTO w_column.
IF w_column-id = 'COMMENTS'.
lr_textview ?= w_column-r_column->get_cell_editor( ).
lr_textview->set_wrapping( abap_true ).
lr_textview->set_design(
value = cl_wd_text_view=>e_design-label_small
).
w_column-r_column->set_width( value = '600' ).
ELSE.
w_column-r_column->set_width( value = '100' ).
lr_header = w_column-r_column->get_header( ).
lr_header->set_header_text_wrapping( value = abap_true ).
ENDIF.
ENDLOOP.
Please help me in this regard.