cancel
Showing results for 
Search instead for 
Did you mean: 

possible to adjust with of column in ALV

Former Member
0 Kudos

Dear colleagues,

is it possible to adjust the width of a column in ALV to its content?

Regards

Michael

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Michael

On top of info already provided by Roberto,

cl_salv_wd_column has methods to set the width and to set the column as resizable.

lr_column->set_width( value = 'xxx' ).
lr_column->set_resizable( value = abap_true ) .

have fun with ALV

Cheers

Phil

Answers (2)

Answers (2)

roberto_tagliento
Active Contributor
0 Kudos

/people/sap.user72/blog/2006/01/09/wda--user-defined-functions-in-alv

roberto_tagliento
Active Contributor
0 Kudos

Yes.

Class: <b>IF_SALV_WD_TABLE_SETTINGS</b>

Method: <b>SET_WIDTH</b>