cancel
Showing results for 
Search instead for 
Did you mean: 

WD ALV Default Table Width Changed in SPS06

AlexGiguere
Contributor
0 Kudos

Hi, we just upgraded our SAP ECC 604 SPS from 3 to 6.

All our WD ALV table width are now maximized to fit the hole screen,

I just search for an API but I can't find one, I tried if_salv_wd_table_settings~set_fixed_table_layout but it does not change anything!

I know I could get an object instance for each WD columns and set a default width, but that is long & painfull!

Check my 2 screenshots,

SALV_WD_TABLE on SPS03

[http://www.flickr.com/photos/34819919@N06/4661310080/]

SALV_WD_TABLE on SPS06

[http://www.flickr.com/photos/34819919@N06/4661310114/]

Alex

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Have you tried if_salv_wd_table_settingsSET_WIDTH? After Sets the Width of the ALV Output, you can use the method if_salv_wd_table_settingsset_fixed_table_layout to fix the table layout.

Hope it works.

AlexGiguere
Contributor
0 Kudos

Thanks guys, I had to call the set_width method before and it works!


wd_this->mr_alv_table->if_salv_wd_table_settings~set_width( '500' ).
wd_this->mr_alv_table->if_salv_wd_table_settings~set_fixed_table_layout( abap_false ).

Thanks Thomas for the OSS note, it's very well explained!

Alex

Answers (1)

Answers (1)

thomas_jung
Developer Advocate
Developer Advocate
0 Kudos

For all the rules related to table width, see OSS Note 1253282.