SAP FBRC_RUN_AUTOEXEC_RULES Function Module for Run Auto-Executable Rules
FBRC_RUN_AUTOEXEC_RULES is a standard fbrc run autoexec rules SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Run Auto-Executable Rules 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 fbrc run autoexec rules FM, simply by entering the name FBRC_RUN_AUTOEXEC_RULES into the relevant SAP transaction such as SE37 or SE38.
Function Group: FBRC_CENTRAL_FUNCS
Program Name: SAPLFBRC_CENTRAL_FUNCS
Main Program: SAPLFBRC_CENTRAL_FUNCS
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function FBRC_RUN_AUTOEXEC_RULES 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 'FBRC_RUN_AUTOEXEC_RULES'"Run Auto-Executable Rules.
EXPORTING
ID_RECONID = "Reconciliation Process
* ID_TEMP_NO_RANGE = '' "Assign Temporary Group Reference Numbers (Interactive/Test Mode)
* IT_RA_RULE = "Rules to be Used
IMPORTING
ET_ASSIGNED_DIFF = "Assigned Records with difference
ET_ASSIGNED_NO_DIFF = "Concurrent Records
CHANGING
CT_COMPANY_DATA = "Company Unassigned Records
CT_PARTNER_DATA = "Partner Unassigned Records
EXCEPTIONS
EXC_NO_RULES = 1
IMPORTING Parameters details for FBRC_RUN_AUTOEXEC_RULES
ID_RECONID - Reconciliation Process
Data type: FB_RC_RPROCOptional: No
Call by Reference: Yes
ID_TEMP_NO_RANGE - Assign Temporary Group Reference Numbers (Interactive/Test Mode)
Data type: CDefault: ''
Optional: Yes
Call by Reference: Yes
IT_RA_RULE - Rules to be Used
Data type: RSELOPTIONOptional: Yes
Call by Reference: Yes
EXPORTING Parameters details for FBRC_RUN_AUTOEXEC_RULES
ET_ASSIGNED_DIFF - Assigned Records with difference
Data type: STANDARD TABLEOptional: No
Call by Reference: Yes
ET_ASSIGNED_NO_DIFF - Concurrent Records
Data type: STANDARD TABLEOptional: No
Call by Reference: Yes
CHANGING Parameters details for FBRC_RUN_AUTOEXEC_RULES
CT_COMPANY_DATA - Company Unassigned Records
Data type: STANDARD TABLEOptional: No
Call by Reference: Yes
CT_PARTNER_DATA - Partner Unassigned Records
Data type: STANDARD TABLEOptional: No
Call by Reference: Yes
EXCEPTIONS details
EXC_NO_RULES - No Rules Found in Customizing
Data type:Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for FBRC_RUN_AUTOEXEC_RULES 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_id_reconid | TYPE FB_RC_RPROC, " | |||
| lv_exc_no_rules | TYPE FB_RC_RPROC, " | |||
| lv_ct_company_data | TYPE STANDARD TABLE, " | |||
| lv_et_assigned_diff | TYPE STANDARD TABLE, " | |||
| lv_ct_partner_data | TYPE STANDARD TABLE, " | |||
| lv_id_temp_no_range | TYPE C, " '' | |||
| lv_et_assigned_no_diff | TYPE STANDARD TABLE, " | |||
| lv_it_ra_rule | TYPE RSELOPTION. " |
|   CALL FUNCTION 'FBRC_RUN_AUTOEXEC_RULES' "Run Auto-Executable Rules |
| EXPORTING | ||
| ID_RECONID | = lv_id_reconid | |
| ID_TEMP_NO_RANGE | = lv_id_temp_no_range | |
| IT_RA_RULE | = lv_it_ra_rule | |
| IMPORTING | ||
| ET_ASSIGNED_DIFF | = lv_et_assigned_diff | |
| ET_ASSIGNED_NO_DIFF | = lv_et_assigned_no_diff | |
| CHANGING | ||
| CT_COMPANY_DATA | = lv_ct_company_data | |
| CT_PARTNER_DATA | = lv_ct_partner_data | |
| EXCEPTIONS | ||
| EXC_NO_RULES = 1 | ||
| . " FBRC_RUN_AUTOEXEC_RULES | ||
ABAP code using 7.40 inline data declarations to call FM FBRC_RUN_AUTOEXEC_RULES
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_id_temp_no_range) | = ''. | |||
Search for further information about these or an SAP related objects