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

COLUMN WIDTH IN ALVs

Former Member
0 Likes
869

HOW TO SET THE COLUMN WIDTH IN ALV REPORT?

1 ACCEPTED SOLUTION
Read only

bpawanchand
Active Contributor
8 REPLIES 8
Read only

bpawanchand
Active Contributor
Read only

Former Member
0 Likes
836

Hi,

Use the field output length in field catlog.

Read only

Former Member
0 Likes
836

we have one parameter for setting the output length

fieldcat-outputlen

Read only

former_member745780
Active Participant
0 Likes
836

Hello ,

Try to set fieldcatalog-outputlen for more deatail read this pdf document.

http://www.sap-partner.hu/ABAP_HELP_INFO/An%20Easy%20Reference%20for%20ALV%20Grid%20Control.pdf

hope this will help you.

Thanks

Anirudh Saini

Read only

Former Member
0 Likes
836

Hi,

use the field catalog.


Field_cat-outputlen = '20'.

Thanks

Chidanand

Read only

Former Member
0 Likes
836

Hi,

you increase the length in the field catalog...

wa_fieldcat-outputlen = 10.

I hope this will help u

Thanks & Regards

Ashu Singh

Read only

Former Member
0 Likes
836

Hi Mathew,

You need to set the attribute outputlen in the field catlogue. You can give the output length in this attribute.

field_cat-outputlen = '10'.

Regards,

Chandra Sekhar

Read only

Former Member
0 Likes
836

Hi,

Both OO ALV and ALV Grid use the following field for column width.

wa_fcat-OUTPUTLEN = '10'.

if you want optimized column width set the additional parameter in Layout for oo ALV

wa_layout-CWIDTH_OPT = 'X'.

if you want optimized column width set the additional parameter in Layout for ALV using FM

wa_layout-colwidth_optimize = 'X'.

Regards,

Boobalan S