Hi,
I created a custom webdynpro application, where in we have an ALV and a table. i would need to incorporate Column Width Optimization, whatever is available in normal abap ALV. i tried with 'Set_fixed_table_layout', set_resizable as ABAP_TRUE etc. but of no use.
Did any one worked on the similar requirement? your inputs would be really appreciated.
Thanks in advance.
Reagrds,
Pallavi.
Hi Pallavi,
By default in ALV , the column's width is optimized according to the content of its cell editor.
If you mark the table as fixed layout, column width will not be preserved. hence SET_FIXED_TABLE_LAYOUT( ABAP_FALSE ) should give you the optimized width of columns based on its contents.
Hope this helps you.
Regards,
Rama
Hi,
Which Netweaver version you are on? The column width optimization/resize if available from Netweaver 7.0 Ehp1 onwards. You just have to set the set_fixed_table_layout to ABAP_TRUE.
set_fixed_table_layout( ABAP_TRUE ).
I guess you are on lower version of Netweaver, so you have to import the relevant support pack!
Check the video by thomas here: WDA_Column_Resize5 | Flickr - Photo Sharing!
Hope this helps u,
Regards,
Kiran
Hi Pallavi,
i am not clear with your requirement
i am assuming you are trying to achieve the following two:
1) column width adjustment -> Ino need to do anything,its active by default in alv)
2) Regarding the scrollbar, if you use activate the scrollable column, column width adjustment to the data still works provided you have more columns displayed than the scrollable column set.The scrollbar is also active.
wd_this->lo_value->if_salv_wd_table_settings~set_scrollable_col_count( n ).
n is less than the no of columns visible.
Cheers,
Tashi
Add a comment