SAP CP_CC_S_PROVIDE_COM_BY_PATH Function Module for NOTRANSL: Bereitstellung von Komponenten in der Auflösung
CP_CC_S_PROVIDE_COM_BY_PATH is a standard cp cc s provide com by path 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: Bereitstellung von Komponenten in der Auflösung 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 provide com by path FM, simply by entering the name CP_CC_S_PROVIDE_COM_BY_PATH 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_PROVIDE_COM_BY_PATH 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_PROVIDE_COM_BY_PATH'"NOTRANSL: Bereitstellung von Komponenten in der Auflösung.
EXPORTING
I_KEY_DATE_S = "
* I_PATH = ' ' "
* I_FLG_PATH_EXPAND_TOTALLY = ' ' "
* I_PLNTY = "
* I_PLNNR = "
* I_PLNAL = "
* I_PLNFL = "
* I_IDENT_OPR = "
* I_IDENT_REF_OPR = "
* I_VORNR_OPR = "
* I_IDENT_ITM = "
I_APPLICATION = "
* I_FLG_PROVIDE_INV = ' ' "
* I_FILTER_EXPRESSION = "Filter Criteria
* I_VERID = "Production Version
I_MATERIAL_ROOT = "
I_PLANT_ROOT = "
I_USAGE_ROOT = "
I_ALTERNATIVE_ROOT = "
I_SALES_ORDER_ROOT = "
I_SALES_ORDER_ITEM_ROOT = "
* I_REQUIRED_QUANTITY_ROOT = "
IMPORTING
E_COM_INV = "
TABLES
E_COM_CLASS_DATA = "
* E_ITM_TREE_CLASS_DATA = "
IMPORTING Parameters details for CP_CC_S_PROVIDE_COM_BY_PATH
I_KEY_DATE_S -
Data type: SY-DATUMOptional: No
Call by Reference: No ( called with pass by value option)
I_PATH -
Data type: STPF-KANTE_VDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_FLG_PATH_EXPAND_TOTALLY -
Data type: CDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_PLNTY -
Data type: OPR_CLASS_DATA-PLNTYOptional: Yes
Call by Reference: No ( called with pass by value option)
I_PLNNR -
Data type: OPR_CLASS_DATA-PLNNROptional: Yes
Call by Reference: No ( called with pass by value option)
I_PLNAL -
Data type: OPR_CLASS_DATA-PLNALOptional: Yes
Call by Reference: No ( called with pass by value option)
I_PLNFL -
Data type: OPR_CLASS_DATA-PLNFLOptional: Yes
Call by Reference: No ( called with pass by value option)
I_IDENT_OPR -
Data type: OPR_CLASS_DATA-IDENTOptional: Yes
Call by Reference: No ( called with pass by value option)
I_IDENT_REF_OPR -
Data type: OPR_CLASS_DATA-IDENT_REFOptional: Yes
Call by Reference: No ( called with pass by value option)
I_VORNR_OPR -
Data type: OPR_CLASS_DATA-VORNROptional: Yes
Call by Reference: No ( called with pass by value option)
I_IDENT_ITM -
Data type: ITM_CLASS_DATA-IDENTOptional: Yes
Call by Reference: No ( called with pass by value option)
I_APPLICATION -
Data type: TC04-CAPIDOptional: No
Call by Reference: No ( called with pass by value option)
I_FLG_PROVIDE_INV -
Data type: CDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_FILTER_EXPRESSION - Filter Criteria
Data type: RSDS_TRANGEOptional: Yes
Call by Reference: Yes
I_VERID - Production Version
Data type: MKAL-VERIDOptional: Yes
Call by Reference: No ( called with pass by value option)
I_MATERIAL_ROOT -
Data type: MBM_CLASS_DATA-MATNROptional: No
Call by Reference: No ( called with pass by value option)
I_PLANT_ROOT -
Data type: MBM_CLASS_DATA-WERKSOptional: No
Call by Reference: No ( called with pass by value option)
I_USAGE_ROOT -
Data type: MBM_CLASS_DATA-STLANOptional: No
Call by Reference: No ( called with pass by value option)
I_ALTERNATIVE_ROOT -
Data type: MBM_CLASS_DATA-STLALOptional: No
Call by Reference: No ( called with pass by value option)
I_SALES_ORDER_ROOT -
Data type: KBM_CLASS_DATA-VBELNOptional: No
Call by Reference: No ( called with pass by value option)
I_SALES_ORDER_ITEM_ROOT -
Data type: KBM_CLASS_DATA-VBPOSOptional: No
Call by Reference: No ( called with pass by value option)
I_REQUIRED_QUANTITY_ROOT -
Data type: ITM_CLASS_DATA-MENGEOptional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for CP_CC_S_PROVIDE_COM_BY_PATH
E_COM_INV -
Data type: CMCL_COM_VERS_TAB_TYPEOptional: No
Call by Reference: Yes
TABLES Parameters details for CP_CC_S_PROVIDE_COM_BY_PATH
E_COM_CLASS_DATA -
Data type: COM_CLASS_DATAOptional: No
Call by Reference: No ( called with pass by value option)
E_ITM_TREE_CLASS_DATA -
Data type: ITM_TREE_CLASS_DATAOptional: Yes
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for CP_CC_S_PROVIDE_COM_BY_PATH 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_e_com_inv | TYPE CMCL_COM_VERS_TAB_TYPE, " | |||
| lv_i_key_date_s | TYPE SY-DATUM, " | |||
| lt_e_com_class_data | TYPE STANDARD TABLE OF COM_CLASS_DATA, " | |||
| lv_i_path | TYPE STPF-KANTE_V, " SPACE | |||
| lv_i_flg_path_expand_totally | TYPE C, " SPACE | |||
| lv_i_plnty | TYPE OPR_CLASS_DATA-PLNTY, " | |||
| lv_i_plnnr | TYPE OPR_CLASS_DATA-PLNNR, " | |||
| lv_i_plnal | TYPE OPR_CLASS_DATA-PLNAL, " | |||
| lv_i_plnfl | TYPE OPR_CLASS_DATA-PLNFL, " | |||
| lv_i_ident_opr | TYPE OPR_CLASS_DATA-IDENT, " | |||
| lv_i_ident_ref_opr | TYPE OPR_CLASS_DATA-IDENT_REF, " | |||
| lv_i_vornr_opr | TYPE OPR_CLASS_DATA-VORNR, " | |||
| lv_i_ident_itm | TYPE ITM_CLASS_DATA-IDENT, " | |||
| lv_i_application | TYPE TC04-CAPID, " | |||
| lt_e_itm_tree_class_data | TYPE STANDARD TABLE OF ITM_TREE_CLASS_DATA, " | |||
| lv_i_flg_provide_inv | TYPE C, " SPACE | |||
| lv_i_filter_expression | TYPE RSDS_TRANGE, " | |||
| lv_i_verid | TYPE MKAL-VERID, " | |||
| lv_i_material_root | TYPE MBM_CLASS_DATA-MATNR, " | |||
| lv_i_plant_root | TYPE MBM_CLASS_DATA-WERKS, " | |||
| lv_i_usage_root | TYPE MBM_CLASS_DATA-STLAN, " | |||
| lv_i_alternative_root | TYPE MBM_CLASS_DATA-STLAL, " | |||
| lv_i_sales_order_root | TYPE KBM_CLASS_DATA-VBELN, " | |||
| lv_i_sales_order_item_root | TYPE KBM_CLASS_DATA-VBPOS, " | |||
| lv_i_required_quantity_root | TYPE ITM_CLASS_DATA-MENGE. " |
|   CALL FUNCTION 'CP_CC_S_PROVIDE_COM_BY_PATH' "NOTRANSL: Bereitstellung von Komponenten in der Auflösung |
| EXPORTING | ||
| I_KEY_DATE_S | = lv_i_key_date_s | |
| I_PATH | = lv_i_path | |
| I_FLG_PATH_EXPAND_TOTALLY | = lv_i_flg_path_expand_totally | |
| I_PLNTY | = lv_i_plnty | |
| I_PLNNR | = lv_i_plnnr | |
| I_PLNAL | = lv_i_plnal | |
| I_PLNFL | = lv_i_plnfl | |
| I_IDENT_OPR | = lv_i_ident_opr | |
| I_IDENT_REF_OPR | = lv_i_ident_ref_opr | |
| I_VORNR_OPR | = lv_i_vornr_opr | |
| I_IDENT_ITM | = lv_i_ident_itm | |
| I_APPLICATION | = lv_i_application | |
| I_FLG_PROVIDE_INV | = lv_i_flg_provide_inv | |
| I_FILTER_EXPRESSION | = lv_i_filter_expression | |
| I_VERID | = lv_i_verid | |
| I_MATERIAL_ROOT | = lv_i_material_root | |
| I_PLANT_ROOT | = lv_i_plant_root | |
| I_USAGE_ROOT | = lv_i_usage_root | |
| I_ALTERNATIVE_ROOT | = lv_i_alternative_root | |
| I_SALES_ORDER_ROOT | = lv_i_sales_order_root | |
| I_SALES_ORDER_ITEM_ROOT | = lv_i_sales_order_item_root | |
| I_REQUIRED_QUANTITY_ROOT | = lv_i_required_quantity_root | |
| IMPORTING | ||
| E_COM_INV | = lv_e_com_inv | |
| TABLES | ||
| E_COM_CLASS_DATA | = lt_e_com_class_data | |
| E_ITM_TREE_CLASS_DATA | = lt_e_itm_tree_class_data | |
| . " CP_CC_S_PROVIDE_COM_BY_PATH | ||
ABAP code using 7.40 inline data declarations to call FM CP_CC_S_PROVIDE_COM_BY_PATH
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 DATUM FROM SY INTO @DATA(ld_i_key_date_s). | ||||
| "SELECT single KANTE_V FROM STPF INTO @DATA(ld_i_path). | ||||
| DATA(ld_i_path) | = ' '. | |||
| DATA(ld_i_flg_path_expand_totally) | = ' '. | |||
| "SELECT single PLNTY FROM OPR_CLASS_DATA INTO @DATA(ld_i_plnty). | ||||
| "SELECT single PLNNR FROM OPR_CLASS_DATA INTO @DATA(ld_i_plnnr). | ||||
| "SELECT single PLNAL FROM OPR_CLASS_DATA INTO @DATA(ld_i_plnal). | ||||
| "SELECT single PLNFL FROM OPR_CLASS_DATA INTO @DATA(ld_i_plnfl). | ||||
| "SELECT single IDENT FROM OPR_CLASS_DATA INTO @DATA(ld_i_ident_opr). | ||||
| "SELECT single IDENT_REF FROM OPR_CLASS_DATA INTO @DATA(ld_i_ident_ref_opr). | ||||
| "SELECT single VORNR FROM OPR_CLASS_DATA INTO @DATA(ld_i_vornr_opr). | ||||
| "SELECT single IDENT FROM ITM_CLASS_DATA INTO @DATA(ld_i_ident_itm). | ||||
| "SELECT single CAPID FROM TC04 INTO @DATA(ld_i_application). | ||||
| DATA(ld_i_flg_provide_inv) | = ' '. | |||
| "SELECT single VERID FROM MKAL INTO @DATA(ld_i_verid). | ||||
| "SELECT single MATNR FROM MBM_CLASS_DATA INTO @DATA(ld_i_material_root). | ||||
| "SELECT single WERKS FROM MBM_CLASS_DATA INTO @DATA(ld_i_plant_root). | ||||
| "SELECT single STLAN FROM MBM_CLASS_DATA INTO @DATA(ld_i_usage_root). | ||||
| "SELECT single STLAL FROM MBM_CLASS_DATA INTO @DATA(ld_i_alternative_root). | ||||
| "SELECT single VBELN FROM KBM_CLASS_DATA INTO @DATA(ld_i_sales_order_root). | ||||
| "SELECT single VBPOS FROM KBM_CLASS_DATA INTO @DATA(ld_i_sales_order_item_root). | ||||
| "SELECT single MENGE FROM ITM_CLASS_DATA INTO @DATA(ld_i_required_quantity_root). | ||||
Search for further information about these or an SAP related objects