SAP Function Modules

RIB_CHECKS_ON_MTHD SAP Function module







RIB_CHECKS_ON_MTHD 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 RIB_CHECKS_ON_MTHD into the relevant SAP transaction such as SE37 or SE80.

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


Pattern for FM RIB_CHECKS_ON_MTHD - RIB CHECKS ON MTHD





CALL FUNCTION 'RIB_CHECKS_ON_MTHD' "
* EXPORTING
*   ip_f_revn_hhmk =            " fmkt_finanzkonto
*   ip_flg_fmaa = 'X'           "
*   ip_f_revn_pool =            " fmkt_pool_int
*   ip_flg_pool = ' '           "
*   ip_f_global_data =          " fmkt_global_int
*   ip_rib_mthd =               " fmudrule-udmethode
*   ip_f_rib_rule =             " fmudrule
*   ip_valtp =                  " bpja-wrttp
* CHANGING
*   c_t_fmudrel =               " fmkt_t_fmudrel_all
  EXCEPTIONS
    FAILED = 1                  "
    .  "  RIB_CHECKS_ON_MTHD

ABAP code example for Function Module RIB_CHECKS_ON_MTHD





The ABAP code below is a full code listing to execute function module RIB_CHECKS_ON_MTHD 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_c_t_fmudrel) = 'Check type of data required'.
DATA(ld_ip_f_revn_hhmk) = 'Check type of data required'.
DATA(ld_ip_flg_fmaa) = 'some text here'.
DATA(ld_ip_f_revn_pool) = 'Check type of data required'.
DATA(ld_ip_flg_pool) = 'some text here'.
DATA(ld_ip_f_global_data) = 'Check type of data required'.

SELECT single UDMETHODE
FROM FMUDRULE
INTO @DATA(ld_ip_rib_mthd).

DATA(ld_ip_f_rib_rule) = 'Check type of data required'.

SELECT single WRTTP
FROM BPJA
INTO @DATA(ld_ip_valtp).
. CALL FUNCTION 'RIB_CHECKS_ON_MTHD' * EXPORTING * ip_f_revn_hhmk = ld_ip_f_revn_hhmk * ip_flg_fmaa = ld_ip_flg_fmaa * ip_f_revn_pool = ld_ip_f_revn_pool * ip_flg_pool = ld_ip_flg_pool * ip_f_global_data = ld_ip_f_global_data * ip_rib_mthd = ld_ip_rib_mthd * ip_f_rib_rule = ld_ip_f_rib_rule * ip_valtp = ld_ip_valtp * CHANGING * c_t_fmudrel = ld_c_t_fmudrel EXCEPTIONS FAILED = 1 . " RIB_CHECKS_ON_MTHD
IF SY-SUBRC EQ 0. "All OK ELSEIF SY-SUBRC EQ 1. "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_c_t_fmudrel  TYPE FMKT_T_FMUDREL_ALL ,
ld_ip_f_revn_hhmk  TYPE FMKT_FINANZKONTO ,
ld_ip_flg_fmaa  TYPE STRING ,
ld_ip_f_revn_pool  TYPE FMKT_POOL_INT ,
ld_ip_flg_pool  TYPE STRING ,
ld_ip_f_global_data  TYPE FMKT_GLOBAL_INT ,
ld_ip_rib_mthd  TYPE FMUDRULE-UDMETHODE ,
ld_ip_f_rib_rule  TYPE FMUDRULE ,
ld_ip_valtp  TYPE BPJA-WRTTP .

ld_c_t_fmudrel = 'Check type of data required'.
ld_ip_f_revn_hhmk = 'Check type of data required'.
ld_ip_flg_fmaa = 'some text here'.
ld_ip_f_revn_pool = 'Check type of data required'.
ld_ip_flg_pool = 'some text here'.
ld_ip_f_global_data = 'Check type of data required'.

SELECT single UDMETHODE
FROM FMUDRULE
INTO ld_ip_rib_mthd.

ld_ip_f_rib_rule = 'Check type of data required'.

SELECT single WRTTP
FROM BPJA
INTO ld_ip_valtp.

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 RIB_CHECKS_ON_MTHD or its description.