SAP CBRC_PRO_CONS_PROD_SPLIT Function Module for NOTRANSL: Aufteilung in produzierte/konsumierte Mengen
CBRC_PRO_CONS_PROD_SPLIT is a standard cbrc pro cons prod split 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: Aufteilung in produzierte/konsumierte Mengen 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 cbrc pro cons prod split FM, simply by entering the name CBRC_PRO_CONS_PROD_SPLIT into the relevant SAP transaction such as SE37 or SE38.
Function Group: CBRC_PRO
Program Name: SAPLCBRC_PRO
Main Program: SAPLCBRC_PRO
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function CBRC_PRO_CONS_PROD_SPLIT 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 'CBRC_PRO_CONS_PROD_SPLIT'"NOTRANSL: Aufteilung in produzierte/konsumierte Mengen.
EXPORTING
I_REG = "
* I_SCEN = "
* I_SCENCAT = "
I_DET = "EHS: Data Determination Modules for Regulation/Scenario
I_DETDOCTYPE = "EHS: Modules for Regulation/Scenario/Scenario Category
I_CHK_AMOUNT_TAB = "Table Type for CCRCS_CHK_RESULT
* I_PRO_COMP_TAB = "
IMPORTING
E_ERROR_TAB = "Table Type Application Log
E_FLG_ERROR = "Truth Value
E_CHK_AMOUNT_TAB = "Table Type for CCRCS_CHK_RESULT
IMPORTING Parameters details for CBRC_PRO_CONS_PROD_SPLIT
I_REG -
Data type: ESESLSTIDOptional: No
Call by Reference: Yes
I_SCEN -
Data type: CCRCE_SCENOptional: Yes
Call by Reference: Yes
I_SCENCAT -
Data type: CCRCE_DOCTYPEOptional: Yes
Call by Reference: Yes
I_DET - EHS: Data Determination Modules for Regulation/Scenario
Data type: CCRCC_DETOptional: No
Call by Reference: Yes
I_DETDOCTYPE - EHS: Modules for Regulation/Scenario/Scenario Category
Data type: CCRCC_DETDOCTYPEOptional: No
Call by Reference: Yes
I_CHK_AMOUNT_TAB - Table Type for CCRCS_CHK_RESULT
Data type: CCRCTT_CHK_RESULTOptional: No
Call by Reference: Yes
I_PRO_COMP_TAB -
Data type: COBAI_T_COMPONENTOptional: Yes
Call by Reference: Yes
EXPORTING Parameters details for CBRC_PRO_CONS_PROD_SPLIT
E_ERROR_TAB - Table Type Application Log
Data type: CCRCTT_MSGOptional: No
Call by Reference: Yes
E_FLG_ERROR - Truth Value
Data type: ESEBOOLEOptional: No
Call by Reference: Yes
E_CHK_AMOUNT_TAB - Table Type for CCRCS_CHK_RESULT
Data type: CCRCTT_CHK_RESULTOptional: No
Call by Reference: Yes
Copy and paste ABAP code example for CBRC_PRO_CONS_PROD_SPLIT 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_reg | TYPE ESESLSTID, " | |||
| lv_e_error_tab | TYPE CCRCTT_MSG, " | |||
| lv_i_scen | TYPE CCRCE_SCEN, " | |||
| lv_e_flg_error | TYPE ESEBOOLE, " | |||
| lv_i_scencat | TYPE CCRCE_DOCTYPE, " | |||
| lv_e_chk_amount_tab | TYPE CCRCTT_CHK_RESULT, " | |||
| lv_i_det | TYPE CCRCC_DET, " | |||
| lv_i_detdoctype | TYPE CCRCC_DETDOCTYPE, " | |||
| lv_i_chk_amount_tab | TYPE CCRCTT_CHK_RESULT, " | |||
| lv_i_pro_comp_tab | TYPE COBAI_T_COMPONENT. " |
|   CALL FUNCTION 'CBRC_PRO_CONS_PROD_SPLIT' "NOTRANSL: Aufteilung in produzierte/konsumierte Mengen |
| EXPORTING | ||
| I_REG | = lv_i_reg | |
| I_SCEN | = lv_i_scen | |
| I_SCENCAT | = lv_i_scencat | |
| I_DET | = lv_i_det | |
| I_DETDOCTYPE | = lv_i_detdoctype | |
| I_CHK_AMOUNT_TAB | = lv_i_chk_amount_tab | |
| I_PRO_COMP_TAB | = lv_i_pro_comp_tab | |
| IMPORTING | ||
| E_ERROR_TAB | = lv_e_error_tab | |
| E_FLG_ERROR | = lv_e_flg_error | |
| E_CHK_AMOUNT_TAB | = lv_e_chk_amount_tab | |
| . " CBRC_PRO_CONS_PROD_SPLIT | ||
ABAP code using 7.40 inline data declarations to call FM CBRC_PRO_CONS_PROD_SPLIT
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.Search for further information about these or an SAP related objects