SAP RM_SINGLE_VALUE_ANALYSIS Function Module for RM: Einzelwertanalyse (Bewertung und Anzeige)
RM_SINGLE_VALUE_ANALYSIS is a standard rm single value analysis SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for RM: Einzelwertanalyse (Bewertung und Anzeige) 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 rm single value analysis FM, simply by entering the name RM_SINGLE_VALUE_ANALYSIS into the relevant SAP transaction such as SE37 or SE38.
Function Group: RMSVA
Program Name: SAPLRMSVA
Main Program: SAPLRMSVA
Appliation area: F
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function RM_SINGLE_VALUE_ANALYSIS 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 'RM_SINGLE_VALUE_ANALYSIS'"RM: Einzelwertanalyse (Bewertung und Anzeige).
EXPORTING
I_ANALYSIS_TYPE = "Analysetyp (Barwert, Sensi, HiSi, ...)
* I_SIMR_SEL_T = "Selektionstabelle Simulationsläufe
* I_PRLEVEL = "Protokollstufe
* I_DISVAR = "Anzeigevariante
* I_DISVAR_W = "Anzeigevariante (Struktur)
* I_XFACT = "Kennzeichen: Sensitivitätsfaktoren anzeigen
* I_XPHNAV = 'X' "Kennzeichen: Portfoliohierarchie anzeigen
* I_XMERGE = "Kennzeichen: Wiederholte Werte unterdr.
* I_RF_NPV = "Calculate the Risk Free Net Present Value
* I_FLG_OBJDIFF = "Display financial object differentiation
* I_QKF = "Calculate Quantity KeyFigure for Commodity Instruments
* I_COL_MODE = "Spaltenaufbau (Kennz., Szenarien, Shifts)
* I_KEYFIG = "Kennzahlauswahl
* I_XDIFF = "Kennzeichen: Differenzen zu aktuellen Marktdaten berechnen
I_SPARA_W = "Parameterstruktur
* I_SENSI_W = "Struktur Sensitivitätsparameter
* I_EVAL_METH_W = "Struktur Auswertungsmethoden
* I_CHAR_SEL_T = "Selektionstabelle RM-Bereichsmerkmale
* I_POS_SEL_T = "Selektionstabelle Bestandsnummern
IMPORTING Parameters details for RM_SINGLE_VALUE_ANALYSIS
I_ANALYSIS_TYPE - Analysetyp (Barwert, Sensi, HiSi, ...)
Data type: RMSVA_ANTYPEOptional: No
Call by Reference: Yes
I_SIMR_SEL_T - Selektionstabelle Simulationsläufe
Data type: RMFOS_SIMR_SEL_TOptional: Yes
Call by Reference: No ( called with pass by value option)
I_PRLEVEL - Protokollstufe
Data type: RMSVA_PRLEVELOptional: Yes
Call by Reference: Yes
I_DISVAR - Anzeigevariante
Data type: RMSVA_DISVAROptional: Yes
Call by Reference: Yes
I_DISVAR_W - Anzeigevariante (Struktur)
Data type: DISVARIANTOptional: Yes
Call by Reference: Yes
I_XFACT - Kennzeichen: Sensitivitätsfaktoren anzeigen
Data type: RMSVA_SFACTOptional: Yes
Call by Reference: Yes
I_XPHNAV - Kennzeichen: Portfoliohierarchie anzeigen
Data type: RMSVA_XPHNDefault: 'X'
Optional: Yes
Call by Reference: Yes
I_XMERGE - Kennzeichen: Wiederholte Werte unterdr.
Data type: RMSVA_XMERGEOptional: Yes
Call by Reference: Yes
I_RF_NPV - Calculate the Risk Free Net Present Value
Data type: JBRFLDDOCU-XRFNPVOptional: Yes
Call by Reference: Yes
I_FLG_OBJDIFF - Display financial object differentiation
Data type: JBRFLDDOCU-XOBJDIFFOptional: Yes
Call by Reference: Yes
I_QKF - Calculate Quantity KeyFigure for Commodity Instruments
Data type: JBRFLDDOCU-XQKFOptional: Yes
Call by Reference: Yes
I_COL_MODE - Spaltenaufbau (Kennz., Szenarien, Shifts)
Data type: RMSVA_COLMODEOptional: Yes
Call by Reference: Yes
I_KEYFIG - Kennzahlauswahl
Data type: RMNPVKEYFOptional: Yes
Call by Reference: Yes
I_XDIFF - Kennzeichen: Differenzen zu aktuellen Marktdaten berechnen
Data type: RMSVADIFFOptional: Yes
Call by Reference: Yes
I_SPARA_W - Parameterstruktur
Data type: RMSVA_SPARAOptional: No
Call by Reference: No ( called with pass by value option)
I_SENSI_W - Struktur Sensitivitätsparameter
Data type: RMSVA_SENSIOptional: Yes
Call by Reference: Yes
I_EVAL_METH_W - Struktur Auswertungsmethoden
Data type: RMR0_EVAL_METHOptional: Yes
Call by Reference: Yes
I_CHAR_SEL_T - Selektionstabelle RM-Bereichsmerkmale
Data type: RMFOS_CHAR_SEL_TOptional: Yes
Call by Reference: No ( called with pass by value option)
I_POS_SEL_T - Selektionstabelle Bestandsnummern
Data type: RMFOS_POS_SEL_TOptional: Yes
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for RM_SINGLE_VALUE_ANALYSIS 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_i_analysis_type | TYPE RMSVA_ANTYPE, " | |||
| lv_i_simr_sel_t | TYPE RMFOS_SIMR_SEL_T, " | |||
| lv_i_prlevel | TYPE RMSVA_PRLEVEL, " | |||
| lv_i_disvar | TYPE RMSVA_DISVAR, " | |||
| lv_i_disvar_w | TYPE DISVARIANT, " | |||
| lv_i_xfact | TYPE RMSVA_SFACT, " | |||
| lv_i_xphnav | TYPE RMSVA_XPHN, " 'X' | |||
| lv_i_xmerge | TYPE RMSVA_XMERGE, " | |||
| lv_i_rf_npv | TYPE JBRFLDDOCU-XRFNPV, " | |||
| lv_i_flg_objdiff | TYPE JBRFLDDOCU-XOBJDIFF, " | |||
| lv_i_qkf | TYPE JBRFLDDOCU-XQKF, " | |||
| lv_i_col_mode | TYPE RMSVA_COLMODE, " | |||
| lv_i_keyfig | TYPE RMNPVKEYF, " | |||
| lv_i_xdiff | TYPE RMSVADIFF, " | |||
| lv_i_spara_w | TYPE RMSVA_SPARA, " | |||
| lv_i_sensi_w | TYPE RMSVA_SENSI, " | |||
| lv_i_eval_meth_w | TYPE RMR0_EVAL_METH, " | |||
| lv_i_char_sel_t | TYPE RMFOS_CHAR_SEL_T, " | |||
| lv_i_pos_sel_t | TYPE RMFOS_POS_SEL_T. " |
|   CALL FUNCTION 'RM_SINGLE_VALUE_ANALYSIS' "RM: Einzelwertanalyse (Bewertung und Anzeige) |
| EXPORTING | ||
| I_ANALYSIS_TYPE | = lv_i_analysis_type | |
| I_SIMR_SEL_T | = lv_i_simr_sel_t | |
| I_PRLEVEL | = lv_i_prlevel | |
| I_DISVAR | = lv_i_disvar | |
| I_DISVAR_W | = lv_i_disvar_w | |
| I_XFACT | = lv_i_xfact | |
| I_XPHNAV | = lv_i_xphnav | |
| I_XMERGE | = lv_i_xmerge | |
| I_RF_NPV | = lv_i_rf_npv | |
| I_FLG_OBJDIFF | = lv_i_flg_objdiff | |
| I_QKF | = lv_i_qkf | |
| I_COL_MODE | = lv_i_col_mode | |
| I_KEYFIG | = lv_i_keyfig | |
| I_XDIFF | = lv_i_xdiff | |
| I_SPARA_W | = lv_i_spara_w | |
| I_SENSI_W | = lv_i_sensi_w | |
| I_EVAL_METH_W | = lv_i_eval_meth_w | |
| I_CHAR_SEL_T | = lv_i_char_sel_t | |
| I_POS_SEL_T | = lv_i_pos_sel_t | |
| . " RM_SINGLE_VALUE_ANALYSIS | ||
ABAP code using 7.40 inline data declarations to call FM RM_SINGLE_VALUE_ANALYSIS
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_i_xphnav) | = 'X'. | |||
| "SELECT single XRFNPV FROM JBRFLDDOCU INTO @DATA(ld_i_rf_npv). | ||||
| "SELECT single XOBJDIFF FROM JBRFLDDOCU INTO @DATA(ld_i_flg_objdiff). | ||||
| "SELECT single XQKF FROM JBRFLDDOCU INTO @DATA(ld_i_qkf). | ||||
Search for further information about these or an SAP related objects