SAP DTL_PROJ_DEFINE Function Module for Create an MWB project
DTL_PROJ_DEFINE is a standard dtl proj define SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Create an MWB project 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 dtl proj define FM, simply by entering the name DTL_PROJ_DEFINE into the relevant SAP transaction such as SE37 or SE38.
Function Group: DMC_DTL
Program Name: SAPLDMC_DTL
Main Program: SAPLDMC_DTL
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Remote-Enabled
Update:
Function DTL_PROJ_DEFINE 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 'DTL_PROJ_DEFINE'"Create an MWB project.
EXPORTING
IM_APPLIC = "DMC Tool: Application
IM_PROJECT = "Bezeichner f. Projekte
* IM_DESCRIPT = "Beschreibung
* IM_PACKID = "Package number to specify CMIS and TDMS packages
* IM_SESSION_ID = "MBT PCL SESSION_ID
* I_TADIR = '-' "Direct TADIR update instead of CTS
* I_SCENARIO = 'TDMS' "scenario (TDMS, CMIS, etc.)
* I_PROCTYPE = "MBT PCL Type of MIgration Process
* I_UC_ACTIVE = '-' "Unicode conversion active (IUUC)
IMPORTING
EX_LOGNUMBER = "Anwendungs-Log: Protokollnummer
EX_STATUS = "Status info for MWB activities
TABLES
* IT_RULELIST = "Structure for passing of rules to DTL (API)
* IT_RULEPARAMS = "rule paramters, including rule name (= CNVMBTPCLSTRUCRP)
* IT_RULECODING = "structure for rule code from PCL (CNVMBTPCLSTRUCRC)
IMPORTING Parameters details for DTL_PROJ_DEFINE
IM_APPLIC - DMC Tool: Application
Data type: DMC_APPLICOptional: No
Call by Reference: No ( called with pass by value option)
IM_PROJECT - Bezeichner f. Projekte
Data type: DMC_PIDENTOptional: No
Call by Reference: No ( called with pass by value option)
IM_DESCRIPT - Beschreibung
Data type: DMC_DESCROptional: Yes
Call by Reference: No ( called with pass by value option)
IM_PACKID - Package number to specify CMIS and TDMS packages
Data type: DMC_PACKAGE_IDOptional: Yes
Call by Reference: No ( called with pass by value option)
IM_SESSION_ID - MBT PCL SESSION_ID
Data type: DMC_SESSION_IDOptional: Yes
Call by Reference: No ( called with pass by value option)
I_TADIR - Direct TADIR update instead of CTS
Data type: BOOLEANDefault: '-'
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_SCENARIO - scenario (TDMS, CMIS, etc.)
Data type: DMC_SCENARIODefault: 'TDMS'
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_PROCTYPE - MBT PCL Type of MIgration Process
Data type: CNV_MBT_PROCTYPEOptional: Yes
Call by Reference: No ( called with pass by value option)
I_UC_ACTIVE - Unicode conversion active (IUUC)
Data type: BOOLEANDefault: '-'
Optional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for DTL_PROJ_DEFINE
EX_LOGNUMBER - Anwendungs-Log: Protokollnummer
Data type: BALOGNROptional: No
Call by Reference: No ( called with pass by value option)
EX_STATUS - Status info for MWB activities
Data type: DMC_ACTIVITY_STATUS_INFOOptional: No
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for DTL_PROJ_DEFINE
IT_RULELIST - Structure for passing of rules to DTL (API)
Data type: DMC_DTL_RULESOptional: Yes
Call by Reference: Yes
IT_RULEPARAMS - rule paramters, including rule name (= CNVMBTPCLSTRUCRP)
Data type: DTL_RULE_PARAMETERSOptional: Yes
Call by Reference: Yes
IT_RULECODING - structure for rule code from PCL (CNVMBTPCLSTRUCRC)
Data type: DTL_RULECODE_FROM_PCLOptional: Yes
Call by Reference: Yes
Copy and paste ABAP code example for DTL_PROJ_DEFINE 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_im_applic | TYPE DMC_APPLIC, " | |||
lt_it_rulelist | TYPE STANDARD TABLE OF DMC_DTL_RULES, " | |||
lv_ex_lognumber | TYPE BALOGNR, " | |||
lv_ex_status | TYPE DMC_ACTIVITY_STATUS_INFO, " | |||
lv_im_project | TYPE DMC_PIDENT, " | |||
lt_it_ruleparams | TYPE STANDARD TABLE OF DTL_RULE_PARAMETERS, " | |||
lv_im_descript | TYPE DMC_DESCR, " | |||
lt_it_rulecoding | TYPE STANDARD TABLE OF DTL_RULECODE_FROM_PCL, " | |||
lv_im_packid | TYPE DMC_PACKAGE_ID, " | |||
lv_im_session_id | TYPE DMC_SESSION_ID, " | |||
lv_i_tadir | TYPE BOOLEAN, " '-' | |||
lv_i_scenario | TYPE DMC_SCENARIO, " 'TDMS' | |||
lv_i_proctype | TYPE CNV_MBT_PROCTYPE, " | |||
lv_i_uc_active | TYPE BOOLEAN. " '-' |
  CALL FUNCTION 'DTL_PROJ_DEFINE' "Create an MWB project |
EXPORTING | ||
IM_APPLIC | = lv_im_applic | |
IM_PROJECT | = lv_im_project | |
IM_DESCRIPT | = lv_im_descript | |
IM_PACKID | = lv_im_packid | |
IM_SESSION_ID | = lv_im_session_id | |
I_TADIR | = lv_i_tadir | |
I_SCENARIO | = lv_i_scenario | |
I_PROCTYPE | = lv_i_proctype | |
I_UC_ACTIVE | = lv_i_uc_active | |
IMPORTING | ||
EX_LOGNUMBER | = lv_ex_lognumber | |
EX_STATUS | = lv_ex_status | |
TABLES | ||
IT_RULELIST | = lt_it_rulelist | |
IT_RULEPARAMS | = lt_it_ruleparams | |
IT_RULECODING | = lt_it_rulecoding | |
. " DTL_PROJ_DEFINE |
ABAP code using 7.40 inline data declarations to call FM DTL_PROJ_DEFINE
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.DATA(ld_i_tadir) | = '-'. | |||
DATA(ld_i_scenario) | = 'TDMS'. | |||
DATA(ld_i_uc_active) | = '-'. | |||
Search for further information about these or an SAP related objects