SAP CNV_MBT_INCLUDES_COMPARE Function Module for Compare includes in central and PCL-system









CNV_MBT_INCLUDES_COMPARE is a standard cnv mbt includes compare SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Compare includes in central and PCL-system processing and below is the pattern details for this FM, 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 cnv mbt includes compare FM, simply by entering the name CNV_MBT_INCLUDES_COMPARE into the relevant SAP transaction such as SE37 or SE38.

Function Group: CNV_MBT_PCL_INTERFACE
Program Name: SAPLCNV_MBT_PCL_INTERFACE
Main Program: SAPLCNV_MBT_PCL_INTERFACE
Appliation area: S
Release date: N/A
Mode(Normal, Remote etc): Remote-Enabled
Update:



Function CNV_MBT_INCLUDES_COMPARE 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 'CNV_MBT_INCLUDES_COMPARE'"Compare includes in central and PCL-system
EXPORTING
INCL_NAME = "
* PACKID = "
* UPDATE_CNVMBTINCL = "flag
* ONLY_TRDIR = "flag
* CENTRAL_SYSTEM = "flag

IMPORTING
UDAT = "
UTIME = "
UNAME = "
VERSION = "
MSGTEXT = "
SUBRC = "
FINGERPRINT = "Natural number

EXCEPTIONS
INCLUDES_NOT_EQUAL = 1
.



IMPORTING Parameters details for CNV_MBT_INCLUDES_COMPARE

INCL_NAME -

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

PACKID -

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

UPDATE_CNVMBTINCL - flag

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

ONLY_TRDIR - flag

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

CENTRAL_SYSTEM - flag

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

EXPORTING Parameters details for CNV_MBT_INCLUDES_COMPARE

UDAT -

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

UTIME -

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

UNAME -

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

VERSION -

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

MSGTEXT -

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

SUBRC -

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

FINGERPRINT - Natural number

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

EXCEPTIONS details

INCLUDES_NOT_EQUAL -

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

Copy and paste ABAP code example for CNV_MBT_INCLUDES_COMPARE 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_udat  TYPE CNVMBTINCL-UDAT, "   
lv_incl_name  TYPE CNVMBTINCL-INCLUDE_NAME, "   
lv_includes_not_equal  TYPE CNVMBTINCL, "   
lv_utime  TYPE CNVMBTINCL-UTIME, "   
lv_packid  TYPE CNVMBTPACK-PACKID, "   
lv_uname  TYPE CNVMBTINCL-UNAME, "   
lv_update_cnvmbtincl  TYPE CNVMBTRETSTR-AND_RETURN, "   
lv_version  TYPE CNVMBTINCL-VERSION, "   
lv_only_trdir  TYPE CNVMBTRETSTR-AND_RETURN, "   
lv_msgtext  TYPE CNVMBTSTRGENERAL-MSGTEXT, "   
lv_central_system  TYPE CNVMBTRETSTR-AND_RETURN, "   
lv_subrc  TYPE CNVMBTSTRGENERAL-SUBRC, "   
lv_fingerprint  TYPE CNVMBTPCLSTRUCST-TOTAL. "   

  CALL FUNCTION 'CNV_MBT_INCLUDES_COMPARE'  "Compare includes in central and PCL-system
    EXPORTING
         INCL_NAME = lv_incl_name
         PACKID = lv_packid
         UPDATE_CNVMBTINCL = lv_update_cnvmbtincl
         ONLY_TRDIR = lv_only_trdir
         CENTRAL_SYSTEM = lv_central_system
    IMPORTING
         UDAT = lv_udat
         UTIME = lv_utime
         UNAME = lv_uname
         VERSION = lv_version
         MSGTEXT = lv_msgtext
         SUBRC = lv_subrc
         FINGERPRINT = lv_fingerprint
    EXCEPTIONS
        INCLUDES_NOT_EQUAL = 1
. " CNV_MBT_INCLUDES_COMPARE




ABAP code using 7.40 inline data declarations to call FM CNV_MBT_INCLUDES_COMPARE

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 UDAT FROM CNVMBTINCL INTO @DATA(ld_udat).
 
"SELECT single INCLUDE_NAME FROM CNVMBTINCL INTO @DATA(ld_incl_name).
 
 
"SELECT single UTIME FROM CNVMBTINCL INTO @DATA(ld_utime).
 
"SELECT single PACKID FROM CNVMBTPACK INTO @DATA(ld_packid).
 
"SELECT single UNAME FROM CNVMBTINCL INTO @DATA(ld_uname).
 
"SELECT single AND_RETURN FROM CNVMBTRETSTR INTO @DATA(ld_update_cnvmbtincl).
 
"SELECT single VERSION FROM CNVMBTINCL INTO @DATA(ld_version).
 
"SELECT single AND_RETURN FROM CNVMBTRETSTR INTO @DATA(ld_only_trdir).
 
"SELECT single MSGTEXT FROM CNVMBTSTRGENERAL INTO @DATA(ld_msgtext).
 
"SELECT single AND_RETURN FROM CNVMBTRETSTR INTO @DATA(ld_central_system).
 
"SELECT single SUBRC FROM CNVMBTSTRGENERAL INTO @DATA(ld_subrc).
 
"SELECT single TOTAL FROM CNVMBTPCLSTRUCST INTO @DATA(ld_fingerprint).
 


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!