SAP Function Modules

RM_PROT_STAT_CORR_RF SAP Function module - Statistics calculator: Volatilities, Risk Factor







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

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


Pattern for FM RM_PROT_STAT_CORR_RF - RM PROT STAT CORR RF





CALL FUNCTION 'RM_PROT_STAT_CORR_RF' "Statistics calculator: Volatilities, Risk Factor
  EXPORTING
*   i_level = '1'               " sprot-level   Log Level
*   i_lines = 1                 " i
    i_rhid =                    " jbrrhid       Risk Hierarchy
    i_rknoten1 =                " jbrrknoten    Node of Risk Hierarchy
    i_rart1 =                   " jbsrart       Semantic Risk Category in Risk Management
    i_rfactor1_descr =          " c
    i_rknoten2 =                " jbrrknoten    Node of Risk Hierarchy
    i_rart2 =                   " jbsrart       Semantic Risk Category in Risk Management
    i_rfactor2_descr =          " c
    i_misses_actual =           " jbrmisses     Number of Errors in Historical Data
    i_korr =                    " tv_korr       Correlation
    if_error =                  " c
    .  "  RM_PROT_STAT_CORR_RF

ABAP code example for Function Module RM_PROT_STAT_CORR_RF





The ABAP code below is a full code listing to execute function module RM_PROT_STAT_CORR_RF 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_i_level) = Check type of data required
DATA(ld_i_lines) = 'Check type of data required'.
DATA(ld_i_rhid) = 'Check type of data required'.
DATA(ld_i_rknoten1) = 'Check type of data required'.
DATA(ld_i_rart1) = 'Check type of data required'.
DATA(ld_i_rfactor1_descr) = 'Check type of data required'.
DATA(ld_i_rknoten2) = 'Check type of data required'.
DATA(ld_i_rart2) = 'Check type of data required'.
DATA(ld_i_rfactor2_descr) = 'Check type of data required'.
DATA(ld_i_misses_actual) = 'Check type of data required'.
DATA(ld_i_korr) = 'Check type of data required'.
DATA(ld_if_error) = 'Check type of data required'. . CALL FUNCTION 'RM_PROT_STAT_CORR_RF' EXPORTING * i_level = ld_i_level * i_lines = ld_i_lines i_rhid = ld_i_rhid i_rknoten1 = ld_i_rknoten1 i_rart1 = ld_i_rart1 i_rfactor1_descr = ld_i_rfactor1_descr i_rknoten2 = ld_i_rknoten2 i_rart2 = ld_i_rart2 i_rfactor2_descr = ld_i_rfactor2_descr i_misses_actual = ld_i_misses_actual i_korr = ld_i_korr if_error = ld_if_error . " RM_PROT_STAT_CORR_RF
IF SY-SUBRC EQ 0. "All OK 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_i_level  TYPE SPROT-LEVEL ,
ld_i_lines  TYPE I ,
ld_i_rhid  TYPE JBRRHID ,
ld_i_rknoten1  TYPE JBRRKNOTEN ,
ld_i_rart1  TYPE JBSRART ,
ld_i_rfactor1_descr  TYPE C ,
ld_i_rknoten2  TYPE JBRRKNOTEN ,
ld_i_rart2  TYPE JBSRART ,
ld_i_rfactor2_descr  TYPE C ,
ld_i_misses_actual  TYPE JBRMISSES ,
ld_i_korr  TYPE TV_KORR ,
ld_if_error  TYPE C .


ld_i_level = Check type of data required
ld_i_lines = 'Check type of data required'.
ld_i_rhid = 'Check type of data required'.
ld_i_rknoten1 = 'Check type of data required'.
ld_i_rart1 = 'Check type of data required'.
ld_i_rfactor1_descr = 'Check type of data required'.
ld_i_rknoten2 = 'Check type of data required'.
ld_i_rart2 = 'Check type of data required'.
ld_i_rfactor2_descr = 'Check type of data required'.
ld_i_misses_actual = 'Check type of data required'.
ld_i_korr = 'Check type of data required'.
ld_if_error = '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 RM_PROT_STAT_CORR_RF or its description.