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

OUTPUTLEN Vs COLUMNWIDTH_OPTIMIZE?

Former Member
0 Likes
1,933

Hi,

My problem is that I want to know whats the difference between FIELDCATALOG-OUTPUTLEN & LAYOUT-COOLUMNWIDTH_OPTIMIZE ?

Where these can beprovided and what the purpose of these 2 ? Also if possible let me know the difference between Fieldcatalog and Layout.

Thanks,

Sagar

4 REPLIES 4
Read only

Former Member
0 Likes
1,026

Hi

Output length: means length provided by user to how values of a particular field.

Width optimize means: suppose you give output lenght 20 and you data is of 12 digits only. It means AL shows 8 blanks but if we choose column width_optimize these 8 blanks will supperesed ( not shown). ALV automatically adjust the witdth of each columns.

Fieldcatalog: In field catalog you define columns of ALV ( position, text, which field of ITAB you want to show)

Layout means overall look of ALV.

Regards

Aditya

Read only

0 Likes
1,026

can both provided in the same prog?

Read only

0 Likes
1,026

Hi,

yes both can be used.

- outputlen defines the column length

- columnwidth_optimize resize the column in order to the field content.

rgs

Read only

Former Member
0 Likes
1,026

outputlength- this is related to visible length a field can have in the grid.if u specify it as 30 the visible length of the field will be 30 characters...

and optimize_width will limit the visible length to the no.of characters in the grid to length of column text.

field catalog designs the grid no of columns ,visible length ,column text etc.

layout formats the grid...like colouring etc.

yes u can have both fieldcatalog and layout design in the same program for the same alv.