# REUSE_ALV_GRID_DISPLAY_LVC — ALV Grid Output (LVC Field Catalog)

> Displays the same full-screen ALV grid as REUSE_ALV_GRID_DISPLAY but uses the LVC types of CL_GUI_ALV_GRID for the field catalog, layout, sort and filter. Reports that need cell coloring, editable fields or LVC_T_FCAT features prefer it. You can build the field catalog with LVC_FIELDCATALOG_MERGE and pass the layout in IS_LAYOUT_LVC.

- Modules: BASIS
- Type: Function module
- Function group: SLVC_FULLSCREEN
- Remote-enabled (RFC): No
- S/4HANA status: Used the same way in S/4HANA
- URL: https://nekuhub.com/en/functions/reuse-alv-grid-display-lvc/

## 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_LVC | LVC_S_LAYO | Layout settings (LVC) | - |
| IT_FIELDCAT_LVC | LVC_T_FCAT | Field catalog (LVC) | - |
| IT_SORT_LVC | LVC_T_SORT | Sort criteria (LVC) | - |
| IT_FILTER_LVC | LVC_T_FILT | Filter criteria (LVC) | - |
| 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)

```abap
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY_LVC'
  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.
```


