SAP CBRC_LIB_EXAMPLE_PROCESS Function Module for NOTRANSL: Customizing: Beispielprozess nach der Mengenverfolgung anstoßen
CBRC_LIB_EXAMPLE_PROCESS is a standard cbrc lib example process 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: Customizing: Beispielprozess nach der Mengenverfolgung anstoßen 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 lib example process FM, simply by entering the name CBRC_LIB_EXAMPLE_PROCESS into the relevant SAP transaction such as SE37 or SE38.
Function Group: CBRC_LIB
Program Name: SAPLCBRC_LIB
Main Program: SAPLCBRC_LIB
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function CBRC_LIB_EXAMPLE_PROCESS 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_LIB_EXAMPLE_PROCESS'"NOTRANSL: Customizing: Beispielprozess nach der Mengenverfolgung anstoßen.
EXPORTING
I_REG = "Regulatory List
I_DETTYPE_FCT_TAB = "
I_MATNR_SUB_TAB = "Material Substance Table
I_ERROR_TAB = "Message Table for Application Log
I_FLG_ERROR = "Error Indicator
I_FLG_REG_COMPLETE = "
* I_PUPL_UPD_TAB = "
* I_PUPL_INS_TAB = "
* I_PUPL_DEL_TAB = "
* I_PU_UPD_TAB = "
* I_PU_INS_TAB = "
I_SCEN = "Scenario
* I_PU_DEL_TAB = "
* I_PRPL_UPD_TAB = "
* I_PRPL_INS_TAB = "
* I_PRPL_DEL_TAB = "
* I_PR_UPD_TAB = "
* I_PR_INS_TAB = "
* I_PR_DEL_TAB = "
* I_SOPL_UPD_TAB = "
* I_SOPL_INS_TAB = "
* I_SOPL_DEL_TAB = "
I_VALFR = "Start Date of Current Tracking Period
* I_SO_UPD_TAB = "
* I_SO_INS_TAB = "
* I_SO_DEL_TAB = "
* I_FLG_CONFIRMED = FALSE "
I_VALFR_TIME = "
I_VALTO = "End Date of Current Tracking Period
I_VALTO_TIME = "
I_FLG_HIST = "
I_FLG_DELTA = "
I_DET_FCT = "
IMPORTING
E_ERROR_TAB = "Message Table for Application Log
IMPORTING Parameters details for CBRC_LIB_EXAMPLE_PROCESS
I_REG - Regulatory List
Data type: ESESLSTIDOptional: No
Call by Reference: Yes
I_DETTYPE_FCT_TAB -
Data type: CCRCTT_DETDOCTYPEOptional: No
Call by Reference: Yes
I_MATNR_SUB_TAB - Material Substance Table
Data type: CCRCTT_FIELDSOptional: No
Call by Reference: Yes
I_ERROR_TAB - Message Table for Application Log
Data type: CCRCTT_MSGOptional: No
Call by Reference: Yes
I_FLG_ERROR - Error Indicator
Data type: ESEBOOLEOptional: No
Call by Reference: Yes
I_FLG_REG_COMPLETE -
Data type: ESEBOOLEOptional: No
Call by Reference: Yes
I_PUPL_UPD_TAB -
Data type: CCRCTT_PUPLOptional: Yes
Call by Reference: Yes
I_PUPL_INS_TAB -
Data type: CCRCTT_PUPLOptional: Yes
Call by Reference: Yes
I_PUPL_DEL_TAB -
Data type: CCRCTT_PUPLOptional: Yes
Call by Reference: Yes
I_PU_UPD_TAB -
Data type: CCRCTT_PUOptional: Yes
Call by Reference: Yes
I_PU_INS_TAB -
Data type: CCRCTT_PUOptional: Yes
Call by Reference: Yes
I_SCEN - Scenario
Data type: CCRCE_SCENOptional: No
Call by Reference: Yes
I_PU_DEL_TAB -
Data type: CCRCTT_PUOptional: Yes
Call by Reference: Yes
I_PRPL_UPD_TAB -
Data type: CCRCTT_PRPLOptional: Yes
Call by Reference: Yes
I_PRPL_INS_TAB -
Data type: CCRCTT_PRPLOptional: Yes
Call by Reference: Yes
I_PRPL_DEL_TAB -
Data type: CCRCTT_PRPLOptional: Yes
Call by Reference: Yes
I_PR_UPD_TAB -
Data type: CCRCTT_PROptional: Yes
Call by Reference: Yes
I_PR_INS_TAB -
Data type: CCRCTT_PROptional: Yes
Call by Reference: Yes
I_PR_DEL_TAB -
Data type: CCRCTT_PROptional: Yes
Call by Reference: Yes
I_SOPL_UPD_TAB -
Data type: CCRCTT_SOPLOptional: Yes
Call by Reference: Yes
I_SOPL_INS_TAB -
Data type: CCRCTT_SOPLOptional: Yes
Call by Reference: Yes
I_SOPL_DEL_TAB -
Data type: CCRCTT_SOPLOptional: Yes
Call by Reference: Yes
I_VALFR - Start Date of Current Tracking Period
Data type: SY-DATUMOptional: No
Call by Reference: Yes
I_SO_UPD_TAB -
Data type: CCRCTT_SOOptional: Yes
Call by Reference: Yes
I_SO_INS_TAB -
Data type: CCRCTT_SOOptional: Yes
Call by Reference: Yes
I_SO_DEL_TAB -
Data type: CCRCTT_SOOptional: Yes
Call by Reference: Yes
I_FLG_CONFIRMED -
Data type: ESEBOOLEDefault: FALSE
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_VALFR_TIME -
Data type: CPUTMOptional: No
Call by Reference: Yes
I_VALTO - End Date of Current Tracking Period
Data type: SY-DATUMOptional: No
Call by Reference: Yes
I_VALTO_TIME -
Data type: CPUTMOptional: No
Call by Reference: Yes
I_FLG_HIST -
Data type: ESEBOOLEOptional: No
Call by Reference: Yes
I_FLG_DELTA -
Data type: ESEBOOLEOptional: No
Call by Reference: Yes
I_DET_FCT -
Data type: CCRCC_DETOptional: No
Call by Reference: Yes
EXPORTING Parameters details for CBRC_LIB_EXAMPLE_PROCESS
E_ERROR_TAB - Message Table for Application Log
Data type: CCRCTT_MSGOptional: No
Call by Reference: Yes
Copy and paste ABAP code example for CBRC_LIB_EXAMPLE_PROCESS 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_dettype_fct_tab | TYPE CCRCTT_DETDOCTYPE, " | |||
| lv_i_matnr_sub_tab | TYPE CCRCTT_FIELDS, " | |||
| lv_i_error_tab | TYPE CCRCTT_MSG, " | |||
| lv_i_flg_error | TYPE ESEBOOLE, " | |||
| lv_i_flg_reg_complete | TYPE ESEBOOLE, " | |||
| lv_i_pupl_upd_tab | TYPE CCRCTT_PUPL, " | |||
| lv_i_pupl_ins_tab | TYPE CCRCTT_PUPL, " | |||
| lv_i_pupl_del_tab | TYPE CCRCTT_PUPL, " | |||
| lv_i_pu_upd_tab | TYPE CCRCTT_PU, " | |||
| lv_i_pu_ins_tab | TYPE CCRCTT_PU, " | |||
| lv_i_scen | TYPE CCRCE_SCEN, " | |||
| lv_i_pu_del_tab | TYPE CCRCTT_PU, " | |||
| lv_i_prpl_upd_tab | TYPE CCRCTT_PRPL, " | |||
| lv_i_prpl_ins_tab | TYPE CCRCTT_PRPL, " | |||
| lv_i_prpl_del_tab | TYPE CCRCTT_PRPL, " | |||
| lv_i_pr_upd_tab | TYPE CCRCTT_PR, " | |||
| lv_i_pr_ins_tab | TYPE CCRCTT_PR, " | |||
| lv_i_pr_del_tab | TYPE CCRCTT_PR, " | |||
| lv_i_sopl_upd_tab | TYPE CCRCTT_SOPL, " | |||
| lv_i_sopl_ins_tab | TYPE CCRCTT_SOPL, " | |||
| lv_i_sopl_del_tab | TYPE CCRCTT_SOPL, " | |||
| lv_i_valfr | TYPE SY-DATUM, " | |||
| lv_i_so_upd_tab | TYPE CCRCTT_SO, " | |||
| lv_i_so_ins_tab | TYPE CCRCTT_SO, " | |||
| lv_i_so_del_tab | TYPE CCRCTT_SO, " | |||
| lv_i_flg_confirmed | TYPE ESEBOOLE, " FALSE | |||
| lv_i_valfr_time | TYPE CPUTM, " | |||
| lv_i_valto | TYPE SY-DATUM, " | |||
| lv_i_valto_time | TYPE CPUTM, " | |||
| lv_i_flg_hist | TYPE ESEBOOLE, " | |||
| lv_i_flg_delta | TYPE ESEBOOLE, " | |||
| lv_i_det_fct | TYPE CCRCC_DET. " |
|   CALL FUNCTION 'CBRC_LIB_EXAMPLE_PROCESS' "NOTRANSL: Customizing: Beispielprozess nach der Mengenverfolgung anstoßen |
| EXPORTING | ||
| I_REG | = lv_i_reg | |
| I_DETTYPE_FCT_TAB | = lv_i_dettype_fct_tab | |
| I_MATNR_SUB_TAB | = lv_i_matnr_sub_tab | |
| I_ERROR_TAB | = lv_i_error_tab | |
| I_FLG_ERROR | = lv_i_flg_error | |
| I_FLG_REG_COMPLETE | = lv_i_flg_reg_complete | |
| I_PUPL_UPD_TAB | = lv_i_pupl_upd_tab | |
| I_PUPL_INS_TAB | = lv_i_pupl_ins_tab | |
| I_PUPL_DEL_TAB | = lv_i_pupl_del_tab | |
| I_PU_UPD_TAB | = lv_i_pu_upd_tab | |
| I_PU_INS_TAB | = lv_i_pu_ins_tab | |
| I_SCEN | = lv_i_scen | |
| I_PU_DEL_TAB | = lv_i_pu_del_tab | |
| I_PRPL_UPD_TAB | = lv_i_prpl_upd_tab | |
| I_PRPL_INS_TAB | = lv_i_prpl_ins_tab | |
| I_PRPL_DEL_TAB | = lv_i_prpl_del_tab | |
| I_PR_UPD_TAB | = lv_i_pr_upd_tab | |
| I_PR_INS_TAB | = lv_i_pr_ins_tab | |
| I_PR_DEL_TAB | = lv_i_pr_del_tab | |
| I_SOPL_UPD_TAB | = lv_i_sopl_upd_tab | |
| I_SOPL_INS_TAB | = lv_i_sopl_ins_tab | |
| I_SOPL_DEL_TAB | = lv_i_sopl_del_tab | |
| I_VALFR | = lv_i_valfr | |
| I_SO_UPD_TAB | = lv_i_so_upd_tab | |
| I_SO_INS_TAB | = lv_i_so_ins_tab | |
| I_SO_DEL_TAB | = lv_i_so_del_tab | |
| I_FLG_CONFIRMED | = lv_i_flg_confirmed | |
| I_VALFR_TIME | = lv_i_valfr_time | |
| I_VALTO | = lv_i_valto | |
| I_VALTO_TIME | = lv_i_valto_time | |
| I_FLG_HIST | = lv_i_flg_hist | |
| I_FLG_DELTA | = lv_i_flg_delta | |
| I_DET_FCT | = lv_i_det_fct | |
| IMPORTING | ||
| E_ERROR_TAB | = lv_e_error_tab | |
| . " CBRC_LIB_EXAMPLE_PROCESS | ||
ABAP code using 7.40 inline data declarations to call FM CBRC_LIB_EXAMPLE_PROCESS
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_valfr). | ||||
| DATA(ld_i_flg_confirmed) | = FALSE. | |||
| "SELECT single DATUM FROM SY INTO @DATA(ld_i_valto). | ||||
Search for further information about these or an SAP related objects