Start of Content Area

Syntax documentationFormatting Column Contents  Locate the document in its SAP Library structure

Note

Fields DECIMALS_O , EDIT_MASK , EXPONENT , NO_SIGN and ROUND correspond to WRITE additions DECIMALS , USING EDIT MASK , EXPONENT , NO-SIGN and ROUND . For information on combining these fields with fields CURRENCY and QUANTITY (for WRITE: UNIT ), see the F1 help for the WRITE edit option.

Field name

Comp. type

Dtype(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)

If you set a conversion exit (for example, conv = ' ==ALPHA ' for function module CONVERSION_EXIT_ALPHA_OUTPUT ), you enforce output conversion for the associated output field. (See also F1 help for WRITE edit option USING EDIT MASK) .

See also: Using the Conversion Exit

EXPONENT

LVC_EXPONT

Char(3)

initial, integer

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

ICON

LVC_ICON

Char(1)

SPACE, 'X'

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

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 .
Justifications:

  • 'R': right justified
  • 'L': left justified
  • 'C': centered

How the column header is justified, depends on how the column contents are justified. You cannot justify the column header separately.

LZERO

LVC_LZERO

Char(1)

SPACE, 'X'

Relevant only to fields of data type NUMC . In the default setting, the ALV Grid Control displays these fields right justified 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

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

(See also F1 help for the WRITE edit options)

ROUNDFIELD

LVC_RNDFN

Char(30)

 

Defining 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 consist of valid symbol signs. 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).