SAP FMRB_SELECT_RIB_RULES_RECS Function Module for Use Dialog for Selecting RIB Objects or Receiving Budget Addresses
FMRB_SELECT_RIB_RULES_RECS is a standard fmrb select rib rules recs SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Use Dialog for Selecting RIB Objects or Receiving Budget Addresses 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 fmrb select rib rules recs FM, simply by entering the name FMRB_SELECT_RIB_RULES_RECS into the relevant SAP transaction such as SE37 or SE38.
Function Group: FMRB_DB_ACCESS
Program Name: SAPLFMRB_DB_ACCESS
Main Program: SAPLFMRB_DB_ACCESS
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function FMRB_SELECT_RIB_RULES_RECS 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 'FMRB_SELECT_RIB_RULES_RECS'"Use Dialog for Selecting RIB Objects or Receiving Budget Addresses.
EXPORTING
IM_FM_AREA = "Financial Management Area
* IM_FLG_WITHOUT_GRANT = ' ' "Flag: 'X' = Grant Not Active
* IM_FLG_WITHOUT_FUND = ' ' "Flag: 'X' = Fund Not Active
* IM_FLG_WITHOUT_BUDGET_PD = ' ' "Flag: 'X' = Budget Period Not Active
* IM_FLG_WITHOUT_FUNCAREA = ' ' "Flag: 'X' = Functional Area Not Active
* IM_FLG_WITHOUT_MEASURE = ' ' "Flag: 'X' = Funded Program not Active
* IM_FLG_WITHOUT_USERDIM = 'X' "Flag: 'X' = Customer Dimension not Active
* IM_FLG_EXCLUDE_BLANK_CVRGRP = ' ' "Flag: 'X' = Exclude RIB rules with cover group = ' '
* IM_FLG_USE_FIXED_CVRGRP = ' ' "Flag: 'X' = Use Cover Group Value of Param. IM_S_FIXED_VALUES
* IM_FLG_USE_FIXED_GRANT = ' ' "Flag: 'X' = Use Grant Value of Param. IM_S_FIXED_VALUES
* IM_FLG_USE_FIXED_FUND = ' ' "Flag: 'X' = Use Fund Value of Param. IM_S_FIXED_VALUES
IM_FISCYEAR = "Fiscal Year
* IM_FLG_USE_FIXED_BUDGET_PD = ' ' "Flag: 'X' = Use Budget Period Value of Param. IM_S_FIXED_VALUES
* IM_FLG_USE_FIXED_FUNDSCTR = ' ' "Flag: 'X' = Use Funds Center Value of Param. IM_S_FIXED_VALUES
* IM_FLG_USE_FIXED_CMMTITEM = ' ' "Flag: 'X' = Use Commitment Item Value of Param. IM_S_FIXED_VALUES
* IM_FLG_USE_FIXED_FUNCAREA = ' ' "Flag: 'X' = Use Functional Area Value of Param. IM_S_FIXED_VALUES
* IM_FLG_USE_FIXED_MEASURE = ' ' "Flag: 'X' = Use Measure Value of Param. IM_S_FIXED_VALUES
* IM_FLG_USE_FIXED_USERDIM = ' ' "Flag: 'X' = Use Userdim Value of Param. IM_S_FIXED_VALUES
* IM_S_FIXED_VALUES = "RIB Rule (RIB Object/Cover Group)
* IM_S_FIXED_REF_ADDRESS = "Specified source or target address
* IM_CEFFYEAR = "Year of Cash Effectivity
* IM_RBBLDNR = "Budget Category for Revenue Increasing the Budget
* IM_BUDCAT = "Budget category
* IM_VERSION = "Budget version
* IM_FLG_SOURCE = 'X' "Flag: 'X' = RIB Object (Source), ' ' = Receiving Address (Target)
* IM_FLG_SELECT_SINGLE = 'X' "Flag: 'X' = Select Single Record
* IM_FLG_WITHOUT_CVRGRP = ' ' "Flag: 'X' = Cover Groups Not Active or Selection of RIB Objects only
IMPORTING
EX_T_RIBOBJ_AND_BUDREC = "Table of RIB Objects And Receiving Budget Addresses
EXCEPTIONS
INVALID_SELECTION_CRITERIA = 1
IMPORTING Parameters details for FMRB_SELECT_RIB_RULES_RECS
IM_FM_AREA - Financial Management Area
Data type: FIKRSOptional: No
Call by Reference: Yes
IM_FLG_WITHOUT_GRANT - Flag: 'X' = Grant Not Active
Data type: XFELDDefault: ' '
Optional: Yes
Call by Reference: Yes
IM_FLG_WITHOUT_FUND - Flag: 'X' = Fund Not Active
Data type: XFELDDefault: ' '
Optional: Yes
Call by Reference: Yes
IM_FLG_WITHOUT_BUDGET_PD - Flag: 'X' = Budget Period Not Active
Data type: XFELDDefault: ' '
Optional: Yes
Call by Reference: Yes
IM_FLG_WITHOUT_FUNCAREA - Flag: 'X' = Functional Area Not Active
Data type: XFELDDefault: ' '
Optional: Yes
Call by Reference: Yes
IM_FLG_WITHOUT_MEASURE - Flag: 'X' = Funded Program not Active
Data type: XFELDDefault: ' '
Optional: Yes
Call by Reference: Yes
IM_FLG_WITHOUT_USERDIM - Flag: 'X' = Customer Dimension not Active
Data type: XFELDDefault: 'X'
Optional: Yes
Call by Reference: Yes
IM_FLG_EXCLUDE_BLANK_CVRGRP - Flag: 'X' = Exclude RIB rules with cover group = SPACE
Data type: XFELDDefault: ' '
Optional: Yes
Call by Reference: Yes
IM_FLG_USE_FIXED_CVRGRP - Flag: 'X' = Use Cover Group Value of Param. IM_S_FIXED_VALUES
Data type: XFELDDefault: ' '
Optional: Yes
Call by Reference: Yes
IM_FLG_USE_FIXED_GRANT - Flag: 'X' = Use Grant Value of Param. IM_S_FIXED_VALUES
Data type: XFELDDefault: ' '
Optional: Yes
Call by Reference: Yes
IM_FLG_USE_FIXED_FUND - Flag: 'X' = Use Fund Value of Param. IM_S_FIXED_VALUES
Data type: XFELDDefault: ' '
Optional: Yes
Call by Reference: Yes
IM_FISCYEAR - Fiscal Year
Data type: GJAHROptional: No
Call by Reference: Yes
IM_FLG_USE_FIXED_BUDGET_PD - Flag: 'X' = Use Budget Period Value of Param. IM_S_FIXED_VALUES
Data type: XFELDDefault: ' '
Optional: Yes
Call by Reference: Yes
IM_FLG_USE_FIXED_FUNDSCTR - Flag: 'X' = Use Funds Center Value of Param. IM_S_FIXED_VALUES
Data type: XFELDDefault: ' '
Optional: Yes
Call by Reference: Yes
IM_FLG_USE_FIXED_CMMTITEM - Flag: 'X' = Use Commitment Item Value of Param. IM_S_FIXED_VALUES
Data type: XFELDDefault: ' '
Optional: Yes
Call by Reference: Yes
IM_FLG_USE_FIXED_FUNCAREA - Flag: 'X' = Use Functional Area Value of Param. IM_S_FIXED_VALUES
Data type: XFELDDefault: ' '
Optional: Yes
Call by Reference: Yes
IM_FLG_USE_FIXED_MEASURE - Flag: 'X' = Use Measure Value of Param. IM_S_FIXED_VALUES
Data type: XFELDDefault: ' '
Optional: Yes
Call by Reference: Yes
IM_FLG_USE_FIXED_USERDIM - Flag: 'X' = Use Userdim Value of Param. IM_S_FIXED_VALUES
Data type: XFELDDefault: ' '
Optional: Yes
Call by Reference: Yes
IM_S_FIXED_VALUES - RIB Rule (RIB Object/Cover Group)
Data type: FMRB_S_RIB_RULEOptional: Yes
Call by Reference: Yes
IM_S_FIXED_REF_ADDRESS - Specified source or target address
Data type: FMKU_S_DIMPARTOptional: Yes
Call by Reference: Yes
IM_CEFFYEAR - Year of Cash Effectivity
Data type: GNJHROptional: Yes
Call by Reference: Yes
IM_RBBLDNR - Budget Category for Revenue Increasing the Budget
Data type: BURB_RBBLDNROptional: Yes
Call by Reference: Yes
IM_BUDCAT - Budget category
Data type: BUKU_BUDCATOptional: Yes
Call by Reference: Yes
IM_VERSION - Budget version
Data type: BUKU_VERSIONOptional: Yes
Call by Reference: Yes
IM_FLG_SOURCE - Flag: 'X' = RIB Object (Source), ' ' = Receiving Address (Target)
Data type: XFELDDefault: 'X'
Optional: Yes
Call by Reference: Yes
IM_FLG_SELECT_SINGLE - Flag: 'X' = Select Single Record
Data type: XFELDDefault: 'X'
Optional: Yes
Call by Reference: Yes
IM_FLG_WITHOUT_CVRGRP - Flag: 'X' = Cover Groups Not Active or Selection of RIB Objects only
Data type: XFELDDefault: ' '
Optional: Yes
Call by Reference: Yes
EXPORTING Parameters details for FMRB_SELECT_RIB_RULES_RECS
EX_T_RIBOBJ_AND_BUDREC - Table of RIB Objects And Receiving Budget Addresses
Data type: FMRB_T_RIBOBJ_AND_BUD_RECEIVEROptional: No
Call by Reference: Yes
EXCEPTIONS details
INVALID_SELECTION_CRITERIA - The specified selection criteria are not valid
Data type:Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for FMRB_SELECT_RIB_RULES_RECS 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_im_fm_area | TYPE FIKRS, " | |||
| lv_ex_t_ribobj_and_budrec | TYPE FMRB_T_RIBOBJ_AND_BUD_RECEIVER, " | |||
| lv_invalid_selection_criteria | TYPE FMRB_T_RIBOBJ_AND_BUD_RECEIVER, " | |||
| lv_im_flg_without_grant | TYPE XFELD, " ' ' | |||
| lv_im_flg_without_fund | TYPE XFELD, " ' ' | |||
| lv_im_flg_without_budget_pd | TYPE XFELD, " ' ' | |||
| lv_im_flg_without_funcarea | TYPE XFELD, " ' ' | |||
| lv_im_flg_without_measure | TYPE XFELD, " ' ' | |||
| lv_im_flg_without_userdim | TYPE XFELD, " 'X' | |||
| lv_im_flg_exclude_blank_cvrgrp | TYPE XFELD, " ' ' | |||
| lv_im_flg_use_fixed_cvrgrp | TYPE XFELD, " ' ' | |||
| lv_im_flg_use_fixed_grant | TYPE XFELD, " ' ' | |||
| lv_im_flg_use_fixed_fund | TYPE XFELD, " ' ' | |||
| lv_im_fiscyear | TYPE GJAHR, " | |||
| lv_im_flg_use_fixed_budget_pd | TYPE XFELD, " ' ' | |||
| lv_im_flg_use_fixed_fundsctr | TYPE XFELD, " ' ' | |||
| lv_im_flg_use_fixed_cmmtitem | TYPE XFELD, " ' ' | |||
| lv_im_flg_use_fixed_funcarea | TYPE XFELD, " ' ' | |||
| lv_im_flg_use_fixed_measure | TYPE XFELD, " ' ' | |||
| lv_im_flg_use_fixed_userdim | TYPE XFELD, " ' ' | |||
| lv_im_s_fixed_values | TYPE FMRB_S_RIB_RULE, " | |||
| lv_im_s_fixed_ref_address | TYPE FMKU_S_DIMPART, " | |||
| lv_im_ceffyear | TYPE GNJHR, " | |||
| lv_im_rbbldnr | TYPE BURB_RBBLDNR, " | |||
| lv_im_budcat | TYPE BUKU_BUDCAT, " | |||
| lv_im_version | TYPE BUKU_VERSION, " | |||
| lv_im_flg_source | TYPE XFELD, " 'X' | |||
| lv_im_flg_select_single | TYPE XFELD, " 'X' | |||
| lv_im_flg_without_cvrgrp | TYPE XFELD. " ' ' |
|   CALL FUNCTION 'FMRB_SELECT_RIB_RULES_RECS' "Use Dialog for Selecting RIB Objects or Receiving Budget Addresses |
| EXPORTING | ||
| IM_FM_AREA | = lv_im_fm_area | |
| IM_FLG_WITHOUT_GRANT | = lv_im_flg_without_grant | |
| IM_FLG_WITHOUT_FUND | = lv_im_flg_without_fund | |
| IM_FLG_WITHOUT_BUDGET_PD | = lv_im_flg_without_budget_pd | |
| IM_FLG_WITHOUT_FUNCAREA | = lv_im_flg_without_funcarea | |
| IM_FLG_WITHOUT_MEASURE | = lv_im_flg_without_measure | |
| IM_FLG_WITHOUT_USERDIM | = lv_im_flg_without_userdim | |
| IM_FLG_EXCLUDE_BLANK_CVRGRP | = lv_im_flg_exclude_blank_cvrgrp | |
| IM_FLG_USE_FIXED_CVRGRP | = lv_im_flg_use_fixed_cvrgrp | |
| IM_FLG_USE_FIXED_GRANT | = lv_im_flg_use_fixed_grant | |
| IM_FLG_USE_FIXED_FUND | = lv_im_flg_use_fixed_fund | |
| IM_FISCYEAR | = lv_im_fiscyear | |
| IM_FLG_USE_FIXED_BUDGET_PD | = lv_im_flg_use_fixed_budget_pd | |
| IM_FLG_USE_FIXED_FUNDSCTR | = lv_im_flg_use_fixed_fundsctr | |
| IM_FLG_USE_FIXED_CMMTITEM | = lv_im_flg_use_fixed_cmmtitem | |
| IM_FLG_USE_FIXED_FUNCAREA | = lv_im_flg_use_fixed_funcarea | |
| IM_FLG_USE_FIXED_MEASURE | = lv_im_flg_use_fixed_measure | |
| IM_FLG_USE_FIXED_USERDIM | = lv_im_flg_use_fixed_userdim | |
| IM_S_FIXED_VALUES | = lv_im_s_fixed_values | |
| IM_S_FIXED_REF_ADDRESS | = lv_im_s_fixed_ref_address | |
| IM_CEFFYEAR | = lv_im_ceffyear | |
| IM_RBBLDNR | = lv_im_rbbldnr | |
| IM_BUDCAT | = lv_im_budcat | |
| IM_VERSION | = lv_im_version | |
| IM_FLG_SOURCE | = lv_im_flg_source | |
| IM_FLG_SELECT_SINGLE | = lv_im_flg_select_single | |
| IM_FLG_WITHOUT_CVRGRP | = lv_im_flg_without_cvrgrp | |
| IMPORTING | ||
| EX_T_RIBOBJ_AND_BUDREC | = lv_ex_t_ribobj_and_budrec | |
| EXCEPTIONS | ||
| INVALID_SELECTION_CRITERIA = 1 | ||
| . " FMRB_SELECT_RIB_RULES_RECS | ||
ABAP code using 7.40 inline data declarations to call FM FMRB_SELECT_RIB_RULES_RECS
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_im_flg_without_grant) | = ' '. | |||
| DATA(ld_im_flg_without_fund) | = ' '. | |||
| DATA(ld_im_flg_without_budget_pd) | = ' '. | |||
| DATA(ld_im_flg_without_funcarea) | = ' '. | |||
| DATA(ld_im_flg_without_measure) | = ' '. | |||
| DATA(ld_im_flg_without_userdim) | = 'X'. | |||
| DATA(ld_im_flg_exclude_blank_cvrgrp) | = ' '. | |||
| DATA(ld_im_flg_use_fixed_cvrgrp) | = ' '. | |||
| DATA(ld_im_flg_use_fixed_grant) | = ' '. | |||
| DATA(ld_im_flg_use_fixed_fund) | = ' '. | |||
| DATA(ld_im_flg_use_fixed_budget_pd) | = ' '. | |||
| DATA(ld_im_flg_use_fixed_fundsctr) | = ' '. | |||
| DATA(ld_im_flg_use_fixed_cmmtitem) | = ' '. | |||
| DATA(ld_im_flg_use_fixed_funcarea) | = ' '. | |||
| DATA(ld_im_flg_use_fixed_measure) | = ' '. | |||
| DATA(ld_im_flg_use_fixed_userdim) | = ' '. | |||
| DATA(ld_im_flg_source) | = 'X'. | |||
| DATA(ld_im_flg_select_single) | = 'X'. | |||
| DATA(ld_im_flg_without_cvrgrp) | = ' '. | |||
Search for further information about these or an SAP related objects