‎2007 Dec 06 6:30 AM
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
‎2007 Dec 06 7:11 AM
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
‎2007 Dec 06 7:14 AM
‎2007 Dec 06 8:56 AM
Hi,
yes both can be used.
- outputlen defines the column length
- columnwidth_optimize resize the column in order to the field content.
rgs
‎2007 Dec 06 8:48 AM
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.