SAP CP_CC_S_LOAD_COMPLEX_BY_ITM Function Module for NOTRANSL: Komplexes Laden von Objekten über Stücklistenpositionen
CP_CC_S_LOAD_COMPLEX_BY_ITM is a standard cp cc s load complex by itm SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for NOTRANSL: Komplexes Laden von Objekten über Stücklistenpositionen 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 cp cc s load complex by itm FM, simply by entering the name CP_CC_S_LOAD_COMPLEX_BY_ITM into the relevant SAP transaction such as SE37 or SE38.
Function Group: CPCC
Program Name: SAPLCPCC
Main Program: SAPLCPCC
Appliation area: C
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function CP_CC_S_LOAD_COMPLEX_BY_ITM 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 'CP_CC_S_LOAD_COMPLEX_BY_ITM'"NOTRANSL: Komplexes Laden von Objekten über Stücklistenpositionen.
EXPORTING
I_CLASS = "
* I_CPSC_MBM_SEL = "
* I_CPSC_BOM_SEL = "
* I_CPSC_ITM_SEL = "
* I_CPSC_SUI_SEL = "
* I_CPSC_PRT_SEL = "
* I_CPSC_PAC_SEL = "
* I_CPSC_CHA_SEL = "
* I_CPSC_MST_SEL = "
* I_CPSC_ODP_SEL = "
* I_CPSC_CLA_SEL = "Classification Selection Criteria
* I_PROFILE = "Profile
* I_CPSC_ECN_SEL = "
* I_SEL_OPR_IDENT = "
* I_DATE_FROM = DATE-MIN_GRG "
* I_DATE_TO = DATE-MAX_GRG "
* I_FLG_OPR_SET_LOCK = ' ' "
* I_MESSAGE_HANDLER = 'X' "Message Collector To Be Opened
* I_SAVE_PROTOCOLL = ' ' "
* I_WORK_AREA = "Working Environment
* I_CLASSES_IN_WORKAREA = "
* I_CPSC_MTK_SEL = "Material Selection Criteria
* I_CPSC_COM_SEL = "
* I_CPSC_TSK_SEL = "
* I_CPSC_OPR_SEL = "
* I_CPSC_SUO_SEL = "
IMPORTING
E_ITM_IDENT = "
E_DATE_TO = "
E_FLG_ECM_EVALUATION = "
E_BOM_LOCK = "
E_ITM_LOCK = "
E_TSK_LOCK = "
E_SEQ_LOCK = "
E_OPR_LOCK = "
E_WORKAREA = "
E_PROFILE = "
E_DATE_FROM = "
EXCEPTIONS
WORKAREA_NOT_FOUND = 1 CLASS_WRONG_TYPE = 2 WORKAREA_WRONG_TYPE = 3 CLASS_IN_WORKAREA_INCONSISTENT = 4 WORKAREA_NOT_SPECIFIED = 5 ITM_NOT_FOUND = 6 NO_SELECTION_CRITERIA = 7 INVALID_SELECTION_PERIOD = 8 KEY_DATE_REQUIRED_FOR_ECM = 9
IMPORTING Parameters details for CP_CC_S_LOAD_COMPLEX_BY_ITM
I_CLASS -
Data type: T410-CLASSOptional: No
Call by Reference: No ( called with pass by value option)
I_CPSC_MBM_SEL -
Data type: CPSC_MBM_SEL_TYPEOptional: Yes
Call by Reference: Yes
I_CPSC_BOM_SEL -
Data type: CPSC_BOM_SEL_TYPEOptional: Yes
Call by Reference: Yes
I_CPSC_ITM_SEL -
Data type: CPSC_ITM_SEL_TYPEOptional: Yes
Call by Reference: Yes
I_CPSC_SUI_SEL -
Data type: CPSC_SUI_SEL_TYPEOptional: Yes
Call by Reference: Yes
I_CPSC_PRT_SEL -
Data type: CPSC_PRT_SEL_TYPEOptional: Yes
Call by Reference: Yes
I_CPSC_PAC_SEL -
Data type: CPSC_PAC_SEL_TYPEOptional: Yes
Call by Reference: Yes
I_CPSC_CHA_SEL -
Data type: CPSC_CHA_SEL_TYPEOptional: Yes
Call by Reference: Yes
I_CPSC_MST_SEL -
Data type: CPSC_MST_SEL_TYPEOptional: Yes
Call by Reference: Yes
I_CPSC_ODP_SEL -
Data type: CPSC_ODP_SEL_TYPEOptional: Yes
Call by Reference: Yes
I_CPSC_CLA_SEL - Classification Selection Criteria
Data type: CPSC_CLA_SEL_TYPEOptional: Yes
Call by Reference: Yes
I_PROFILE - Profile
Data type: T410-PROFIDNETZOptional: Yes
Call by Reference: No ( called with pass by value option)
I_CPSC_ECN_SEL -
Data type: CPSC_ECN_SEL_TYPEOptional: Yes
Call by Reference: Yes
I_SEL_OPR_IDENT -
Data type: CPSC_SEL_OPR_TAB_TYPEOptional: Yes
Call by Reference: Yes
I_DATE_FROM -
Data type: SY-DATUMDefault: DATE-MIN_GRG
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_DATE_TO -
Data type: SY-DATUMDefault: DATE-MAX_GRG
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_FLG_OPR_SET_LOCK -
Data type: OPR_CTRL_DATA-FLG_LOCKDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_MESSAGE_HANDLER - Message Collector To Be Opened
Data type: CDefault: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_SAVE_PROTOCOLL -
Data type: CDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_WORK_AREA - Working Environment
Data type: T410-WORK_AREAOptional: Yes
Call by Reference: No ( called with pass by value option)
I_CLASSES_IN_WORKAREA -
Data type: CLASSES_IN_WORKAREAOptional: Yes
Call by Reference: No ( called with pass by value option)
I_CPSC_MTK_SEL - Material Selection Criteria
Data type: CPSC_MTK_SEL_TYPEOptional: Yes
Call by Reference: Yes
I_CPSC_COM_SEL -
Data type: CPSC_COM_SEL_TYPEOptional: Yes
Call by Reference: Yes
I_CPSC_TSK_SEL -
Data type: CPSC_TSK_SEL_TYPEOptional: Yes
Call by Reference: Yes
I_CPSC_OPR_SEL -
Data type: CPSC_OPR_SEL_TYPEOptional: Yes
Call by Reference: Yes
I_CPSC_SUO_SEL -
Data type: CPSC_SUO_SEL_TYPEOptional: Yes
Call by Reference: Yes
EXPORTING Parameters details for CP_CC_S_LOAD_COMPLEX_BY_ITM
E_ITM_IDENT -
Data type: CSCL_ITM_ID_XT_TB_TYPEOptional: No
Call by Reference: Yes
E_DATE_TO -
Data type: SY-DATUMOptional: No
Call by Reference: Yes
E_FLG_ECM_EVALUATION -
Data type: COptional: No
Call by Reference: Yes
E_BOM_LOCK -
Data type: CSCL_BOM_LOCK_TB_TYPEOptional: No
Call by Reference: Yes
E_ITM_LOCK -
Data type: CSCL_ITM_LOCK_TB_TYPEOptional: No
Call by Reference: Yes
E_TSK_LOCK -
Data type: CPCL_TSK_LOCK_TAB_TYPEOptional: No
Call by Reference: Yes
E_SEQ_LOCK -
Data type: CPCL_SEQ_LOCK_TAB_TYPEOptional: No
Call by Reference: Yes
E_OPR_LOCK -
Data type: CPCL_OPR_LOCK_TAB_TYPEOptional: No
Call by Reference: Yes
E_WORKAREA -
Data type: T410Optional: No
Call by Reference: Yes
E_PROFILE -
Data type: TCA41Optional: No
Call by Reference: Yes
E_DATE_FROM -
Data type: SY-DATUMOptional: No
Call by Reference: Yes
EXCEPTIONS details
WORKAREA_NOT_FOUND -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
CLASS_WRONG_TYPE -
Data type:Optional: No
Call by Reference: Yes
WORKAREA_WRONG_TYPE -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
CLASS_IN_WORKAREA_INCONSISTENT -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
WORKAREA_NOT_SPECIFIED -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
ITM_NOT_FOUND -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
NO_SELECTION_CRITERIA -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
INVALID_SELECTION_PERIOD -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
KEY_DATE_REQUIRED_FOR_ECM -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for CP_CC_S_LOAD_COMPLEX_BY_ITM 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_class | TYPE T410-CLASS, " | |||
| lv_e_itm_ident | TYPE CSCL_ITM_ID_XT_TB_TYPE, " | |||
| lv_workarea_not_found | TYPE CSCL_ITM_ID_XT_TB_TYPE, " | |||
| lv_e_date_to | TYPE SY-DATUM, " | |||
| lv_i_cpsc_mbm_sel | TYPE CPSC_MBM_SEL_TYPE, " | |||
| lv_i_cpsc_bom_sel | TYPE CPSC_BOM_SEL_TYPE, " | |||
| lv_e_flg_ecm_evaluation | TYPE C, " | |||
| lv_i_cpsc_itm_sel | TYPE CPSC_ITM_SEL_TYPE, " | |||
| lv_i_cpsc_sui_sel | TYPE CPSC_SUI_SEL_TYPE, " | |||
| lv_i_cpsc_prt_sel | TYPE CPSC_PRT_SEL_TYPE, " | |||
| lv_i_cpsc_pac_sel | TYPE CPSC_PAC_SEL_TYPE, " | |||
| lv_i_cpsc_cha_sel | TYPE CPSC_CHA_SEL_TYPE, " | |||
| lv_i_cpsc_mst_sel | TYPE CPSC_MST_SEL_TYPE, " | |||
| lv_i_cpsc_odp_sel | TYPE CPSC_ODP_SEL_TYPE, " | |||
| lv_i_cpsc_cla_sel | TYPE CPSC_CLA_SEL_TYPE, " | |||
| lv_i_profile | TYPE T410-PROFIDNETZ, " | |||
| lv_e_bom_lock | TYPE CSCL_BOM_LOCK_TB_TYPE, " | |||
| lv_class_wrong_type | TYPE CSCL_BOM_LOCK_TB_TYPE, " | |||
| lv_i_cpsc_ecn_sel | TYPE CPSC_ECN_SEL_TYPE, " | |||
| lv_i_sel_opr_ident | TYPE CPSC_SEL_OPR_TAB_TYPE, " | |||
| lv_i_date_from | TYPE SY-DATUM, " DATE-MIN_GRG | |||
| lv_i_date_to | TYPE SY-DATUM, " DATE-MAX_GRG | |||
| lv_i_flg_opr_set_lock | TYPE OPR_CTRL_DATA-FLG_LOCK, " SPACE | |||
| lv_i_message_handler | TYPE C, " 'X' | |||
| lv_i_save_protocoll | TYPE C, " SPACE | |||
| lv_e_itm_lock | TYPE CSCL_ITM_LOCK_TB_TYPE, " | |||
| lv_i_work_area | TYPE T410-WORK_AREA, " | |||
| lv_workarea_wrong_type | TYPE T410, " | |||
| lv_e_tsk_lock | TYPE CPCL_TSK_LOCK_TAB_TYPE, " | |||
| lv_i_classes_in_workarea | TYPE CLASSES_IN_WORKAREA, " | |||
| lv_class_in_workarea_inconsistent | TYPE CLASSES_IN_WORKAREA, " | |||
| lv_e_seq_lock | TYPE CPCL_SEQ_LOCK_TAB_TYPE, " | |||
| lv_i_cpsc_mtk_sel | TYPE CPSC_MTK_SEL_TYPE, " | |||
| lv_workarea_not_specified | TYPE CPSC_MTK_SEL_TYPE, " | |||
| lv_e_opr_lock | TYPE CPCL_OPR_LOCK_TAB_TYPE, " | |||
| lv_itm_not_found | TYPE CPCL_OPR_LOCK_TAB_TYPE, " | |||
| lv_i_cpsc_com_sel | TYPE CPSC_COM_SEL_TYPE, " | |||
| lv_e_workarea | TYPE T410, " | |||
| lv_i_cpsc_tsk_sel | TYPE CPSC_TSK_SEL_TYPE, " | |||
| lv_no_selection_criteria | TYPE CPSC_TSK_SEL_TYPE, " | |||
| lv_e_profile | TYPE TCA41, " | |||
| lv_i_cpsc_opr_sel | TYPE CPSC_OPR_SEL_TYPE, " | |||
| lv_invalid_selection_period | TYPE CPSC_OPR_SEL_TYPE, " | |||
| lv_e_date_from | TYPE SY-DATUM, " | |||
| lv_i_cpsc_suo_sel | TYPE CPSC_SUO_SEL_TYPE, " | |||
| lv_key_date_required_for_ecm | TYPE CPSC_SUO_SEL_TYPE. " |
|   CALL FUNCTION 'CP_CC_S_LOAD_COMPLEX_BY_ITM' "NOTRANSL: Komplexes Laden von Objekten über Stücklistenpositionen |
| EXPORTING | ||
| I_CLASS | = lv_i_class | |
| I_CPSC_MBM_SEL | = lv_i_cpsc_mbm_sel | |
| I_CPSC_BOM_SEL | = lv_i_cpsc_bom_sel | |
| I_CPSC_ITM_SEL | = lv_i_cpsc_itm_sel | |
| I_CPSC_SUI_SEL | = lv_i_cpsc_sui_sel | |
| I_CPSC_PRT_SEL | = lv_i_cpsc_prt_sel | |
| I_CPSC_PAC_SEL | = lv_i_cpsc_pac_sel | |
| I_CPSC_CHA_SEL | = lv_i_cpsc_cha_sel | |
| I_CPSC_MST_SEL | = lv_i_cpsc_mst_sel | |
| I_CPSC_ODP_SEL | = lv_i_cpsc_odp_sel | |
| I_CPSC_CLA_SEL | = lv_i_cpsc_cla_sel | |
| I_PROFILE | = lv_i_profile | |
| I_CPSC_ECN_SEL | = lv_i_cpsc_ecn_sel | |
| I_SEL_OPR_IDENT | = lv_i_sel_opr_ident | |
| I_DATE_FROM | = lv_i_date_from | |
| I_DATE_TO | = lv_i_date_to | |
| I_FLG_OPR_SET_LOCK | = lv_i_flg_opr_set_lock | |
| I_MESSAGE_HANDLER | = lv_i_message_handler | |
| I_SAVE_PROTOCOLL | = lv_i_save_protocoll | |
| I_WORK_AREA | = lv_i_work_area | |
| I_CLASSES_IN_WORKAREA | = lv_i_classes_in_workarea | |
| I_CPSC_MTK_SEL | = lv_i_cpsc_mtk_sel | |
| I_CPSC_COM_SEL | = lv_i_cpsc_com_sel | |
| I_CPSC_TSK_SEL | = lv_i_cpsc_tsk_sel | |
| I_CPSC_OPR_SEL | = lv_i_cpsc_opr_sel | |
| I_CPSC_SUO_SEL | = lv_i_cpsc_suo_sel | |
| IMPORTING | ||
| E_ITM_IDENT | = lv_e_itm_ident | |
| E_DATE_TO | = lv_e_date_to | |
| E_FLG_ECM_EVALUATION | = lv_e_flg_ecm_evaluation | |
| E_BOM_LOCK | = lv_e_bom_lock | |
| E_ITM_LOCK | = lv_e_itm_lock | |
| E_TSK_LOCK | = lv_e_tsk_lock | |
| E_SEQ_LOCK | = lv_e_seq_lock | |
| E_OPR_LOCK | = lv_e_opr_lock | |
| E_WORKAREA | = lv_e_workarea | |
| E_PROFILE | = lv_e_profile | |
| E_DATE_FROM | = lv_e_date_from | |
| EXCEPTIONS | ||
| WORKAREA_NOT_FOUND = 1 | ||
| CLASS_WRONG_TYPE = 2 | ||
| WORKAREA_WRONG_TYPE = 3 | ||
| CLASS_IN_WORKAREA_INCONSISTENT = 4 | ||
| WORKAREA_NOT_SPECIFIED = 5 | ||
| ITM_NOT_FOUND = 6 | ||
| NO_SELECTION_CRITERIA = 7 | ||
| INVALID_SELECTION_PERIOD = 8 | ||
| KEY_DATE_REQUIRED_FOR_ECM = 9 | ||
| . " CP_CC_S_LOAD_COMPLEX_BY_ITM | ||
ABAP code using 7.40 inline data declarations to call FM CP_CC_S_LOAD_COMPLEX_BY_ITM
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 CLASS FROM T410 INTO @DATA(ld_i_class). | ||||
| "SELECT single DATUM FROM SY INTO @DATA(ld_e_date_to). | ||||
| "SELECT single PROFIDNETZ FROM T410 INTO @DATA(ld_i_profile). | ||||
| "SELECT single DATUM FROM SY INTO @DATA(ld_i_date_from). | ||||
| DATA(ld_i_date_from) | = DATE-MIN_GRG. | |||
| "SELECT single DATUM FROM SY INTO @DATA(ld_i_date_to). | ||||
| DATA(ld_i_date_to) | = DATE-MAX_GRG. | |||
| "SELECT single FLG_LOCK FROM OPR_CTRL_DATA INTO @DATA(ld_i_flg_opr_set_lock). | ||||
| DATA(ld_i_flg_opr_set_lock) | = ' '. | |||
| DATA(ld_i_message_handler) | = 'X'. | |||
| DATA(ld_i_save_protocoll) | = ' '. | |||
| "SELECT single WORK_AREA FROM T410 INTO @DATA(ld_i_work_area). | ||||
| "SELECT single DATUM FROM SY INTO @DATA(ld_e_date_from). | ||||
Search for further information about these or an SAP related objects