cancel
Showing results for 
Search instead for 
Did you mean: 

Column with keeps resizing

Former Member
0 Kudos

Hi,

I tried to do this:

    lr_column = wd_this->alv_my_table_config->if_salv_wd_column_settings~get_column( 'COMMENTS' ).
     lr_column->SET_WIDTH( '8px' ).
     lr_column->SET_RESIZABLE( abap_false ).

This doesn't work and the column "COMMENTS" keeps resizing according to the length of the longest comment
I want to restrict the number of visible characters without wrapping or anything.

Basically I want to keep the cell dimensions always the same but still be able to write long comments.

Accepted Solutions (0)

Answers (2)

Answers (2)

amy_king
Active Contributor
0 Kudos

Hi Izhak,

If you are using the SALV_WD_TABLE component for the table, you'll need to reference the component usage. See Srinivas' answer in the discussion, .

Cheers,

Amy

Former Member
0 Kudos

Hi,

You can try using SET_FIXED_TABLE_LAYOUT method from interface IF_SALV_WD_TABLE_SETTINGS

i.e.

IF_SALV_WD_TABLE_SETTINGS~SET_FIXED_TABLE_LAYOUT( ABAP_TRUE ).

Regards,

Rohit