Application Development 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: 

ALV

Former Member
0 Kudos
75

how to get the optimize width of the columns for the output of the ALV

ie for example if we use the alv function module techniques some times we do not get the optimize width in the output

1 ACCEPTED SOLUTION

Former Member
0 Kudos
52

Hi,

data layout type slis_layout_alv.

layout-colwidth_optimize = 'X'.

and pass the layout variable in the function module.

regards,

Santosh Thorat

2 REPLIES 2

Former Member
0 Kudos
52

u can field catalog specified small , medium high.

IT_FIELCAT - Field catalog with field descriptions

• The field catalog for the output table is built-up in the caller's coding. The build-up can be completely or partially automated by calling the following function module

REUSE_ALV_FIELDCATALOG_MERGE

•A field catalog need not be built-up and passed explicitly only under the following conditions:

•The internal table to be output has the same structure as a Data Dictionary structure which is referred to in the internal table declaration using LIKE or INCLUDE STRUCTURE.

•All fields in this structure are to be output

•The structure name is passed to ALV in the parameter I_STRUCTURE_NAME.

Parameters to be passed

• Positioning

– row_pos (row position) value set: 0, 1 - 3

– col_pos (column position) value set: 0, 1 – 60

• Identification

– fieldname (field name)

– tabname (internal output table)

• Data Dictionary reference

– ref_fieldname (reference field name)

– ref_tabname (reference table/structure field name)

• Link to currency unit

– cfieldname (currency unit field name)

– ctabname (internal currency unit field output table)

• Link to measurement unit

– qfieldname (measurement unit field name)

– qtabname (internal measurement unit field output table)

• Column output options

– outputlen (column width)

– key (key column)

– key_sel (hideable key column)

– no_out (field in field list)

– emphasize (highlight columns in color) value set: SPACE, 'X' or 'Cxyz' (x:'1'-'9'; y,z: '0'=off '1'=on)

– hotspot (column as hotspot)

– fix_column (fix column)

– do_sum (sum over column)

– no_sum (sums forbidden)

• Column output options (contd.)

– input (column ready for input)

– icon

– symbol Texts

– just (justification) value set: SPACE, 'R', 'L', 'C'

– lzero (leading zeros)

– no_sign (no +/- sign )

– no_zero (suppress zeros)

– edit_mask (field formatting) value set: SPACE, template

IS_LAYOUT -List layout specifications

•The parameters are described under the following headers:

– Display options

–Totals

– Interaction

– Detail screen

– Display variants (only for hierarchical lists)

– Color

Former Member
0 Kudos
53

Hi,

data layout type slis_layout_alv.

layout-colwidth_optimize = 'X'.

and pass the layout variable in the function module.

regards,

Santosh Thorat