SAP Function Modules

DTL_SUBPROJ_DEFINE SAP Function module - API: create subproject







DTL_SUBPROJ_DEFINE is a standard SAP function module available within R/3 SAP systems depending on your version and release level. Below is the pattern details for this FM showing its interface including any import and export parameters, exceptions etc as well as any documentation contributions (Comments) specific to the object.

See here to view full function module documentation and code listing, simply by entering the name DTL_SUBPROJ_DEFINE into the relevant SAP transaction such as SE37 or SE80.

Associated Function Group: DMC_DTL
Released Date: Not Released
Processing type: Remote-Enabled
remote enabled module settings


Pattern for FM DTL_SUBPROJ_DEFINE - DTL SUBPROJ DEFINE





CALL FUNCTION 'DTL_SUBPROJ_DEFINE' "API: create subproject
  EXPORTING
    im_project =                " dmc_pident    Bezeichner f. Projekte
    im_subproject =             " dmc_sident    Bezeichner f. Subprojekte
*   im_descript =               " dmc_descr     Beschreibung
*   im_packid =                 " dmc_package_id  Package number to specify CMIS and TDMS packages
*   im_session_id =             " dmc_session_id  MBT PCL SESSION_ID
*   i_tadir = '-'               " boolean       Direct TADIR update instead of CTS
  IMPORTING
    ex_lognumber =              " balognr       Anwendungs-Log: Protokollnummer
    ex_status =                 " dmc_activity_status_info  Status info for MWB activities
* TABLES
*   it_rfcdest =                " dtl_rfc_data_from_pcl  rfc data from PCL (CNVMBTPCLSTRUCRF)
*   it_rulelist =               " dmc_dtl_rules  Structure for passing of rules to DTL (API)
*   it_ruleparams =             " dtl_rule_parameters  rule paramters, including rule name (= CNVMBTPCLSTRUCRP)
*   it_rulecoding =             " dtl_rulecode_from_pcl  structure for rule code from PCL (CNVMBTPCLSTRUCRC)
    .  "  DTL_SUBPROJ_DEFINE

ABAP code example for Function Module DTL_SUBPROJ_DEFINE





The ABAP code below is a full code listing to execute function module DTL_SUBPROJ_DEFINE including all data declarations. The code uses 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 original method of declaring data variables up front. 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).

DATA:
ld_ex_lognumber  TYPE BALOGNR ,
ld_ex_status  TYPE DMC_ACTIVITY_STATUS_INFO ,
it_it_rfcdest  TYPE STANDARD TABLE OF DTL_RFC_DATA_FROM_PCL,"TABLES PARAM
wa_it_rfcdest  LIKE LINE OF it_it_rfcdest ,
it_it_rulelist  TYPE STANDARD TABLE OF DMC_DTL_RULES,"TABLES PARAM
wa_it_rulelist  LIKE LINE OF it_it_rulelist ,
it_it_ruleparams  TYPE STANDARD TABLE OF DTL_RULE_PARAMETERS,"TABLES PARAM
wa_it_ruleparams  LIKE LINE OF it_it_ruleparams ,
it_it_rulecoding  TYPE STANDARD TABLE OF DTL_RULECODE_FROM_PCL,"TABLES PARAM
wa_it_rulecoding  LIKE LINE OF it_it_rulecoding .

DATA(ld_im_project) = 'Check type of data required'.
DATA(ld_im_subproject) = 'Check type of data required'.
DATA(ld_im_descript) = 'Check type of data required'.
DATA(ld_im_packid) = 'Check type of data required'.
DATA(ld_im_session_id) = 'Check type of data required'.
DATA(ld_i_tadir) = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_it_rfcdest to it_it_rfcdest.

"populate fields of struture and append to itab
append wa_it_rulelist to it_it_rulelist.

"populate fields of struture and append to itab
append wa_it_ruleparams to it_it_ruleparams.

"populate fields of struture and append to itab
append wa_it_rulecoding to it_it_rulecoding. . CALL FUNCTION 'DTL_SUBPROJ_DEFINE' EXPORTING im_project = ld_im_project im_subproject = ld_im_subproject * im_descript = ld_im_descript * im_packid = ld_im_packid * im_session_id = ld_im_session_id * i_tadir = ld_i_tadir IMPORTING ex_lognumber = ld_ex_lognumber ex_status = ld_ex_status * TABLES * it_rfcdest = it_it_rfcdest * it_rulelist = it_it_rulelist * it_ruleparams = it_it_ruleparams * it_rulecoding = it_it_rulecoding . " DTL_SUBPROJ_DEFINE
IF SY-SUBRC EQ 0. "All OK ENDIF.







ABAP code to compare 7.40 inline data declaration with original syntax

The below ABAP code uses the older none in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. It may also be useful if you are using an older version of SAP as some of the newer syntax above, such as the @DATA is not available until 4.70 EHP 8.

DATA:
ld_ex_lognumber  TYPE BALOGNR ,
ld_im_project  TYPE DMC_PIDENT ,
it_it_rfcdest  TYPE STANDARD TABLE OF DTL_RFC_DATA_FROM_PCL ,
wa_it_rfcdest  LIKE LINE OF it_it_rfcdest,
ld_ex_status  TYPE DMC_ACTIVITY_STATUS_INFO ,
ld_im_subproject  TYPE DMC_SIDENT ,
it_it_rulelist  TYPE STANDARD TABLE OF DMC_DTL_RULES ,
wa_it_rulelist  LIKE LINE OF it_it_rulelist,
ld_im_descript  TYPE DMC_DESCR ,
it_it_ruleparams  TYPE STANDARD TABLE OF DTL_RULE_PARAMETERS ,
wa_it_ruleparams  LIKE LINE OF it_it_ruleparams,
ld_im_packid  TYPE DMC_PACKAGE_ID ,
it_it_rulecoding  TYPE STANDARD TABLE OF DTL_RULECODE_FROM_PCL ,
wa_it_rulecoding  LIKE LINE OF it_it_rulecoding,
ld_im_session_id  TYPE DMC_SESSION_ID ,
ld_i_tadir  TYPE BOOLEAN .

ld_im_project = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_it_rfcdest to it_it_rfcdest.
ld_im_subproject = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_it_rulelist to it_it_rulelist.
ld_im_descript = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_it_ruleparams to it_it_ruleparams.
ld_im_packid = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_it_rulecoding to it_it_rulecoding.
ld_im_session_id = 'Check type of data required'.
ld_i_tadir = 'Check type of data required'.

SAP Documentation for FM DTL_SUBPROJ_DEFINE


This API is used to create a subproject in the migration workbench. The execution is done in synchronous mode. ...See here for full SAP fm documentation

Contribute (Add Comments)

Please help keep this info upto date and use the comments section below to add useful hints, tips and information specific to this SAP function. This will then be available for you and other users to easily find by simply searching on the object name DTL_SUBPROJ_DEFINE or its description.