SAP CBRC_LIB2_KEY_FIELDS_COLLECT Function Module for NOTRANSL: Überwachte Schlüsselfelder aufsammeln
CBRC_LIB2_KEY_FIELDS_COLLECT is a standard cbrc lib2 key fields collect 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: Überwachte Schlüsselfelder aufsammeln 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 lib2 key fields collect FM, simply by entering the name CBRC_LIB2_KEY_FIELDS_COLLECT into the relevant SAP transaction such as SE37 or SE38.
Function Group: CBRC_LIB2
Program Name: SAPLCBRC_LIB2
Main Program: SAPLCBRC_LIB2
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function CBRC_LIB2_KEY_FIELDS_COLLECT 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_LIB2_KEY_FIELDS_COLLECT'"NOTRANSL: Überwachte Schlüsselfelder aufsammeln.
EXPORTING
I_PUPL_UPD_TAB = "Table Type for CCRCT_PUPL
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_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_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_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
IMPORTING Parameters details for CBRC_LIB2_KEY_FIELDS_COLLECT
I_PUPL_UPD_TAB - Table Type for CCRCT_PUPL
Data type: CCRCTT_PUPLOptional: No
Call by Reference: Yes
I_PR_UPD_TAB - Table Type for CCRCT_PRPL
Data type: CCRCTT_PROptional: No
Call by Reference: Yes
I_PR_INS_TAB - Table Type for CCRCT_PRPL
Data type: CCRCTT_PROptional: No
Call by Reference: Yes
I_PR_DEL_TAB - Table Type for CCRCT_PRPL
Data type: CCRCTT_PROptional: No
Call by Reference: Yes
I_SOPL_UPD_TAB - Table Type for CCRCT_SOPL
Data type: CCRCTT_SOPLOptional: No
Call by Reference: Yes
I_SOPL_INS_TAB - Table Type for CCRCT_SOPL
Data type: CCRCTT_SOPLOptional: No
Call by Reference: Yes
I_SOPL_DEL_TAB - Table Type for CCRCT_SOPL
Data type: CCRCTT_SOPLOptional: No
Call by Reference: Yes
I_SO_UPD_TAB - Table Type for CCRCT_SO
Data type: CCRCTT_SOOptional: No
Call by Reference: Yes
I_SO_INS_TAB - Table Type for CCRCT_SO
Data type: CCRCTT_SOOptional: No
Call by Reference: Yes
I_SO_DEL_TAB - Table Type for CCRCT_SO
Data type: CCRCTT_SOOptional: No
Call by Reference: Yes
I_FLG_CONFIRMED -
Data type: ESEBOOLEDefault: FALSE
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_PUPL_INS_TAB - Table Type for CCRCT_PUPL
Data type: CCRCTT_PUPLOptional: No
Call by Reference: Yes
I_PUPL_DEL_TAB - Table Type for CCRCT_PUPL
Data type: CCRCTT_PUPLOptional: No
Call by Reference: Yes
I_PU_UPD_TAB - Table Type for CCRCT_PU
Data type: CCRCTT_PUOptional: No
Call by Reference: Yes
I_PU_INS_TAB - Table Type for CCRCT_PU
Data type: CCRCTT_PUOptional: No
Call by Reference: Yes
I_PU_DEL_TAB - Table Type for CCRCT_PU
Data type: CCRCTT_PUOptional: No
Call by Reference: Yes
I_PRPL_UPD_TAB - Table Type for CCRCT_PR
Data type: CCRCTT_PRPLOptional: No
Call by Reference: Yes
I_PRPL_INS_TAB - Table Type for CCRCT_PR
Data type: CCRCTT_PRPLOptional: No
Call by Reference: Yes
I_PRPL_DEL_TAB - Table Type for CCRCT_PR
Data type: CCRCTT_PRPLOptional: No
Call by Reference: Yes
Copy and paste ABAP code example for CBRC_LIB2_KEY_FIELDS_COLLECT 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_pupl_upd_tab | TYPE CCRCTT_PUPL, " | |||
| 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_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_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_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. " |
|   CALL FUNCTION 'CBRC_LIB2_KEY_FIELDS_COLLECT' "NOTRANSL: Überwachte Schlüsselfelder aufsammeln |
| EXPORTING | ||
| I_PUPL_UPD_TAB | = lv_i_pupl_upd_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_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_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_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 | |
| . " CBRC_LIB2_KEY_FIELDS_COLLECT | ||
ABAP code using 7.40 inline data declarations to call FM CBRC_LIB2_KEY_FIELDS_COLLECT
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.| DATA(ld_i_flg_confirmed) | = FALSE. | |||
Search for further information about these or an SAP related objects