SAP Function Modules

RM_MM_FIDUCIARY_METHOD SAP Function module - Method module to compute NPV for Fiduciary Deposits







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

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


Pattern for FM RM_MM_FIDUCIARY_METHOD - RM MM FIDUCIARY METHOD





CALL FUNCTION 'RM_MM_FIDUCIARY_METHOD' "Method module to compute NPV for Fiduciary Deposits
  EXPORTING
*   i_akt_datum = SY-DATUM      " sy-datum      Current Date of Application Server
    i_res_curr =                " vtvfgko-sbwhr  Currency of Nominal Amount
    i_gid_root =                " jbry_int4     Integer Table Type
    i_meth_tab =                " tvm_meth_tab
  IMPORTING
    e_meo_tab =                 " tvm_meo_tab
  CHANGING
    c_tv1_fget_tab =            " jbry_fget     FGET Table Type
  EXCEPTIONS
    NO_CALC = 1                 "
    .  "  RM_MM_FIDUCIARY_METHOD

ABAP code example for Function Module RM_MM_FIDUCIARY_METHOD





The ABAP code below is a full code listing to execute function module RM_MM_FIDUCIARY_METHOD 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_e_meo_tab  TYPE TVM_MEO_TAB .

DATA(ld_c_tv1_fget_tab) = 'Check type of data required'.
DATA(ld_i_akt_datum) = '20210129'.

DATA(ld_i_res_curr) = Check type of data required
DATA(ld_i_gid_root) = '20210129'.
DATA(ld_i_meth_tab) = '20210129'. . CALL FUNCTION 'RM_MM_FIDUCIARY_METHOD' EXPORTING * i_akt_datum = ld_i_akt_datum i_res_curr = ld_i_res_curr i_gid_root = ld_i_gid_root i_meth_tab = ld_i_meth_tab IMPORTING e_meo_tab = ld_e_meo_tab CHANGING c_tv1_fget_tab = ld_c_tv1_fget_tab EXCEPTIONS NO_CALC = 1 . " RM_MM_FIDUCIARY_METHOD
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_tv1_fget_tab  TYPE JBRY_FGET ,
ld_e_meo_tab  TYPE TVM_MEO_TAB ,
ld_i_akt_datum  TYPE SY-DATUM ,
ld_i_res_curr  TYPE VTVFGKO-SBWHR ,
ld_i_gid_root  TYPE JBRY_INT4 ,
ld_i_meth_tab  TYPE TVM_METH_TAB .

ld_c_tv1_fget_tab = '20210129'.
ld_i_akt_datum = '20210129'.

ld_i_res_curr = Check type of data required
ld_i_gid_root = '20210129'.
ld_i_meth_tab = '20210129'.

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