Field name |
Comp. type |
Dtype(length) |
Value range |
Use | |||
CHECKBOX |
LVC_CHECKB |
CHAR(1) |
SPACE, 'X' |
Outputting a checkbox. The checkbox cannot be modified by the user. Parameter sel_mode of the layout structure allows the user to select multiple rows in the grid control (see also: get_selected_rows). | |||
COL_POS |
LVC_COLPOS |
INT4(10) |
natural number |
Relevant only if the relative column positions should not be identical to the sequence of fields in the field catalog when the list is displayed for the first time. The parameter determines the relative column position of the field for list output. The user can interactively modify the order of the columns. If this parameter is initial for each field catalog entry, the order of the columns corresponds to the sequence of fields in the field catalog. | |||
DO_SUM |
LVC_DOSUM |
Char(1) |
SPACE, 'X' |
If this field is set, the ALV uses this field to calculate the total (this corresponds to the generic totals function in the toolbar.) | |||
EMPHASIZE |
LVC_EMPHSZ |
Char(4) |
SPACE, 'X' or 'Cxyz' (x:'1'-'9'; y,z: '0'=off '1'=on) |
If the field is set to 'X', the ALV uses a pre-defined color for highlighting the column. If the character field begins with 'C' (color code), the remaining numbers have the following meaning:
For more information on color coding, see the F1 help on the FORMAT statement. | |||
HOTSPOT |
LVC_HOTSPT |
Char(1) |
SPACE, 'X' |
If this field is set, all cells of this column are hotspot-sensitive. | |||
HREF_HNDL |
INT4 |
INT4(10) |
Natural number |
Handle to which an URL is assigned. The ALV Grid Control displays all cells of the column as hyperlinks. You must maintain the target address of the hyperlink in a table of type LVC_T_HYPE and pass it using set_table_for_first_display. | |||
KEY |
LVC_KEY |
Char(1) |
SPACE, 'X' |
If this field is set, the ALV Grid Control color-codes the column as a key field and fixes this column during horizontal scrolling. The order of the key columns in the ALV Grid Control can be modified interactively. In contrast to the SAP List Viewer, the ALV Grid Control allows you to directly hide key columns with NO_OUT (field KEY_SEL is not used). | |||
LOWERCASE |
LOWERCASE |
Char(1) |
SPACE, 'X' |
If this field is set, the ALV Grid Control recognizes upper/lower case in the output table. This affects the sorting of fields, for example. | |||
NO_OUT |
LVC_NOOUT |
Char(1) |
SPACE, 'X' |
If you set this field, you hide the relevant column in the list. Nevertheless, the column is available in the field selection and can be interactively selected by the user as a display field. The ALV displays the contents of hidden fields on the detail screen for a row in the grid control. | |||
NO_MERGING |
CHAR01 |
Char(1) |
SPACE, 'X' |
If this field is set, cells with the same value are not merged into a single cell when this column is sorted. | |||
NO_SUM |
LVC_NOSIGN |
Char(1) |
SPACE, 'X' |
If you set this field, you lock totals calculation for the relevant field. | |||
OUTPUTLEN |
LVC_OUTLEN |
Numc(6) |
0 (default setting), n |
Determines the column width of the field:
| |||
STYLE |
LVC_STYLE |
RAW(4) |
Attribute CL_GUI_ALV_GRID => MC_STYLE_BUTTON |
Displays all cells of this column as pushbuttons. If a user clicks the pushbutton, the event button_click is triggered. | |||
TECH |
LVC_TECH |
Char(1) |
SPACE, 'X' |
If this field is set, the relevant field is not displayed on the list and cannot be shown interactively. The field is only known in the field catalog. (For example, it must not be specified as a sorting criterion). | |||
WEB_FIELD |
LVC_NAME |
Char(30) |
Name of a field of the output table |
You can use this field to define hyperlinks at cell level. |