12-14-2015 12:49 PM
Hi there,
I would like to have the optimized colwidth within standard alv call function reuse alv grid display,
what do I need to declare for IS_Layout = gs_layout =??
I dont want to use methods.
I already got this
DATA: gt_fieldcat TYPE slis_t_fieldcat_alv,
gs_fieldcat TYPE slis_fieldcat_alv.
DATA: gs_layout TYPE slis_layout_alv.
but nothing happens
Thanks in advance!
Andre
12-14-2015 12:56 PM
Hi Andre,
you need to populate gs_layout-colwidth_optimize with 'X' before you pass it the the ALV function module.
Regards
Oliver
12-14-2015 12:56 PM
Hi Andre,
you need to populate gs_layout-colwidth_optimize with 'X' before you pass it the the ALV function module.
Regards
Oliver
12-14-2015 1:10 PM
12-14-2015 1:01 PM
Check out link which shows you how to optimize column-width in ALV alv grid column width optimising | SCN
12-14-2015 1:09 PM
12-14-2015 2:12 PM
Hi
For this we have one option like colwidth_optimization = 'X'
Automatically it takes the width as per field value .
12-14-2015 3:24 PM
Fill data in your Work area gs_fieldcat with colwidth_optimization = 'X'
i.e
gs_fieldcat-colwidth_optimization = 'X' .
append gs_fieldcat to gt_fieldcat .
This works now with column width optimization.