SAP Function Modules

FMRB_CHECK_RIB_RECEIVERS SAP Function module - Verify if Budget Address May Receive Budget from RIB Object







FMRB_CHECK_RIB_RECEIVERS is a standard SAP function module available within R/3 SAP systems depending on your version and release level. Below is the pattern details for this FM showing its interface including any import and export parameters, exceptions etc as well as any documentation contributions (Comments) specific to the object.

See here to view full function module documentation and code listing, simply by entering the name FMRB_CHECK_RIB_RECEIVERS into the relevant SAP transaction such as SE37 or SE80.

Associated Function Group: FMRB_EVALUATION
Released Date: Not Released
Processing type: Normal fucntion module
Normal function module settings


Pattern for FM FMRB_CHECK_RIB_RECEIVERS - FMRB CHECK RIB RECEIVERS





CALL FUNCTION 'FMRB_CHECK_RIB_RECEIVERS' "Verify if Budget Address May Receive Budget from RIB Object
  EXPORTING
    im_fm_area =                " fikrs         Financial Management Area
    im_fiscyear =               " gjahr         Fiscal Year
*   im_ceffyear =               " gnjhr         Year of Cash Effectivity
*   im_budcat =                 " buku_budcat   Budget category
*   im_rbbldnr =                " burb_rbbldnr  Budget Category for Revenue Increasing the Budget
    im_version =                " buku_version  Budget version
    im_t_addresses_with_role =   " fmrb_t_address_with_role  RIB: Table of Budget Addresses With Role Definition
*   im_total_rib_amount =       " lvalxx9       Budget Amount for RIB, as Specified in a Document  (>0)
  EXCEPTIONS
    ERROR_RIB_OBJECT = 1        "               Invalid RIB object
    ERROR_BUDGET_RECEIVERS = 2  "               Inconsistent choice of receiving budget addresses
    RIB_AMOUNT_TOO_BIG = 3      "               The RIB amount is not covered by revenues
    .  "  FMRB_CHECK_RIB_RECEIVERS

ABAP code example for Function Module FMRB_CHECK_RIB_RECEIVERS





The ABAP code below is a full code listing to execute function module FMRB_CHECK_RIB_RECEIVERS including all data declarations. The code uses 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 original method of declaring data variables up front. 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).


DATA(ld_im_fm_area) = 'Check type of data required'.
DATA(ld_im_fiscyear) = 'Check type of data required'.
DATA(ld_im_ceffyear) = 'Check type of data required'.
DATA(ld_im_budcat) = 'Check type of data required'.
DATA(ld_im_rbbldnr) = 'Check type of data required'.
DATA(ld_im_version) = 'Check type of data required'.
DATA(ld_im_t_addresses_with_role) = 'Check type of data required'.
DATA(ld_im_total_rib_amount) = 'Check type of data required'. . CALL FUNCTION 'FMRB_CHECK_RIB_RECEIVERS' EXPORTING im_fm_area = ld_im_fm_area im_fiscyear = ld_im_fiscyear * im_ceffyear = ld_im_ceffyear * im_budcat = ld_im_budcat * im_rbbldnr = ld_im_rbbldnr im_version = ld_im_version im_t_addresses_with_role = ld_im_t_addresses_with_role * im_total_rib_amount = ld_im_total_rib_amount EXCEPTIONS ERROR_RIB_OBJECT = 1 ERROR_BUDGET_RECEIVERS = 2 RIB_AMOUNT_TOO_BIG = 3 . " FMRB_CHECK_RIB_RECEIVERS
IF SY-SUBRC EQ 0. "All OK ELSEIF SY-SUBRC EQ 1. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 2. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 3. "Exception "Add code for exception here ENDIF.







ABAP code to compare 7.40 inline data declaration with original syntax

The below ABAP code uses the older none in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. It may also be useful if you are using an older version of SAP as some of the newer syntax above, such as the @DATA is not available until 4.70 EHP 8.

DATA:
ld_im_fm_area  TYPE FIKRS ,
ld_im_fiscyear  TYPE GJAHR ,
ld_im_ceffyear  TYPE GNJHR ,
ld_im_budcat  TYPE BUKU_BUDCAT ,
ld_im_rbbldnr  TYPE BURB_RBBLDNR ,
ld_im_version  TYPE BUKU_VERSION ,
ld_im_t_addresses_with_role  TYPE FMRB_T_ADDRESS_WITH_ROLE ,
ld_im_total_rib_amount  TYPE LVALXX9 .

ld_im_fm_area = 'Check type of data required'.
ld_im_fiscyear = 'Check type of data required'.
ld_im_ceffyear = 'Check type of data required'.
ld_im_budcat = 'Check type of data required'.
ld_im_rbbldnr = 'Check type of data required'.
ld_im_version = 'Check type of data required'.
ld_im_t_addresses_with_role = 'Check type of data required'.
ld_im_total_rib_amount = 'Check type of data required'.

Contribute (Add Comments)

Please help keep this info upto date and use the comments section below to add useful hints, tips and information specific to this SAP function. This will then be available for you and other users to easily find by simply searching on the object name FMRB_CHECK_RIB_RECEIVERS or its description.