REUSE_ALV_GRID_DISPLAY — ABAP Function Module
Display a typed internal table using the common local ALV renderer.
REUSE_ALV_GRID_DISPLAY
Display a typed internal table using the common local ALV renderer.
| Name | Direction | Type | Description |
|---|---|---|---|
| T_OUTTAB (required) | TABLES | ANY TABLE | Output records |
| IT_FIELDCAT | EXPORTING | ANY TABLE | Optional classic field catalog |
| IT_FIELDCAT_LVC | EXPORTING | ANY TABLE | Optional LVC field catalog |
| IS_LAYOUT | EXPORTING | ANY | Layout settings: ZEBRA |
| IS_LAYOUT_LVC | EXPORTING | ANY | LVC layout settings: ZEBRA |
| I_GRID_TITLE | EXPORTING | STRING | Grid heading |
| I_STRUCTURE_NAME | EXPORTING | STRING | Local structure type name |
TYPES: BEGIN OF ty_row, id TYPE i, label TYPE string, END OF ty_row.
DATA rows TYPE STANDARD TABLE OF ty_row WITH EMPTY KEY.
rows = VALUE #( ( id = 1 label = 'Local ALV' ) ).
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING i_grid_title = 'Classic ALV example'
TABLES t_outtab = rows.Example output:
Classic ALV example
ID | LABEL
1 | Local ALVSupports table data, column labels/visibility/totals and zebra layout. Callback programs, editable GUI grids and frontend services are not implemented.