SAP CNV_MBT_PACK_PROCTREE_MGRP_INS Function Module for Insert multiple groups of activities into process tree
CNV_MBT_PACK_PROCTREE_MGRP_INS is a standard cnv mbt pack proctree mgrp ins SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Insert multiple groups of activities into process tree 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 pack proctree mgrp ins FM, simply by entering the name CNV_MBT_PACK_PROCTREE_MGRP_INS into the relevant SAP transaction such as SE37 or SE38.
Function Group: CNV_MBT_PACK
Program Name: SAPLCNV_MBT_PACK
Main Program: SAPLCNV_MBT_PACK
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function CNV_MBT_PACK_PROCTREE_MGRP_INS 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_PACK_PROCTREE_MGRP_INS'"Insert multiple groups of activities into process tree.
EXPORTING
I_PACKID = "Package Number to Specify CMIS and TDMS Packages
* I_PRE_ACTIVITY = "Unique ID for all activities to be executed
* I_PARENT_ACTIVITY = "Unique ID for all activities to be executed
* I_CREATE_COPY = 'X' "Flag (X = yes, initial = no)
* I_ORIG_PACK = "Package Number to Specify CMIS and TDMS Packages
* I_FORCE_GROUP_SEQ = "Flag (X = yes, initial = no)
* I_FORCE_ACT_SEQ = "Flag (X = yes, initial = no)
* I_GROUP_ID_PARAMNAME = "Flag (X = yes, initial = no)
TABLES
IT_GROUPS = "Structure for Inserting multiple groups into process tree
EXCEPTIONS
OPERATION_FAILED = 1
IMPORTING Parameters details for CNV_MBT_PACK_PROCTREE_MGRP_INS
I_PACKID - Package Number to Specify CMIS and TDMS Packages
Data type: CNVMBTIMG-PACKIDOptional: No
Call by Reference: Yes
I_PRE_ACTIVITY - Unique ID for all activities to be executed
Data type: CNV_MBT_ACTIVITYOptional: Yes
Call by Reference: Yes
I_PARENT_ACTIVITY - Unique ID for all activities to be executed
Data type: CNV_MBT_ACTIVITYOptional: Yes
Call by Reference: Yes
I_CREATE_COPY - Flag (X = yes, initial = no)
Data type: CNV_MBT_FLAGDefault: 'X'
Optional: Yes
Call by Reference: Yes
I_ORIG_PACK - Package Number to Specify CMIS and TDMS Packages
Data type: CNV_MBT_PACKIDOptional: Yes
Call by Reference: Yes
I_FORCE_GROUP_SEQ - Flag (X = yes, initial = no)
Data type: CNV_MBT_FLAGOptional: Yes
Call by Reference: Yes
I_FORCE_ACT_SEQ - Flag (X = yes, initial = no)
Data type: CNV_MBT_FLAGOptional: Yes
Call by Reference: Yes
I_GROUP_ID_PARAMNAME - Flag (X = yes, initial = no)
Data type: RSSCR_NAMEOptional: Yes
Call by Reference: Yes
TABLES Parameters details for CNV_MBT_PACK_PROCTREE_MGRP_INS
IT_GROUPS - Structure for Inserting multiple groups into process tree
Data type: CNVMBTPROCTREE_MGRP_SOptional: No
Call by Reference: Yes
EXCEPTIONS details
OPERATION_FAILED -
Data type:Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for CNV_MBT_PACK_PROCTREE_MGRP_INS 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_i_packid | TYPE CNVMBTIMG-PACKID, " | |||
| lt_it_groups | TYPE STANDARD TABLE OF CNVMBTPROCTREE_MGRP_S, " | |||
| lv_operation_failed | TYPE CNVMBTPROCTREE_MGRP_S, " | |||
| lv_i_pre_activity | TYPE CNV_MBT_ACTIVITY, " | |||
| lv_i_parent_activity | TYPE CNV_MBT_ACTIVITY, " | |||
| lv_i_create_copy | TYPE CNV_MBT_FLAG, " 'X' | |||
| lv_i_orig_pack | TYPE CNV_MBT_PACKID, " | |||
| lv_i_force_group_seq | TYPE CNV_MBT_FLAG, " | |||
| lv_i_force_act_seq | TYPE CNV_MBT_FLAG, " | |||
| lv_i_group_id_paramname | TYPE RSSCR_NAME. " |
|   CALL FUNCTION 'CNV_MBT_PACK_PROCTREE_MGRP_INS' "Insert multiple groups of activities into process tree |
| EXPORTING | ||
| I_PACKID | = lv_i_packid | |
| I_PRE_ACTIVITY | = lv_i_pre_activity | |
| I_PARENT_ACTIVITY | = lv_i_parent_activity | |
| I_CREATE_COPY | = lv_i_create_copy | |
| I_ORIG_PACK | = lv_i_orig_pack | |
| I_FORCE_GROUP_SEQ | = lv_i_force_group_seq | |
| I_FORCE_ACT_SEQ | = lv_i_force_act_seq | |
| I_GROUP_ID_PARAMNAME | = lv_i_group_id_paramname | |
| TABLES | ||
| IT_GROUPS | = lt_it_groups | |
| EXCEPTIONS | ||
| OPERATION_FAILED = 1 | ||
| . " CNV_MBT_PACK_PROCTREE_MGRP_INS | ||
ABAP code using 7.40 inline data declarations to call FM CNV_MBT_PACK_PROCTREE_MGRP_INS
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 PACKID FROM CNVMBTIMG INTO @DATA(ld_i_packid). | ||||
| DATA(ld_i_create_copy) | = 'X'. | |||
Search for further information about these or an SAP related objects