SAP CBRC_PRO_DOCUMENT_BLOCK Function Module for NOTRANSL: Customizing: Blockierung des Folgeprozesses (Status setzen)
CBRC_PRO_DOCUMENT_BLOCK is a standard cbrc pro document block 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: Blockierung des Folgeprozesses (Status setzen) 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 document block FM, simply by entering the name CBRC_PRO_DOCUMENT_BLOCK 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_DOCUMENT_BLOCK 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_DOCUMENT_BLOCK'"NOTRANSL: Customizing: Blockierung des Folgeprozesses (Status setzen).
EXPORTING
I_AUFNR = "Order number
I_CHECK = "EHS: Online Checks for Regulation/Scenario/Document Type
I_CHK_AMOUNT_TAB = "Table Type for CCRCS_CHK_RESULT
* I_FLG_RESET = "Indicator: Reset Status
* I_FLG_UNLOCK = "Indicator: Unblock Documents
* I_FLG_LAST_REG = "
IMPORTING
E_LOCK_UPD_TAB = "Table Type for CCRCT_LOCK
E_MSG_BLOCK_TAB = "Table Type Application Log
E_FLG_BLOCK = "Process Was Blocked
E_ERROR_TAB = "Table Type Application Log
E_FLG_ERROR = "Truth Value
IMPORTING Parameters details for CBRC_PRO_DOCUMENT_BLOCK
I_AUFNR - Order number
Data type: AUFNROptional: No
Call by Reference: Yes
I_CHECK - EHS: Online Checks for Regulation/Scenario/Document Type
Data type: CCRCC_CHCK_ONOptional: 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_FLG_RESET - Indicator: Reset Status
Data type: CCRCE_FLG_RESETOptional: Yes
Call by Reference: Yes
I_FLG_UNLOCK - Indicator: Unblock Documents
Data type: CCRCE_FLG_UNLOCKOptional: Yes
Call by Reference: Yes
I_FLG_LAST_REG -
Data type: ESEBOOLEOptional: Yes
Call by Reference: Yes
EXPORTING Parameters details for CBRC_PRO_DOCUMENT_BLOCK
E_LOCK_UPD_TAB - Table Type for CCRCT_LOCK
Data type: CCRCTT_LOCKOptional: No
Call by Reference: Yes
E_MSG_BLOCK_TAB - Table Type Application Log
Data type: CCRCTT_MSGOptional: No
Call by Reference: Yes
E_FLG_BLOCK - Process Was Blocked
Data type: ESEBOOLEOptional: No
Call by Reference: Yes
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
Copy and paste ABAP code example for CBRC_PRO_DOCUMENT_BLOCK 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_aufnr | TYPE AUFNR, " | |||
| lv_e_lock_upd_tab | TYPE CCRCTT_LOCK, " | |||
| lv_i_check | TYPE CCRCC_CHCK_ON, " | |||
| lv_e_msg_block_tab | TYPE CCRCTT_MSG, " | |||
| lv_e_flg_block | TYPE ESEBOOLE, " | |||
| lv_i_chk_amount_tab | TYPE CCRCTT_CHK_RESULT, " | |||
| lv_e_error_tab | TYPE CCRCTT_MSG, " | |||
| lv_i_flg_reset | TYPE CCRCE_FLG_RESET, " | |||
| lv_e_flg_error | TYPE ESEBOOLE, " | |||
| lv_i_flg_unlock | TYPE CCRCE_FLG_UNLOCK, " | |||
| lv_i_flg_last_reg | TYPE ESEBOOLE. " |
|   CALL FUNCTION 'CBRC_PRO_DOCUMENT_BLOCK' "NOTRANSL: Customizing: Blockierung des Folgeprozesses (Status setzen) |
| EXPORTING | ||
| I_AUFNR | = lv_i_aufnr | |
| I_CHECK | = lv_i_check | |
| I_CHK_AMOUNT_TAB | = lv_i_chk_amount_tab | |
| I_FLG_RESET | = lv_i_flg_reset | |
| I_FLG_UNLOCK | = lv_i_flg_unlock | |
| I_FLG_LAST_REG | = lv_i_flg_last_reg | |
| IMPORTING | ||
| E_LOCK_UPD_TAB | = lv_e_lock_upd_tab | |
| E_MSG_BLOCK_TAB | = lv_e_msg_block_tab | |
| E_FLG_BLOCK | = lv_e_flg_block | |
| E_ERROR_TAB | = lv_e_error_tab | |
| E_FLG_ERROR | = lv_e_flg_error | |
| . " CBRC_PRO_DOCUMENT_BLOCK | ||
ABAP code using 7.40 inline data declarations to call FM CBRC_PRO_DOCUMENT_BLOCK
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