‎2018 Oct 17 4:23 PM
Hi Experts,
I have a program using REUSE_ALV_LIST_DISPLAY FM. In production system, when the output is generated, the quantity fields defined as type p(7) decimals 3 are getting truncated values. Same program is running fine in development system.
In the field catalog, tabname, fieldname, outputlen = 15 are set and colwidth_optimize is not set in layout.
From the ALV output in production, when i check he layout, the outputlen is reduced to 10,12, 14 etc for the quantity fields based on the description seltext_L value of the quantity field names.
My question is can we fix this by using colwidthoptimize = X or is there anything that needs to be done? wierd it is working in Dev but failing in Prod. I had looked for similar issues in SDN but could not find any relevant answers.
Thanks for your help in advanse.
‎2018 Oct 17 9:02 PM
No, you can not fix this by using colwidthoptimize = 'X' as it is a layout feature (and not a specific field catalog feature) used to optimize the column widths of all the columns in the ALV. It only ensures that every column consumes the minimum possible width to display all the values in it without having to adjust the column width.
Regards.
‎2018 Oct 22 3:01 PM