SAP CP_CC_S_PROVIDE_ITM_BY_ROOT Function Module for NOTRANSL: Bereitstellung von Stücklistenpositionen der ersten Stufe in der









CP_CC_S_PROVIDE_ITM_BY_ROOT is a standard cp cc s provide itm by root 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 Stücklistenpositionen der ersten Stufe in der 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 itm by root FM, simply by entering the name CP_CC_S_PROVIDE_ITM_BY_ROOT 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_ITM_BY_ROOT 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_ITM_BY_ROOT'"NOTRANSL: Bereitstellung von Stücklistenpositionen der ersten Stufe in der
EXPORTING
I_DATE_FROM = "
* I_REQUIRED_QUANTITY_ROOT = "
* I_IDENT_ROOT = "
* I_STVKN_ROOT = "
* I_FILTER_EXPRESSION = "Filter Criteria
* I_VERID = "Production Version
I_DATE_TO = "
I_APPLICATION = "
I_MATERIAL_ROOT = "
I_PLANT_ROOT = "
* I_USAGE_ROOT = "
* I_ALTERNATIVE_ROOT = "
* I_SALES_ORDER_ROOT = "
* I_SALES_ORDER_ITEM_ROOT = "

TABLES
E_ITM_TREE_CLASS_DATA = "
.



IMPORTING Parameters details for CP_CC_S_PROVIDE_ITM_BY_ROOT

I_DATE_FROM -

Data type: ITM_TREE_CLASS_DATA-DATUV
Optional: No
Call by Reference: No ( called with pass by value option)

I_REQUIRED_QUANTITY_ROOT -

Data type: ITM_TREE_CLASS_DATA-MENGE
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_IDENT_ROOT -

Data type: ITM_TREE_CLASS_DATA-IDENT
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_STVKN_ROOT -

Data type: ITM_TREE_CLASS_DATA-STVKN
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_FILTER_EXPRESSION - Filter Criteria

Data type: RSDS_TRANGE
Optional: Yes
Call by Reference: Yes

I_VERID - Production Version

Data type: MKAL-VERID
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_DATE_TO -

Data type: ITM_TREE_CLASS_DATA-DATUB
Optional: No
Call by Reference: No ( called with pass by value option)

I_APPLICATION -

Data type: TC04-CAPID
Optional: No
Call by Reference: No ( called with pass by value option)

I_MATERIAL_ROOT -

Data type: MBM_CLASS_DATA-MATNR
Optional: No
Call by Reference: No ( called with pass by value option)

I_PLANT_ROOT -

Data type: MBM_CLASS_DATA-WERKS
Optional: No
Call by Reference: No ( called with pass by value option)

I_USAGE_ROOT -

Data type: MBM_CLASS_DATA-STLAN
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_ALTERNATIVE_ROOT -

Data type: MBM_CLASS_DATA-STLAL
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_SALES_ORDER_ROOT -

Data type: KBM_CLASS_DATA-VBELN
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_SALES_ORDER_ITEM_ROOT -

Data type: KBM_CLASS_DATA-VBPOS
Optional: Yes
Call by Reference: No ( called with pass by value option)

TABLES Parameters details for CP_CC_S_PROVIDE_ITM_BY_ROOT

E_ITM_TREE_CLASS_DATA -

Data type: ITM_TREE_CLASS_DATA
Optional: No
Call by Reference: No ( called with pass by value option)

Copy and paste ABAP code example for CP_CC_S_PROVIDE_ITM_BY_ROOT 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_date_from  TYPE ITM_TREE_CLASS_DATA-DATUV, "   
lt_e_itm_tree_class_data  TYPE STANDARD TABLE OF ITM_TREE_CLASS_DATA, "   
lv_i_required_quantity_root  TYPE ITM_TREE_CLASS_DATA-MENGE, "   
lv_i_ident_root  TYPE ITM_TREE_CLASS_DATA-IDENT, "   
lv_i_stvkn_root  TYPE ITM_TREE_CLASS_DATA-STVKN, "   
lv_i_filter_expression  TYPE RSDS_TRANGE, "   
lv_i_verid  TYPE MKAL-VERID, "   
lv_i_date_to  TYPE ITM_TREE_CLASS_DATA-DATUB, "   
lv_i_application  TYPE TC04-CAPID, "   
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. "   

  CALL FUNCTION 'CP_CC_S_PROVIDE_ITM_BY_ROOT'  "NOTRANSL: Bereitstellung von Stücklistenpositionen der ersten Stufe in der
    EXPORTING
         I_DATE_FROM = lv_i_date_from
         I_REQUIRED_QUANTITY_ROOT = lv_i_required_quantity_root
         I_IDENT_ROOT = lv_i_ident_root
         I_STVKN_ROOT = lv_i_stvkn_root
         I_FILTER_EXPRESSION = lv_i_filter_expression
         I_VERID = lv_i_verid
         I_DATE_TO = lv_i_date_to
         I_APPLICATION = lv_i_application
         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
    TABLES
         E_ITM_TREE_CLASS_DATA = lt_e_itm_tree_class_data
. " CP_CC_S_PROVIDE_ITM_BY_ROOT




ABAP code using 7.40 inline data declarations to call FM CP_CC_S_PROVIDE_ITM_BY_ROOT

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 DATUV FROM ITM_TREE_CLASS_DATA INTO @DATA(ld_i_date_from).
 
 
"SELECT single MENGE FROM ITM_TREE_CLASS_DATA INTO @DATA(ld_i_required_quantity_root).
 
"SELECT single IDENT FROM ITM_TREE_CLASS_DATA INTO @DATA(ld_i_ident_root).
 
"SELECT single STVKN FROM ITM_TREE_CLASS_DATA INTO @DATA(ld_i_stvkn_root).
 
 
"SELECT single VERID FROM MKAL INTO @DATA(ld_i_verid).
 
"SELECT single DATUB FROM ITM_TREE_CLASS_DATA INTO @DATA(ld_i_date_to).
 
"SELECT single CAPID FROM TC04 INTO @DATA(ld_i_application).
 
"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).
 


Search for further information about these or an SAP related objects



Comments on this SAP object

What made you want to lookup this SAP object? Please tell us what you were looking for and anything you would like to be included on this page!