SAP CBRC_OR_BD_DATA_CHECK_MANY Function Module for Validate Representative Data
CBRC_OR_BD_DATA_CHECK_MANY is a standard cbrc or bd data check many SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Validate Representative Data 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 or bd data check many FM, simply by entering the name CBRC_OR_BD_DATA_CHECK_MANY into the relevant SAP transaction such as SE37 or SE38.
Function Group: CBRC_OR
Program Name: SAPLCBRC_OR
Main Program: SAPLCBRC_OR
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function CBRC_OR_BD_DATA_CHECK_MANY 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_OR_BD_DATA_CHECK_MANY'"Validate Representative Data.
EXPORTING
I_TCODE = "Current Transaction Code
* I_FLG_IMPORTER_CHECK = ESP1_TRUE "Indicator: Check Importer
* I_REPID = "Name of Calling Program
* I_UCOMM = "Function Code That Triggered PAI
* I_ACTYPE = "Activity Type in the Transaction
* I_FLG_REG_CHECK = ESP1_TRUE "Indicator: Check Regulatory List
* I_FLG_BP_CHECK = ESP1_TRUE "Indicator: Check Business Partner
* I_FLG_OR_CHECK = ESP1_TRUE "Indicator: Check Only Representative
* I_FLG_MATNR_CHECK = ESP1_TRUE "Indicator: Check Material
* I_OR_DATA_TAB = "Table of Existing Entries
IMPORTING
E_FLG_ERROR = "Indicator: Error
E_ERROR_TAB = "EHS: Table Type RCGEXTERROR (Extended Error Table)
CHANGING
X_OR_MOD_TAB = "Table of Changed Entries
EXCEPTIONS
INTERNAL_ERROR = 1
IMPORTING Parameters details for CBRC_OR_BD_DATA_CHECK_MANY
I_TCODE - Current Transaction Code
Data type: SY-TCODEOptional: No
Call by Reference: No ( called with pass by value option)
I_FLG_IMPORTER_CHECK - Indicator: Check Importer
Data type: ESP1_BOOLEANDefault: ESP1_TRUE
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_REPID - Name of Calling Program
Data type: SY-REPIDOptional: Yes
Call by Reference: No ( called with pass by value option)
I_UCOMM - Function Code That Triggered PAI
Data type: SY-UCOMMOptional: Yes
Call by Reference: No ( called with pass by value option)
I_ACTYPE - Activity Type in the Transaction
Data type: RCGDIALCTR-ACTYPEOptional: Yes
Call by Reference: No ( called with pass by value option)
I_FLG_REG_CHECK - Indicator: Check Regulatory List
Data type: ESP1_BOOLEANDefault: ESP1_TRUE
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_FLG_BP_CHECK - Indicator: Check Business Partner
Data type: ESP1_BOOLEANDefault: ESP1_TRUE
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_FLG_OR_CHECK - Indicator: Check Only Representative
Data type: ESP1_BOOLEANDefault: ESP1_TRUE
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_FLG_MATNR_CHECK - Indicator: Check Material
Data type: ESP1_BOOLEANDefault: ESP1_TRUE
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_OR_DATA_TAB - Table of Existing Entries
Data type: CCRCTT_OR_BD_APIDATAOptional: Yes
Call by Reference: Yes
EXPORTING Parameters details for CBRC_OR_BD_DATA_CHECK_MANY
E_FLG_ERROR - Indicator: Error
Data type: ESP1_BOOLEANOptional: No
Call by Reference: Yes
E_ERROR_TAB - EHS: Table Type RCGEXTERROR (Extended Error Table)
Data type: EHSB_TT_RCGEXTERROROptional: No
Call by Reference: Yes
CHANGING Parameters details for CBRC_OR_BD_DATA_CHECK_MANY
X_OR_MOD_TAB - Table of Changed Entries
Data type: CCRCTT_OR_BD_APIDATAOptional: No
Call by Reference: Yes
EXCEPTIONS details
INTERNAL_ERROR - Internal error
Data type:Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for CBRC_OR_BD_DATA_CHECK_MANY 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_tcode | TYPE SY-TCODE, " | |||
| lv_e_flg_error | TYPE ESP1_BOOLEAN, " | |||
| lv_x_or_mod_tab | TYPE CCRCTT_OR_BD_APIDATA, " | |||
| lv_internal_error | TYPE CCRCTT_OR_BD_APIDATA, " | |||
| lv_i_flg_importer_check | TYPE ESP1_BOOLEAN, " ESP1_TRUE | |||
| lv_i_repid | TYPE SY-REPID, " | |||
| lv_e_error_tab | TYPE EHSB_TT_RCGEXTERROR, " | |||
| lv_i_ucomm | TYPE SY-UCOMM, " | |||
| lv_i_actype | TYPE RCGDIALCTR-ACTYPE, " | |||
| lv_i_flg_reg_check | TYPE ESP1_BOOLEAN, " ESP1_TRUE | |||
| lv_i_flg_bp_check | TYPE ESP1_BOOLEAN, " ESP1_TRUE | |||
| lv_i_flg_or_check | TYPE ESP1_BOOLEAN, " ESP1_TRUE | |||
| lv_i_flg_matnr_check | TYPE ESP1_BOOLEAN, " ESP1_TRUE | |||
| lv_i_or_data_tab | TYPE CCRCTT_OR_BD_APIDATA. " |
|   CALL FUNCTION 'CBRC_OR_BD_DATA_CHECK_MANY' "Validate Representative Data |
| EXPORTING | ||
| I_TCODE | = lv_i_tcode | |
| I_FLG_IMPORTER_CHECK | = lv_i_flg_importer_check | |
| I_REPID | = lv_i_repid | |
| I_UCOMM | = lv_i_ucomm | |
| I_ACTYPE | = lv_i_actype | |
| I_FLG_REG_CHECK | = lv_i_flg_reg_check | |
| I_FLG_BP_CHECK | = lv_i_flg_bp_check | |
| I_FLG_OR_CHECK | = lv_i_flg_or_check | |
| I_FLG_MATNR_CHECK | = lv_i_flg_matnr_check | |
| I_OR_DATA_TAB | = lv_i_or_data_tab | |
| IMPORTING | ||
| E_FLG_ERROR | = lv_e_flg_error | |
| E_ERROR_TAB | = lv_e_error_tab | |
| CHANGING | ||
| X_OR_MOD_TAB | = lv_x_or_mod_tab | |
| EXCEPTIONS | ||
| INTERNAL_ERROR = 1 | ||
| . " CBRC_OR_BD_DATA_CHECK_MANY | ||
ABAP code using 7.40 inline data declarations to call FM CBRC_OR_BD_DATA_CHECK_MANY
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 TCODE FROM SY INTO @DATA(ld_i_tcode). | ||||
| DATA(ld_i_flg_importer_check) | = ESP1_TRUE. | |||
| "SELECT single REPID FROM SY INTO @DATA(ld_i_repid). | ||||
| "SELECT single UCOMM FROM SY INTO @DATA(ld_i_ucomm). | ||||
| "SELECT single ACTYPE FROM RCGDIALCTR INTO @DATA(ld_i_actype). | ||||
| DATA(ld_i_flg_reg_check) | = ESP1_TRUE. | |||
| DATA(ld_i_flg_bp_check) | = ESP1_TRUE. | |||
| DATA(ld_i_flg_or_check) | = ESP1_TRUE. | |||
| DATA(ld_i_flg_matnr_check) | = ESP1_TRUE. | |||
Search for further information about these or an SAP related objects