Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

ALV List Display - Column width

rnb86
Participant
0 Likes
1,276

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.

2 REPLIES 2
Read only

former_member208149
Participant
899

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.

Read only

RaymondGiuseppi
Active Contributor
0 Likes
899

Did you try to define (and transport) a default ALV variant to solve your requirement?

Could you also consider using some recent OO ALV class and not obsolete FM?