BASIS
Function module
Used the same way in S/4HANA
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.
- Function group
- SALV
- Remote-enabled (RFC)
- No
- Type
- Function module
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)
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_FIELDCATALOG_MERGE'
CHANGING
ct_fieldcat = lv_ct_fieldcat
EXCEPTIONS
inconsistent_interface = 1
program_error = 2
OTHERS = 3.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.