‎2008 Mar 10 10:38 AM
hi,
is there a way to fix the width of the colums of alv even while displaying vertical seperators.
Regards,
Tarun Bahal
‎2008 Mar 10 10:44 AM
Pass
is_layout-colwidth_optimize = 'X'. This will allow the ALV to display each column to the max width of data for each column.
Hope this helps.
Thanks,
Balaji
‎2008 Mar 10 10:47 AM
Hi,
Please refer to the code below:
gs_fieldcat-fieldname = 'BLART'.
* gs_fieldcat-coltext = 'Doc type'.
gs_fieldcat-seltext_s = 'Doc type'.
gs_fieldcat-seltext_l = 'Doc type'.
gs_fieldcat-seltext_m = 'Doc type'.
gs_fieldcat-fix_column = 'X'.
gs_fieldcat-outputlen = '4'.
gs_fieldcat-tabname = 'GT_OUTPUT'.
APPEND gs_fieldcat TO gt_fieldcat.
Thanks,
Sriram Ponna.
‎2008 Mar 10 10:51 AM
hi ,
use like this for restricting the output length,
fieldcatalog-outputlen = 7 like..
and it is always better to use the like this i think..
fieldcat-reptext_ddic = 'Material no'.
regards,
venkat.
‎2008 Mar 10 11:04 AM
width can stikl be changed by used even if i use fix_column
Regards
‎2008 Mar 10 11:06 AM