SAP DMC_IU_CBU_INIT_MERGE Function Module for MWB IU: init merge
DMC_IU_CBU_INIT_MERGE is a standard dmc iu cbu init merge SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for MWB IU: init merge 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 dmc iu cbu init merge FM, simply by entering the name DMC_IU_CBU_INIT_MERGE into the relevant SAP transaction such as SE37 or SE38.
Function Group: DMC_IU_CBU
Program Name: SAPLDMC_IU_CBU
Main Program: SAPLDMC_IU_CBU
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function DMC_IU_CBU_INIT_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 'DMC_IU_CBU_INIT_MERGE'"MWB IU: init merge.
EXPORTING
* IV_MAP = "Name of a set of merge settings
* IV_NMAP = "Name of a set of merge settings
* IV_CMAP = "Name of a set of merge settings
* IV_EXP = "Repository Switch
* IV_CREA = 'C' "Overwrite or recreate
* IV_PROT = 'B' "Single-Character Flag
* IV_NAME = "File including path
* IV_VERI = "Single-Character Flag
* IV_TABU = "Single-Character Flag
* IV_RESTART = "Restart merge
* IV_DELTA = "Delta ID for Repository Switch
* IV_COFI = "Request/Task
* IV_SREL = "
* IV_EREL = "Überschreiben oder neu anlegen
* IV_CLIDEP = ' ' "
* IV_NAME' ' = ' ' "
* IV_VDAT = ' ' "Erzeugung CORR MERG Einträge
* IV_MERGETA = 'X' "
* IV_TEXT = "Short Text Describing R/3 Repository Objects
* IV_TRFU = "Type of request/task
* IV_CLI = "Source client of request
* IV_TSID = "Transport target of a request
* IV_USER = "SAP System, User Logon Name
* IV_STEP = "Type of control information
* IV_IMAP = "Name of a set of merge settings
IMPORTING Parameters details for DMC_IU_CBU_INIT_MERGE
IV_MAP - Name of a set of merge settings
Data type: MERGEDIR-MAPNAMEOptional: Yes
Call by Reference: No ( called with pass by value option)
IV_NMAP - Name of a set of merge settings
Data type: MERGEDIR-MAPNAMEOptional: Yes
Call by Reference: No ( called with pass by value option)
IV_CMAP - Name of a set of merge settings
Data type: MERGEDIR-MAPNAMEOptional: Yes
Call by Reference: No ( called with pass by value option)
IV_EXP - Repository Switch
Data type: MERGEPARAM-EXPORTOptional: Yes
Call by Reference: No ( called with pass by value option)
IV_CREA - Overwrite or recreate
Data type: MERGEPARAM-CREATEMODEDefault: 'C'
Optional: Yes
Call by Reference: No ( called with pass by value option)
IV_PROT - Single-Character Flag
Data type: MERGEMAPS-LOGTYPEDefault: 'B'
Optional: Yes
Call by Reference: No ( called with pass by value option)
IV_NAME - File including path
Data type: TSTRF01-FILEOptional: Yes
Call by Reference: No ( called with pass by value option)
IV_VERI - Single-Character Flag
Data type: MERGEDIR-VERIFILTEROptional: Yes
Call by Reference: No ( called with pass by value option)
IV_TABU - Single-Character Flag
Data type: MERGEDIR-TABUFILTEROptional: Yes
Call by Reference: No ( called with pass by value option)
IV_RESTART - Restart merge
Data type: MERGEPARAM-RESTARTOptional: Yes
Call by Reference: No ( called with pass by value option)
IV_DELTA - Delta ID for Repository Switch
Data type: MERGEPARAM-DELTAOptional: Yes
Call by Reference: No ( called with pass by value option)
IV_COFI - Request/Task
Data type: E070-TRKORROptional: Yes
Call by Reference: No ( called with pass by value option)
IV_SREL -
Data type: SY-SAPRLOptional: Yes
Call by Reference: No ( called with pass by value option)
IV_EREL - Überschreiben oder neu anlegen
Data type: SY-SAPRLOptional: Yes
Call by Reference: No ( called with pass by value option)
IV_CLIDEP -
Data type: MERGEPARAM-CREATEMODEDefault: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)
IV_NAMESPACE -
Data type: MERGEPARAM-INFO_LEVELDefault: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)
IV_VDAT - Erzeugung CORR MERG Einträge
Data type: MERGEPARAM-INFO_LEVELDefault: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)
IV_MERGETA -
Data type: MERGEPARAM-INFO_LEVELDefault: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)
IV_TEXT - Short Text Describing R/3 Repository Objects
Data type: E07T-AS4TEXTOptional: Yes
Call by Reference: No ( called with pass by value option)
IV_TRFU - Type of request/task
Data type: E070-TRFUNCTIONOptional: Yes
Call by Reference: No ( called with pass by value option)
IV_CLI - Source client of request
Data type: E070C-CLIENTOptional: Yes
Call by Reference: No ( called with pass by value option)
IV_TSID - Transport target of a request
Data type: E070-TARSYSTEMOptional: Yes
Call by Reference: No ( called with pass by value option)
IV_USER - SAP System, User Logon Name
Data type: SY-UNAMEOptional: Yes
Call by Reference: No ( called with pass by value option)
IV_STEP - Type of control information
Data type: MERGEDIR-STEPOptional: Yes
Call by Reference: No ( called with pass by value option)
IV_IMAP - Name of a set of merge settings
Data type: MERGEDIR-MAPNAMEOptional: Yes
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for DMC_IU_CBU_INIT_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_iv_map | TYPE MERGEDIR-MAPNAME, " | |||
| lv_iv_nmap | TYPE MERGEDIR-MAPNAME, " | |||
| lv_iv_cmap | TYPE MERGEDIR-MAPNAME, " | |||
| lv_iv_exp | TYPE MERGEPARAM-EXPORT, " | |||
| lv_iv_crea | TYPE MERGEPARAM-CREATEMODE, " 'C' | |||
| lv_iv_prot | TYPE MERGEMAPS-LOGTYPE, " 'B' | |||
| lv_iv_name | TYPE TSTRF01-FILE, " | |||
| lv_iv_veri | TYPE MERGEDIR-VERIFILTER, " | |||
| lv_iv_tabu | TYPE MERGEDIR-TABUFILTER, " | |||
| lv_iv_restart | TYPE MERGEPARAM-RESTART, " | |||
| lv_iv_delta | TYPE MERGEPARAM-DELTA, " | |||
| lv_iv_cofi | TYPE E070-TRKORR, " | |||
| lv_iv_srel | TYPE SY-SAPRL, " | |||
| lv_iv_erel | TYPE SY-SAPRL, " | |||
| lv_iv_clidep | TYPE MERGEPARAM-CREATEMODE, " ' ' | |||
| lv_iv_namespace | TYPE MERGEPARAM-INFO_LEVEL, " ' ' | |||
| lv_iv_vdat | TYPE MERGEPARAM-INFO_LEVEL, " ' ' | |||
| lv_iv_mergeta | TYPE MERGEPARAM-INFO_LEVEL, " 'X' | |||
| lv_iv_text | TYPE E07T-AS4TEXT, " | |||
| lv_iv_trfu | TYPE E070-TRFUNCTION, " | |||
| lv_iv_cli | TYPE E070C-CLIENT, " | |||
| lv_iv_tsid | TYPE E070-TARSYSTEM, " | |||
| lv_iv_user | TYPE SY-UNAME, " | |||
| lv_iv_step | TYPE MERGEDIR-STEP, " | |||
| lv_iv_imap | TYPE MERGEDIR-MAPNAME. " |
|   CALL FUNCTION 'DMC_IU_CBU_INIT_MERGE' "MWB IU: init merge |
| EXPORTING | ||
| IV_MAP | = lv_iv_map | |
| IV_NMAP | = lv_iv_nmap | |
| IV_CMAP | = lv_iv_cmap | |
| IV_EXP | = lv_iv_exp | |
| IV_CREA | = lv_iv_crea | |
| IV_PROT | = lv_iv_prot | |
| IV_NAME | = lv_iv_name | |
| IV_VERI | = lv_iv_veri | |
| IV_TABU | = lv_iv_tabu | |
| IV_RESTART | = lv_iv_restart | |
| IV_DELTA | = lv_iv_delta | |
| IV_COFI | = lv_iv_cofi | |
| IV_SREL | = lv_iv_srel | |
| IV_EREL | = lv_iv_erel | |
| IV_CLIDEP | = lv_iv_clidep | |
| IV_NAMESPACE | = lv_iv_namespace | |
| IV_VDAT | = lv_iv_vdat | |
| IV_MERGETA | = lv_iv_mergeta | |
| IV_TEXT | = lv_iv_text | |
| IV_TRFU | = lv_iv_trfu | |
| IV_CLI | = lv_iv_cli | |
| IV_TSID | = lv_iv_tsid | |
| IV_USER | = lv_iv_user | |
| IV_STEP | = lv_iv_step | |
| IV_IMAP | = lv_iv_imap | |
| . " DMC_IU_CBU_INIT_MERGE | ||
ABAP code using 7.40 inline data declarations to call FM DMC_IU_CBU_INIT_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 MAPNAME FROM MERGEDIR INTO @DATA(ld_iv_map). | ||||
| "SELECT single MAPNAME FROM MERGEDIR INTO @DATA(ld_iv_nmap). | ||||
| "SELECT single MAPNAME FROM MERGEDIR INTO @DATA(ld_iv_cmap). | ||||
| "SELECT single EXPORT FROM MERGEPARAM INTO @DATA(ld_iv_exp). | ||||
| "SELECT single CREATEMODE FROM MERGEPARAM INTO @DATA(ld_iv_crea). | ||||
| DATA(ld_iv_crea) | = 'C'. | |||
| "SELECT single LOGTYPE FROM MERGEMAPS INTO @DATA(ld_iv_prot). | ||||
| DATA(ld_iv_prot) | = 'B'. | |||
| "SELECT single FILE FROM TSTRF01 INTO @DATA(ld_iv_name). | ||||
| "SELECT single VERIFILTER FROM MERGEDIR INTO @DATA(ld_iv_veri). | ||||
| "SELECT single TABUFILTER FROM MERGEDIR INTO @DATA(ld_iv_tabu). | ||||
| "SELECT single RESTART FROM MERGEPARAM INTO @DATA(ld_iv_restart). | ||||
| "SELECT single DELTA FROM MERGEPARAM INTO @DATA(ld_iv_delta). | ||||
| "SELECT single TRKORR FROM E070 INTO @DATA(ld_iv_cofi). | ||||
| "SELECT single SAPRL FROM SY INTO @DATA(ld_iv_srel). | ||||
| "SELECT single SAPRL FROM SY INTO @DATA(ld_iv_erel). | ||||
| "SELECT single CREATEMODE FROM MERGEPARAM INTO @DATA(ld_iv_clidep). | ||||
| DATA(ld_iv_clidep) | = ' '. | |||
| "SELECT single INFO_LEVEL FROM MERGEPARAM INTO @DATA(ld_iv_namespace). | ||||
| DATA(ld_iv_namespace) | = ' '. | |||
| "SELECT single INFO_LEVEL FROM MERGEPARAM INTO @DATA(ld_iv_vdat). | ||||
| DATA(ld_iv_vdat) | = ' '. | |||
| "SELECT single INFO_LEVEL FROM MERGEPARAM INTO @DATA(ld_iv_mergeta). | ||||
| DATA(ld_iv_mergeta) | = 'X'. | |||
| "SELECT single AS4TEXT FROM E07T INTO @DATA(ld_iv_text). | ||||
| "SELECT single TRFUNCTION FROM E070 INTO @DATA(ld_iv_trfu). | ||||
| "SELECT single CLIENT FROM E070C INTO @DATA(ld_iv_cli). | ||||
| "SELECT single TARSYSTEM FROM E070 INTO @DATA(ld_iv_tsid). | ||||
| "SELECT single UNAME FROM SY INTO @DATA(ld_iv_user). | ||||
| "SELECT single STEP FROM MERGEDIR INTO @DATA(ld_iv_step). | ||||
| "SELECT single MAPNAME FROM MERGEDIR INTO @DATA(ld_iv_imap). | ||||
Search for further information about these or an SAP related objects