# REUSE_ALV_FIELDCATALOG_MERGE — Create Field Catalog from Dictionary Structure or Internal Table

> Builds an ALV field catalog (SLIS type) automatically from an ABAP Dictionary structure or from an internal table definition in the program. It is used to avoid filling the field catalog for the REUSE_ALV_* functions by hand. The internal table method reads source code, so it works with old-style (OCCURS/LIKE) definitions and has a line length limit; pass a dictionary structure via I_STRUCTURE_NAME when possible.

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

## Importing parameters

| Parameter | Type | Description | Required |
|---|---|---|---|
| I_PROGRAM_NAME | SY-REPID | Program name | - |
| I_INTERNAL_TABNAME | SLIS_TABNAME | Internal table name | - |
| I_STRUCTURE_NAME | DD02L-TABNAME | Dictionary structure name | - |
| I_INCLNAME | TRDIR-NAME | Include name | - |
| I_BYPASSING_BUFFER | CHAR01 | Bypass buffer | - |

## Changing parameters

| Parameter | Type | Description | Required |
|---|---|---|---|
| CT_FIELDCAT | SLIS_T_FIELDCAT_ALV | Field catalog | Yes |

## Exceptions

- INCONSISTENT_INTERFACE: Inconsistent interface
- PROGRAM_ERROR: Program error

## Call template (ABAP)

```abap
CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE'
  CHANGING
    ct_fieldcat = lv_ct_fieldcat
  EXCEPTIONS
    inconsistent_interface = 1
    program_error = 2
    OTHERS = 3.
```


