SAP CBRC_TSC_LIB_EXAMPLE_PROC Function Module for Customizing: Trigger Example Process After Tracking
CBRC_TSC_LIB_EXAMPLE_PROC is a standard cbrc tsc lib example proc SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Customizing: Trigger Example Process After Tracking 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 tsc lib example proc FM, simply by entering the name CBRC_TSC_LIB_EXAMPLE_PROC into the relevant SAP transaction such as SE37 or SE38.
Function Group: CBRC_TSC
Program Name: SAPLCBRC_TSC
Main Program: SAPLCBRC_TSC
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function CBRC_TSC_LIB_EXAMPLE_PROC 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_TSC_LIB_EXAMPLE_PROC'"Customizing: Trigger Example Process After Tracking.
EXPORTING
I_REG = "Regulatory List
I_DETTYPE_FCT_TAB = "Table Type for CCRCC_DETDOCTYPE
I_MATNR_SUB_TAB = "Material-Substance Composition Table
I_ERROR_TAB = "Table Type Application Log
I_FLG_ERROR = "Error Indicator
I_FLG_REG_COMPLETE = "Last Call for Regulation
* I_PUPL_UPD_TAB = "Table Type for CCRCT_PUPL
* I_PUPL_INS_TAB = "Table Type for CCRCT_PUPL
* I_PUPL_DEL_TAB = "Table Type for CCRCT_PUPL
* I_PU_UPD_TAB = "Table Type for CCRCT_PU
* I_PU_INS_TAB = "Table Type for CCRCT_PU
I_SCEN = "Scenario
* I_PU_DEL_TAB = "Table Type for CCRCT_PU
* I_PRPL_UPD_TAB = "Table Type for CCRCT_PR
* I_PRPL_INS_TAB = "Table Type for CCRCT_PR
* I_PRPL_DEL_TAB = "Table Type for CCRCT_PR
* I_PR_UPD_TAB = "Table Type for CCRCT_PRPL
* I_PR_INS_TAB = "Table Type for CCRCT_PRPL
* I_PR_DEL_TAB = "Table Type for CCRCT_PRPL
* I_SOPL_UPD_TAB = "Table Type for CCRCT_SOPL
* I_SOPL_INS_TAB = "Table Type for CCRCT_SOPL
* I_SOPL_DEL_TAB = "Table Type for CCRCT_SOPL
I_VALFR = "Start Date of Tracking Run
* I_SO_UPD_TAB = "Table Type for CCRCT_SO
* I_SO_INS_TAB = "Table Type for CCRCT_SO
* I_SO_DEL_TAB = "Table Type for CCRCT_SO
* I_FLG_CONFIRMED = FALSE "
I_VALFR_TIME = "Start Time of Tracking Run
I_VALTO = "End Date of Tracking Run
I_VALTO_TIME = "End Time of Tracking Run
I_FLG_HIST = "History
I_FLG_DELTA = "Delta Mode
I_DET_FCT = "EHS: Data Determination Modules per Regulation/Scenario
IMPORTING
E_ERROR_TAB = "Table Type Application Log
IMPORTING Parameters details for CBRC_TSC_LIB_EXAMPLE_PROC
I_REG - Regulatory List
Data type: ESESLSTIDOptional: No
Call by Reference: Yes
I_DETTYPE_FCT_TAB - Table Type for CCRCC_DETDOCTYPE
Data type: CCRCTT_DETDOCTYPEOptional: No
Call by Reference: Yes
I_MATNR_SUB_TAB - Material-Substance Composition Table
Data type: CCRCTT_FIELDSOptional: No
Call by Reference: Yes
I_ERROR_TAB - Table Type 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 - Last Call for Regulation
Data type: ESEBOOLEOptional: No
Call by Reference: Yes
I_PUPL_UPD_TAB - Table Type for CCRCT_PUPL
Data type: CCRCTT_PUPLOptional: Yes
Call by Reference: Yes
I_PUPL_INS_TAB - Table Type for CCRCT_PUPL
Data type: CCRCTT_PUPLOptional: Yes
Call by Reference: Yes
I_PUPL_DEL_TAB - Table Type for CCRCT_PUPL
Data type: CCRCTT_PUPLOptional: Yes
Call by Reference: Yes
I_PU_UPD_TAB - Table Type for CCRCT_PU
Data type: CCRCTT_PUOptional: Yes
Call by Reference: Yes
I_PU_INS_TAB - Table Type for CCRCT_PU
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 - Table Type for CCRCT_PU
Data type: CCRCTT_PUOptional: Yes
Call by Reference: Yes
I_PRPL_UPD_TAB - Table Type for CCRCT_PR
Data type: CCRCTT_PRPLOptional: Yes
Call by Reference: Yes
I_PRPL_INS_TAB - Table Type for CCRCT_PR
Data type: CCRCTT_PRPLOptional: Yes
Call by Reference: Yes
I_PRPL_DEL_TAB - Table Type for CCRCT_PR
Data type: CCRCTT_PRPLOptional: Yes
Call by Reference: Yes
I_PR_UPD_TAB - Table Type for CCRCT_PRPL
Data type: CCRCTT_PROptional: Yes
Call by Reference: Yes
I_PR_INS_TAB - Table Type for CCRCT_PRPL
Data type: CCRCTT_PROptional: Yes
Call by Reference: Yes
I_PR_DEL_TAB - Table Type for CCRCT_PRPL
Data type: CCRCTT_PROptional: Yes
Call by Reference: Yes
I_SOPL_UPD_TAB - Table Type for CCRCT_SOPL
Data type: CCRCTT_SOPLOptional: Yes
Call by Reference: Yes
I_SOPL_INS_TAB - Table Type for CCRCT_SOPL
Data type: CCRCTT_SOPLOptional: Yes
Call by Reference: Yes
I_SOPL_DEL_TAB - Table Type for CCRCT_SOPL
Data type: CCRCTT_SOPLOptional: Yes
Call by Reference: Yes
I_VALFR - Start Date of Tracking Run
Data type: SY-DATUMOptional: No
Call by Reference: Yes
I_SO_UPD_TAB - Table Type for CCRCT_SO
Data type: CCRCTT_SOOptional: Yes
Call by Reference: Yes
I_SO_INS_TAB - Table Type for CCRCT_SO
Data type: CCRCTT_SOOptional: Yes
Call by Reference: Yes
I_SO_DEL_TAB - Table Type for CCRCT_SO
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 - Start Time of Tracking Run
Data type: CPUTMOptional: No
Call by Reference: Yes
I_VALTO - End Date of Tracking Run
Data type: SY-DATUMOptional: No
Call by Reference: Yes
I_VALTO_TIME - End Time of Tracking Run
Data type: CPUTMOptional: No
Call by Reference: Yes
I_FLG_HIST - History
Data type: ESEBOOLEOptional: No
Call by Reference: Yes
I_FLG_DELTA - Delta Mode
Data type: ESEBOOLEOptional: No
Call by Reference: Yes
I_DET_FCT - EHS: Data Determination Modules per Regulation/Scenario
Data type: CCRCC_DETOptional: No
Call by Reference: Yes
EXPORTING Parameters details for CBRC_TSC_LIB_EXAMPLE_PROC
E_ERROR_TAB - Table Type Application Log
Data type: CCRCTT_MSGOptional: No
Call by Reference: Yes
Copy and paste ABAP code example for CBRC_TSC_LIB_EXAMPLE_PROC 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_TSC_LIB_EXAMPLE_PROC' "Customizing: Trigger Example Process After Tracking |
| 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_TSC_LIB_EXAMPLE_PROC | ||
ABAP code using 7.40 inline data declarations to call FM CBRC_TSC_LIB_EXAMPLE_PROC
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