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-column width

Former Member
0 Likes
765

hi,all!

my question is:

how to change the columns' width for alv

the alv's structure is a structure defined in DICC.

thanks!

1 ACCEPTED SOLUTION
Read only

venkata_ramisetti
Active Contributor
0 Likes
738

Hi,

You can still do that.

Get the fieldcatlog details for the Structure using function modules REUSE_ALV_FIELDCATALOG_MERGE.

Once you get the fieldcatalog table change the value <b>fieldcatlog-outputlen</b> .

Thanks,

Ramakrishna

5 REPLIES 5
Read only

Former Member
0 Likes
738

Hi Leo,

Whe you fill the alv field catalog in the program you can specify the output length.

fldcat-outputlen = <number>.

Regards,

Ravi

Read only

0 Likes
738

thanks,Ravi!

i wonder that is there any defierence if the alv's structure is internal table ?

Read only

0 Likes
738

Hi,

There are two basic tables in any ALV reports.

1. Internal table with business data: This whill be showed in the ALV .

2. Interbal table with field properties: This table contains all field properties in a table. Each record in the table represents a field properties in the ALv report.

For example, column lenght, column text, hotsopt..etc.

Thanks,

Ramakrishna

Read only

venkata_ramisetti
Active Contributor
0 Likes
739

Hi,

You can still do that.

Get the fieldcatlog details for the Structure using function modules REUSE_ALV_FIELDCATALOG_MERGE.

Once you get the fieldcatalog table change the value <b>fieldcatlog-outputlen</b> .

Thanks,

Ramakrishna

Read only

Former Member
0 Likes
738

Hello Leo,

One u filled the Fieldcat table modify the table for the column u need to change the width with <b>field-OUTPUTLEN = 50.</b>.

If useful reward.

Vasanth