SAP CBRC_CHK_DATA_RELEVANT Function Module for NOTRANSL: Selektion relevanter Daten
CBRC_CHK_DATA_RELEVANT is a standard cbrc chk data relevant 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: Selektion relevanter Daten 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 chk data relevant FM, simply by entering the name CBRC_CHK_DATA_RELEVANT into the relevant SAP transaction such as SE37 or SE38.
Function Group: CBRC_CHK
Program Name: SAPLCBRC_CHK
Main Program: SAPLCBRC_CHK
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function CBRC_CHK_DATA_RELEVANT 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_CHK_DATA_RELEVANT'"NOTRANSL: Selektion relevanter Daten.
EXPORTING
* I_CHECK_TAB = "Table Type for CCRCTT_CHCK_ON
* I_MSEG_TAB = "Table Type for MSEG
* I_EKKO = "Purchasing Document Header
* I_EBAN = "OO Purchase Requisition: Header Status
* I_PRO_HEADER = "Dialog Structure for Order Headers and Items
* I_VBUK = "Sales Document: Header Status and Administrative Data
* I_VBAK = "Sales Document: Header Data
* I_LIPK = "SD Document: Delivery Header Data
* I_LIPS_TAB = "Table Type for LIPS
* I_MKPF = "Header: Material Document
IMPORTING
E_CHK_AMOUNT_TAB = "Table Type for CCRCS_CHK_RESULT
E_CHECK_TAB = "Table Type for CCRCTT_CHCK_ON
E_FLG_RELEVANT = "Truth Value
E_ERROR_TAB = "Table Type Application Log
E_FLG_ERROR = "Truth Value
TABLES
* I_PRO_ITEM_TAB = "Document structure for order items
* I_PRO_COMP_TAB = "
* I_EKPO_TAB = "Transfer Structure Items for Purchasing Documents
* I_EKET_TAB = "Tfr. Structure Sch. Lines for Ord. Acceptance Confirmations
* I_EBAN_POS_TAB = "OO Purchase Requisition: Item Status
* I_VBAP_TAB = "Table Type for VBAP
* I_VBPA_TAB = "Table Type for VBPA
* I_VBEP_TAB = "Sales Document: Schedule Line Data
* I_VBUP_TAB = "
Customer Function user exits
Below is a list of CUSTOMER FUNCTION exit user exits that are available within this program and maybe relevant for this FM.EXIT_SAPLCBRC_CHK02_001 DE-EN-LANG-SWITCH-NO-TRANSLATION
EXIT_SAPLCBRC_CHK02_002 DE-EN-LANG-SWITCH-NO-TRANSLATION
IMPORTING Parameters details for CBRC_CHK_DATA_RELEVANT
I_CHECK_TAB - Table Type for CCRCTT_CHCK_ON
Data type: CCRCTT_CHCK_ONOptional: Yes
Call by Reference: Yes
I_MSEG_TAB - Table Type for MSEG
Data type: CCRCTT_MSEGOptional: Yes
Call by Reference: Yes
I_EKKO - Purchasing Document Header
Data type: EKKOOptional: Yes
Call by Reference: Yes
I_EBAN - OO Purchase Requisition: Header Status
Data type: MEREQ_HEADEROptional: Yes
Call by Reference: Yes
I_PRO_HEADER - Dialog Structure for Order Headers and Items
Data type: CAUFVDOptional: Yes
Call by Reference: Yes
I_VBUK - Sales Document: Header Status and Administrative Data
Data type: VBUKOptional: Yes
Call by Reference: Yes
I_VBAK - Sales Document: Header Data
Data type: VBAKOptional: Yes
Call by Reference: Yes
I_LIPK - SD Document: Delivery Header Data
Data type: LIKPOptional: Yes
Call by Reference: Yes
I_LIPS_TAB - Table Type for LIPS
Data type: CCRCTT_LIPSOptional: Yes
Call by Reference: Yes
I_MKPF - Header: Material Document
Data type: MKPFOptional: Yes
Call by Reference: Yes
EXPORTING Parameters details for CBRC_CHK_DATA_RELEVANT
E_CHK_AMOUNT_TAB - Table Type for CCRCS_CHK_RESULT
Data type: CCRCTT_CHK_RESULTOptional: No
Call by Reference: Yes
E_CHECK_TAB - Table Type for CCRCTT_CHCK_ON
Data type: CCRCTT_CHCK_ONOptional: No
Call by Reference: Yes
E_FLG_RELEVANT - Truth Value
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
TABLES Parameters details for CBRC_CHK_DATA_RELEVANT
I_PRO_ITEM_TAB - Document structure for order items
Data type: AFPOBOptional: Yes
Call by Reference: Yes
I_PRO_COMP_TAB -
Data type: COBAI_T_COMPONENTOptional: Yes
Call by Reference: Yes
I_EKPO_TAB - Transfer Structure Items for Purchasing Documents
Data type: BEKPOOptional: Yes
Call by Reference: Yes
I_EKET_TAB - Tfr. Structure Sch. Lines for Ord. Acceptance Confirmations
Data type: BEKETOptional: Yes
Call by Reference: Yes
I_EBAN_POS_TAB - OO Purchase Requisition: Item Status
Data type: MEREQ_ITEMOptional: Yes
Call by Reference: Yes
I_VBAP_TAB - Table Type for VBAP
Data type: VBAPOptional: Yes
Call by Reference: Yes
I_VBPA_TAB - Table Type for VBPA
Data type: VBPAOptional: Yes
Call by Reference: Yes
I_VBEP_TAB - Sales Document: Schedule Line Data
Data type: VBEPOptional: Yes
Call by Reference: Yes
I_VBUP_TAB -
Data type: VBUPOptional: Yes
Call by Reference: Yes
Copy and paste ABAP code example for CBRC_CHK_DATA_RELEVANT 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_check_tab | TYPE CCRCTT_CHCK_ON, " | |||
| lt_i_pro_item_tab | TYPE STANDARD TABLE OF AFPOB, " | |||
| lv_e_chk_amount_tab | TYPE CCRCTT_CHK_RESULT, " | |||
| lv_i_mseg_tab | TYPE CCRCTT_MSEG, " | |||
| lv_i_ekko | TYPE EKKO, " | |||
| lv_e_check_tab | TYPE CCRCTT_CHCK_ON, " | |||
| lt_i_pro_comp_tab | TYPE STANDARD TABLE OF COBAI_T_COMPONENT, " | |||
| lv_i_eban | TYPE MEREQ_HEADER, " | |||
| lt_i_ekpo_tab | TYPE STANDARD TABLE OF BEKPO, " | |||
| lv_e_flg_relevant | TYPE ESEBOOLE, " | |||
| lt_i_eket_tab | TYPE STANDARD TABLE OF BEKET, " | |||
| lv_e_error_tab | TYPE CCRCTT_MSG, " | |||
| lv_i_pro_header | TYPE CAUFVD, " | |||
| lv_i_vbuk | TYPE VBUK, " | |||
| lv_e_flg_error | TYPE ESEBOOLE, " | |||
| lt_i_eban_pos_tab | TYPE STANDARD TABLE OF MEREQ_ITEM, " | |||
| lv_i_vbak | TYPE VBAK, " | |||
| lt_i_vbap_tab | TYPE STANDARD TABLE OF VBAP, " | |||
| lv_i_lipk | TYPE LIKP, " | |||
| lt_i_vbpa_tab | TYPE STANDARD TABLE OF VBPA, " | |||
| lv_i_lips_tab | TYPE CCRCTT_LIPS, " | |||
| lt_i_vbep_tab | TYPE STANDARD TABLE OF VBEP, " | |||
| lv_i_mkpf | TYPE MKPF, " | |||
| lt_i_vbup_tab | TYPE STANDARD TABLE OF VBUP. " |
|   CALL FUNCTION 'CBRC_CHK_DATA_RELEVANT' "NOTRANSL: Selektion relevanter Daten |
| EXPORTING | ||
| I_CHECK_TAB | = lv_i_check_tab | |
| I_MSEG_TAB | = lv_i_mseg_tab | |
| I_EKKO | = lv_i_ekko | |
| I_EBAN | = lv_i_eban | |
| I_PRO_HEADER | = lv_i_pro_header | |
| I_VBUK | = lv_i_vbuk | |
| I_VBAK | = lv_i_vbak | |
| I_LIPK | = lv_i_lipk | |
| I_LIPS_TAB | = lv_i_lips_tab | |
| I_MKPF | = lv_i_mkpf | |
| IMPORTING | ||
| E_CHK_AMOUNT_TAB | = lv_e_chk_amount_tab | |
| E_CHECK_TAB | = lv_e_check_tab | |
| E_FLG_RELEVANT | = lv_e_flg_relevant | |
| E_ERROR_TAB | = lv_e_error_tab | |
| E_FLG_ERROR | = lv_e_flg_error | |
| TABLES | ||
| I_PRO_ITEM_TAB | = lt_i_pro_item_tab | |
| I_PRO_COMP_TAB | = lt_i_pro_comp_tab | |
| I_EKPO_TAB | = lt_i_ekpo_tab | |
| I_EKET_TAB | = lt_i_eket_tab | |
| I_EBAN_POS_TAB | = lt_i_eban_pos_tab | |
| I_VBAP_TAB | = lt_i_vbap_tab | |
| I_VBPA_TAB | = lt_i_vbpa_tab | |
| I_VBEP_TAB | = lt_i_vbep_tab | |
| I_VBUP_TAB | = lt_i_vbup_tab | |
| . " CBRC_CHK_DATA_RELEVANT | ||
ABAP code using 7.40 inline data declarations to call FM CBRC_CHK_DATA_RELEVANT
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