cancel
Showing results for 
Search instead for 
Did you mean: 

Adjusting size of column

Former Member
0 Kudos

dear all,

I've looked on the forum in several post and here is my probleme!

I understantd to set the fixed column size i have to set the fixed table layout using this

WD_THIS->ALV_VALUE->IF_SALV_WD_TABLE_SETTINGS~SET_FIXED_TABLE_LAYOUT( ABAP_TRUE ).

Now i set the size using this

    LR_COL =   WD_THIS->ALV_VALUE->IF_SALV_WD_COLUMN_SETTINGS~GET_COLUMN( L_FIELD ).
    LR_COL->SET_WIDTH( '80' ) .

But now i don't see alll columns of the table, i do have some rendering issue maybe ?

I do not have set width and scrollable col pos ...

But set fixed position, can this lead to a problem ?

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

When you the FIEXED LAYOUT as abap true then the column widht adjustements should be done explicitly. Otherwise,

the settings are handled by the framwork, where you may not see the whole content of the column instaed they are displayed with colname....., colneame2.... (as dots).

For all the columns, set_width method should be used to have the width, you have to make trail and error basis by changing the width to see the content.

Regards,

Lekha.

Former Member
0 Kudos

Wow !

Is there any set_size( auto ) ?

Former Member
0 Kudos

Hi,

No there is no option.If there is any, then FIXED layout will bypass this setting. Based on the column and it's content you have to use the set_width.