SAP RM_VAR_KF_GET_PARAM Function Module for Returns currency, val-area and evaluation type for key figure
RM_VAR_KF_GET_PARAM is a standard rm var kf get param SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Returns currency, val-area and evaluation type for key figure 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 var kf get param FM, simply by entering the name RM_VAR_KF_GET_PARAM into the relevant SAP transaction such as SE37 or SE38.
Function Group: RMSVA
Program Name: SAPLRMSVA
Main Program: SAPLRMSVA
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function RM_VAR_KF_GET_PARAM 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_VAR_KF_GET_PARAM'"Returns currency, val-area and evaluation type for key figure.
EXPORTING
I_AFWKF = "Key Figure
I_DATE = "Date of Evaluation
IMPORTING
E_CURR = "Currency Key
E_VAL_AREA = "Valuation Area
E_EVAL = "ID of Risk Management Evaluation
E_RHID = "Risk Hierarchy
CHANGING
* C_HIST = "
EXCEPTIONS
FAILED = 1
IMPORTING Parameters details for RM_VAR_KF_GET_PARAM
I_AFWKF - Key Figure
Data type: AFWKF_DEFINITIONOptional: No
Call by Reference: Yes
I_DATE - Date of Evaluation
Data type: JBREVALDATOptional: No
Call by Reference: Yes
EXPORTING Parameters details for RM_VAR_KF_GET_PARAM
E_CURR - Currency Key
Data type: WAERSOptional: No
Call by Reference: Yes
E_VAL_AREA - Valuation Area
Data type: TPM_VAL_AREAOptional: No
Call by Reference: Yes
E_EVAL - ID of Risk Management Evaluation
Data type: JBREVAL_DOptional: No
Call by Reference: Yes
E_RHID - Risk Hierarchy
Data type: JBRRHIDOptional: No
Call by Reference: Yes
CHANGING Parameters details for RM_VAR_KF_GET_PARAM
C_HIST -
Data type: RMSVA_SPARA-HDATUMOptional: Yes
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
FAILED -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for RM_VAR_KF_GET_PARAM 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_c_hist | TYPE RMSVA_SPARA-HDATUM, " | |||
| lv_e_curr | TYPE WAERS, " | |||
| lv_failed | TYPE WAERS, " | |||
| lv_i_afwkf | TYPE AFWKF_DEFINITION, " | |||
| lv_i_date | TYPE JBREVALDAT, " | |||
| lv_e_val_area | TYPE TPM_VAL_AREA, " | |||
| lv_e_eval | TYPE JBREVAL_D, " | |||
| lv_e_rhid | TYPE JBRRHID. " |
|   CALL FUNCTION 'RM_VAR_KF_GET_PARAM' "Returns currency, val-area and evaluation type for key figure |
| EXPORTING | ||
| I_AFWKF | = lv_i_afwkf | |
| I_DATE | = lv_i_date | |
| IMPORTING | ||
| E_CURR | = lv_e_curr | |
| E_VAL_AREA | = lv_e_val_area | |
| E_EVAL | = lv_e_eval | |
| E_RHID | = lv_e_rhid | |
| CHANGING | ||
| C_HIST | = lv_c_hist | |
| EXCEPTIONS | ||
| FAILED = 1 | ||
| . " RM_VAR_KF_GET_PARAM | ||
ABAP code using 7.40 inline data declarations to call FM RM_VAR_KF_GET_PARAM
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.| "SELECT single HDATUM FROM RMSVA_SPARA INTO @DATA(ld_c_hist). | ||||
Search for further information about these or an SAP related objects