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

ParameterTypeDescriptionRequired
I_PROGRAM_NAMESY-REPIDProgram name—
I_INTERNAL_TABNAMESLIS_TABNAMEInternal table name—
I_STRUCTURE_NAMEDD02L-TABNAMEDictionary structure name—
I_INCLNAMETRDIR-NAMEInclude name—
I_BYPASSING_BUFFERCHAR01Bypass buffer—

Changing parameters

ParameterTypeDescriptionRequired
CT_FIELDCATSLIS_T_FIELDCAT_ALVField catalogYes

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.

Request a custom report