SAP LVC_FIELDCATALOG_MERGE Function Module for









LVC_FIELDCATALOG_MERGE is a standard lvc fieldcatalog merge SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used to perform a specific ABAP function and below is the pattern details, showing its interface including any import and export parameters, exceptions etc. there is also a full "cut and paste" ABAP pattern code example, along with implementation ABAP coding, documentation and contribution comments specific to this or related objects.


See here to view full function module documentation and code listing for lvc fieldcatalog merge FM, simply by entering the name LVC_FIELDCATALOG_MERGE into the relevant SAP transaction such as SE37 or SE38.

Function Group: SLVC
Program Name: SAPLSLVC
Main Program: SAPLSLVC
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:



Function LVC_FIELDCATALOG_MERGE pattern details

In-order to call this FM within your sap programs, simply using the below ABAP pattern details to trigger the function call...or see the full ABAP code listing at the end of this article. You can simply cut and paste this code into your ABAP progrom as it is, including variable declarations.
CALL FUNCTION 'LVC_FIELDCATALOG_MERGE'"
EXPORTING
* I_BUFFER_ACTIVE = "Buffer active
* I_STRUCTURE_NAME = "Structure name (structure, table, view)
* I_CLIENT_NEVER_DISPLAY = 'X' "Hide client fields
* I_BYPASSING_BUFFER = "Ignore buffer while reading
* I_INTERNAL_TABNAME = "Table Name

CHANGING
CT_FIELDCAT = "Field Catalog with Field Descriptions

EXCEPTIONS
INCONSISTENT_INTERFACE = 1 PROGRAM_ERROR = 2
.



IMPORTING Parameters details for LVC_FIELDCATALOG_MERGE

I_BUFFER_ACTIVE - Buffer active

Data type:
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_STRUCTURE_NAME - Structure name (structure, table, view)

Data type: DD02L-TABNAME
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_CLIENT_NEVER_DISPLAY - Hide client fields

Data type: SLIS_CHAR_1
Default: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_BYPASSING_BUFFER - Ignore buffer while reading

Data type: CHAR01
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_INTERNAL_TABNAME - Table Name

Data type: DD02L-TABNAME
Optional: Yes
Call by Reference: No ( called with pass by value option)

CHANGING Parameters details for LVC_FIELDCATALOG_MERGE

CT_FIELDCAT - Field Catalog with Field Descriptions

Data type: LVC_T_FCAT
Optional: No
Call by Reference: No ( called with pass by value option)

EXCEPTIONS details

INCONSISTENT_INTERFACE - Call parameter combination error

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

PROGRAM_ERROR - Program Errors

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

Copy and paste ABAP code example for LVC_FIELDCATALOG_MERGE Function Module

The ABAP code below is a full code listing to execute function module POPUP_TO_CONFIRM including all data declarations. The code uses the original data declarations rather than the latest in-line data DECLARATION SYNTAX but I have included an ABAP code snippet at the end to show how declarations would look using the newer method of declaring data variables on the fly. This will allow you to compare and fully understand the new inline method. Please note some of the newer syntax such as the @DATA is not available until a later 4.70 service pack (SP8), which i why i have stuck to the origianl for this example.

DATA:
lv_ct_fieldcat  TYPE LVC_T_FCAT, "   
lv_i_buffer_active  TYPE LVC_T_FCAT, "   
lv_inconsistent_interface  TYPE LVC_T_FCAT, "   
lv_program_error  TYPE LVC_T_FCAT, "   
lv_i_structure_name  TYPE DD02L-TABNAME, "   
lv_i_client_never_display  TYPE SLIS_CHAR_1, "   'X'
lv_i_bypassing_buffer  TYPE CHAR01, "   
lv_i_internal_tabname  TYPE DD02L-TABNAME. "   

  CALL FUNCTION 'LVC_FIELDCATALOG_MERGE'  "
    EXPORTING
         I_BUFFER_ACTIVE = lv_i_buffer_active
         I_STRUCTURE_NAME = lv_i_structure_name
         I_CLIENT_NEVER_DISPLAY = lv_i_client_never_display
         I_BYPASSING_BUFFER = lv_i_bypassing_buffer
         I_INTERNAL_TABNAME = lv_i_internal_tabname
    CHANGING
         CT_FIELDCAT = lv_ct_fieldcat
    EXCEPTIONS
        INCONSISTENT_INTERFACE = 1
        PROGRAM_ERROR = 2
. " LVC_FIELDCATALOG_MERGE




ABAP code using 7.40 inline data declarations to call FM LVC_FIELDCATALOG_MERGE

The below ABAP code uses the newer in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. Please note some of the newer syntax below, such as the @DATA is not available until 4.70 EHP 8.

 
 
 
 
"SELECT single TABNAME FROM DD02L INTO @DATA(ld_i_structure_name).
 
DATA(ld_i_client_never_display) = 'X'.
 
 
"SELECT single TABNAME FROM DD02L INTO @DATA(ld_i_internal_tabname).
 


Search for further information about these or an SAP related objects



Comments on this SAP object

What made you want to lookup this SAP object? Please tell us what you were looking for and anything you would like to be included on this page!