BASIS
Function module
Used the same way in S/4HANA
REUSE_ALV_GRID_DISPLAY Simple List Output (ALV Grid)
Displays an internal table as a full-screen ALV grid with standard functions such as sort, filter, totals and export to Excel. It is the most widely used function for showing the result list in classic ABAP reports. Pass the field catalog in IT_FIELDCAT or via I_STRUCTURE_NAME; for user commands pass I_CALLBACK_PROGRAM = sy-repid and the FORM routine name, and consider CL_SALV_TABLE for new developments.
- Function group
- SLVC_FULLSCREEN
- Remote-enabled (RFC)
- No
- Type
- Function module
Importing parameters
| Parameter | Type | Description | Required |
|---|---|---|---|
| I_CALLBACK_PROGRAM | SY-REPID | Callback program | — |
| I_CALLBACK_PF_STATUS_SET | SLIS_FORMNAME | FORM routine that sets the GUI status | — |
| I_CALLBACK_USER_COMMAND | SLIS_FORMNAME | FORM routine that handles user commands | — |
| I_CALLBACK_TOP_OF_PAGE | SLIS_FORMNAME | Top-of-page FORM routine | — |
| I_GRID_TITLE | LVC_TITLE | Grid title | — |
| I_STRUCTURE_NAME | DD02L-TABNAME | Dictionary structure name | — |
| IS_LAYOUT | SLIS_LAYOUT_ALV | Layout settings | — |
| IT_FIELDCAT | SLIS_T_FIELDCAT_ALV | Field catalog | — |
| IT_SORT | SLIS_T_SORTINFO_ALV | Sort criteria | — |
| IT_FILTER | SLIS_T_FILTER_ALV | Filter criteria | — |
| IT_EVENTS | SLIS_T_EVENT | Event table | — |
| I_SAVE | — | Layout save mode (A, U, X) | — |
| IS_VARIANT | DISVARIANT | Display variant | — |
Exporting parameters
| Parameter | Type | Description |
|---|---|---|
| E_EXIT_CAUSED_BY_CALLER | — | Exit caused by caller |
| ES_EXIT_CAUSED_BY_USER | SLIS_EXIT_BY_USER | Exit caused by user |
Tables parameters
| Parameter | Type | Description | Required |
|---|---|---|---|
| T_OUTTAB | — | Output table | Yes |
Exceptions
- PROGRAM_ERROR — Program error
Call template (ABAP)
A skeleton generated from the interface. It lists mandatory importing parameters, exporting parameters and tables; declare the variables with suitable types in your own program.
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
IMPORTING
e_exit_caused_by_caller = lv_e_exit_caused_by_caller
es_exit_caused_by_user = lv_es_exit_caused_by_user
TABLES
t_outtab = lt_t_outtab
EXCEPTIONS
program_error = 1
OTHERS = 2.Can't find the report you need?
We also build anything that is not in the catalog. Describe it briefly and we will suggest the right solution.