‎2008 Sep 26 9:22 AM
SLIS_LAYOUT_ALV-COLWIDTH_OPTIMIZE
in normal alv the above function is to optimize the field length but in OOPS alv how can we do this function???
‎2008 Sep 26 9:29 AM
Here it can be done in two ways. for all the columns using the layout option.
LAYOUT-CWIDTH_OPT
for individual columns it is mentioned in the fieldcatalog.
FIELDCAT-COL_OPT.
in some case we want only for few columns then we go for fieldcatalog option.
‎2008 Sep 26 9:26 AM
In the layout parameter of the call
DATA gs_layout TYPE lvc_s_layo .
gs_layout-CWIDTH_OPT = 'X'.
CALL METHOD go_alvgrid->set_table_for_first_display
EXPORTING
is_layout = gs_layout --- >
Cheers,
KD
‎2008 Sep 26 9:29 AM
Here it can be done in two ways. for all the columns using the layout option.
LAYOUT-CWIDTH_OPT
for individual columns it is mentioned in the fieldcatalog.
FIELDCAT-COL_OPT.
in some case we want only for few columns then we go for fieldcatalog option.
‎2008 Sep 26 9:34 AM
Hello
You need to call method of class CL_GUI_ALV_GRID
LAYOUT_COLWIDTH_OPTIMIZE
~hitesh