Formatting Column Contents

Field Name

Component Type

Data Type (Length)

Value Range

Use

DECIMALS_O

LVC_DECMLS

Char(6)

Initial, natural number

If a field has no currency, then you can use this field to determine the number of decimal places to be displayed. This setting is kept even if you afterwards assign a currency field to this field or assign a currency to the CURRENCY field of the field catalog.

DECMFIELD

LVC_DFNAME

Char(30)

SPACE, field name of output table

Defining the digits after the comma on a row-by-row basis. You can use an additional field in the output table to determine how many digits are to be displayed after the comma in each row.

EDIT_MASK

LVC_EDTMSK

Char(60)

SPACE, conv (conversion exit)

Setting the conversion exit forces an output conversion for the associated output field. (See also F1 help for WRITE edit option USING EDIT MASK).

Example:

conv = ' ==ALPHA' for function module CONVERSION_EXIT_ALPHA_OUTPUT)

See also: Using the Conversion Exit

EXPONENT

LVC_EXPONT

Char(3)

initial, integer

Defines a fixed exponent for the field. The internal type of the field must be F. (See also F1 help for the WRITE formatting option EXPONENT).

ICON

LVC_ICON

Char(1)

SPACE, 'X'

If this field is set, the column contents of the output table are displayed as an icon . The column contents must consist of valid icon strings (@xx@ or @xx\Q<tooltip>@).

You should consider the problem of printing icons.

JUST

LVC_JUST

Char(1)

SPACE, 'R', 'L','C'

Relevant only to fields of data type CHAR or NUMC. Alignments:

  • 'R': Right-aligned

  • 'L': Left-aligned

  • 'C' : Centered

The alignment of the column header is always the same as the alignment of the column content. It cannot be set independently.

LZERO

LVC_LZERO

Char(1)

SPACE, 'X'

Only relevant for fields of data type NUMC. The ALV Grid Control displays these fields by default as right-aligned without leading zeros. If you set LZERO, leading zeros are displayed.

NO_SIGN

LVC_NOSIGN

Char(1)

SPACE, 'X'

Relevant only to value fields. If you set NO-SIGN, values are displayed without signs (see also F1 help for the WRITE edit options).

NO_ZERO

LVC_NOZERO

Char(1)

SPACE, 'X'

If NO_ZERO is set, no zeros are displayed for initial value fields. The cell remains empty.

ROUND

LVC_ROUND

Char(10)

Initial, natural number

Output of a value of type P scaled by power of ten. With positive values of ROUND the ALV Grid Control moves the comma to the left, otherwise to the right.

(See also F1 help for the WRITE edit options)

ROUNDFIELD

LVC_RNDFN

Char(30)

Defines scaled output on a row-by-row-basis. You can use an additional field in the output table to determine how the relevant field is scaled in each row.

SYMBOL

LVC_SYMBOL

Char(1)

SPACE, 'X'

If this field is set, the column contents are displayed as a symbol.

The column contents of the internal table must contain valid symbols. The caller should consider the problem of printing symbols. (It is usually possible to print symbols, but they may not be output correctly depending on the printer configuration).