SAP RM_SVA_SELECTIONS_CHECK Function Module for RM: Eingabeprüfung für Einzelwertanalyse









RM_SVA_SELECTIONS_CHECK is a standard rm sva selections check 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: Eingabeprüfung für Einzelwertanalyse 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 sva selections check FM, simply by entering the name RM_SVA_SELECTIONS_CHECK 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_SVA_SELECTIONS_CHECK 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_SVA_SELECTIONS_CHECK'"RM: Eingabeprüfung für Einzelwertanalyse
EXPORTING
* I_ANTYPE = "Typ der Einzelwertanalyse
* I_DATE = "Aktuelles Datum
* X_DATE_OTHER_SCREEN = "Kennz.: Datum auf anderem Subscreen
* I_HORI = "Horizont
* X_HORI_OTHER_SCREEN = "Kennz.: Horizont auf anderem Subscreen
* I_SCEN = "Szenario
* I_SCEN2 = "2. Szenario
* I_SHIFT = "Marktdatenshift
* I_SHIFT2 = "2. Marktdatenshift
* I_RHID = "Risikohierarchie
* I_RHNODE = "Risikohierarchieknoten
* I_EVAL = "Auswertungsart
* I_HISTD = "Historischer Tag
* I_PERIOD = "Haltedauer
* I_SAMPT = "Stichprobentyp
* I_AGGRONLY = "Kennzeichen: nur verdichtete Daten
* I_KEYFIG1 = "Kennzahl
* I_KEYFIG2 = "Kennzahl
* X_EVAL_OTHER_SCREEN = "Kennz.: Ausw.-Art auf anderem Subscreen
* I_RMDA = "Risikomanagementbereich
* I_VIEW = "Sicht
* I_PHID = "Portfoliohierarchie
* I_NODE = "PH-Knoten
* I_CURR = "Anzeigewährung
* X_CURR_OTHER_SCREEN = "Kennz.: Währung auf anderem Subscreen

TABLES
* S_SCEN = "Selektionstabelle Szenarien
* S_SHIFT = "Selektionstabelle Shifts

EXCEPTIONS
SELECTION_ERROR = 1
.



IMPORTING Parameters details for RM_SVA_SELECTIONS_CHECK

I_ANTYPE - Typ der Einzelwertanalyse

Data type: RMSVA_ANTYPE
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_DATE - Aktuelles Datum

Data type: RMSVA_SPARA-DATUM
Optional: Yes
Call by Reference: No ( called with pass by value option)

X_DATE_OTHER_SCREEN - Kennz.: Datum auf anderem Subscreen

Data type: RMFOS_BOOL
Optional: Yes
Call by Reference: Yes

I_HORI - Horizont

Data type: RMSVA_SPARA-HORIZONT
Optional: Yes
Call by Reference: No ( called with pass by value option)

X_HORI_OTHER_SCREEN - Kennz.: Horizont auf anderem Subscreen

Data type: RMFOS_BOOL
Optional: Yes
Call by Reference: Yes

I_SCEN - Szenario

Data type: RMSVA_SPARA-SZENARI
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_SCEN2 - 2. Szenario

Data type: RMSVA_SPARA-SZENARI
Optional: Yes
Call by Reference: Yes

I_SHIFT - Marktdatenshift

Data type: RMSVA_SPARA-REGELID
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_SHIFT2 - 2. Marktdatenshift

Data type: RMSVA_SPARA-REGELID
Optional: Yes
Call by Reference: Yes

I_RHID - Risikohierarchie

Data type: RMSVA_SPARA-HIERARCHIE
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_RHNODE - Risikohierarchieknoten

Data type: RMSVA_SPARA-RKNOTEN
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_EVAL - Auswertungsart

Data type: RMSVA_SPARA-AUSWERTUNG
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_HISTD - Historischer Tag

Data type: JBREOHS-HISTTAG
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_PERIOD - Haltedauer

Data type: RMSVA_SPARA-UNWIND
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_SAMPT - Stichprobentyp

Data type: RMSVA_SPARA-SAMPTYP
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_AGGRONLY - Kennzeichen: nur verdichtete Daten

Data type: JBRFLDDOCU-AGGRONLY
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_KEYFIG1 - Kennzahl

Data type: RMNPVKEYF
Optional: Yes
Call by Reference: Yes

I_KEYFIG2 - Kennzahl

Data type: RMNPVKEYF
Optional: Yes
Call by Reference: Yes

X_EVAL_OTHER_SCREEN - Kennz.: Ausw.-Art auf anderem Subscreen

Data type: RMFOS_BOOL
Optional: Yes
Call by Reference: Yes

I_RMDA - Risikomanagementbereich

Data type: RMSVA_SPARA-RMBID
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_VIEW - Sicht

Data type: RMSVA_SPARA-SICHTID
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_PHID - Portfoliohierarchie

Data type: RMSVA_SPARA-PHID
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_NODE - PH-Knoten

Data type: RMSVA_SPARA-PKNOTEN
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_CURR - Anzeigewährung

Data type: RMSVA_SPARA-WAERS
Optional: Yes
Call by Reference: No ( called with pass by value option)

X_CURR_OTHER_SCREEN - Kennz.: Währung auf anderem Subscreen

Data type: RMFOS_BOOL
Optional: Yes
Call by Reference: Yes

TABLES Parameters details for RM_SVA_SELECTIONS_CHECK

S_SCEN - Selektionstabelle Szenarien

Data type: JBRSZENRAN
Optional: Yes
Call by Reference: Yes

S_SHIFT - Selektionstabelle Shifts

Data type: JBRREGRAN
Optional: Yes
Call by Reference: Yes

EXCEPTIONS details

SELECTION_ERROR - Fehler in den Eingaben

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

Copy and paste ABAP code example for RM_SVA_SELECTIONS_CHECK 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:
lt_s_scen  TYPE STANDARD TABLE OF JBRSZENRAN, "   
lv_i_antype  TYPE RMSVA_ANTYPE, "   
lv_selection_error  TYPE RMSVA_ANTYPE, "   
lv_i_date  TYPE RMSVA_SPARA-DATUM, "   
lv_x_date_other_screen  TYPE RMFOS_BOOL, "   
lv_i_hori  TYPE RMSVA_SPARA-HORIZONT, "   
lv_x_hori_other_screen  TYPE RMFOS_BOOL, "   
lv_i_scen  TYPE RMSVA_SPARA-SZENARI, "   
lv_i_scen2  TYPE RMSVA_SPARA-SZENARI, "   
lv_i_shift  TYPE RMSVA_SPARA-REGELID, "   
lv_i_shift2  TYPE RMSVA_SPARA-REGELID, "   
lv_i_rhid  TYPE RMSVA_SPARA-HIERARCHIE, "   
lv_i_rhnode  TYPE RMSVA_SPARA-RKNOTEN, "   
lv_i_eval  TYPE RMSVA_SPARA-AUSWERTUNG, "   
lt_s_shift  TYPE STANDARD TABLE OF JBRREGRAN, "   
lv_i_histd  TYPE JBREOHS-HISTTAG, "   
lv_i_period  TYPE RMSVA_SPARA-UNWIND, "   
lv_i_sampt  TYPE RMSVA_SPARA-SAMPTYP, "   
lv_i_aggronly  TYPE JBRFLDDOCU-AGGRONLY, "   
lv_i_keyfig1  TYPE RMNPVKEYF, "   
lv_i_keyfig2  TYPE RMNPVKEYF, "   
lv_x_eval_other_screen  TYPE RMFOS_BOOL, "   
lv_i_rmda  TYPE RMSVA_SPARA-RMBID, "   
lv_i_view  TYPE RMSVA_SPARA-SICHTID, "   
lv_i_phid  TYPE RMSVA_SPARA-PHID, "   
lv_i_node  TYPE RMSVA_SPARA-PKNOTEN, "   
lv_i_curr  TYPE RMSVA_SPARA-WAERS, "   
lv_x_curr_other_screen  TYPE RMFOS_BOOL. "   

  CALL FUNCTION 'RM_SVA_SELECTIONS_CHECK'  "RM: Eingabeprüfung für Einzelwertanalyse
    EXPORTING
         I_ANTYPE = lv_i_antype
         I_DATE = lv_i_date
         X_DATE_OTHER_SCREEN = lv_x_date_other_screen
         I_HORI = lv_i_hori
         X_HORI_OTHER_SCREEN = lv_x_hori_other_screen
         I_SCEN = lv_i_scen
         I_SCEN2 = lv_i_scen2
         I_SHIFT = lv_i_shift
         I_SHIFT2 = lv_i_shift2
         I_RHID = lv_i_rhid
         I_RHNODE = lv_i_rhnode
         I_EVAL = lv_i_eval
         I_HISTD = lv_i_histd
         I_PERIOD = lv_i_period
         I_SAMPT = lv_i_sampt
         I_AGGRONLY = lv_i_aggronly
         I_KEYFIG1 = lv_i_keyfig1
         I_KEYFIG2 = lv_i_keyfig2
         X_EVAL_OTHER_SCREEN = lv_x_eval_other_screen
         I_RMDA = lv_i_rmda
         I_VIEW = lv_i_view
         I_PHID = lv_i_phid
         I_NODE = lv_i_node
         I_CURR = lv_i_curr
         X_CURR_OTHER_SCREEN = lv_x_curr_other_screen
    TABLES
         S_SCEN = lt_s_scen
         S_SHIFT = lt_s_shift
    EXCEPTIONS
        SELECTION_ERROR = 1
. " RM_SVA_SELECTIONS_CHECK




ABAP code using 7.40 inline data declarations to call FM RM_SVA_SELECTIONS_CHECK

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 DATUM FROM RMSVA_SPARA INTO @DATA(ld_i_date).
 
 
"SELECT single HORIZONT FROM RMSVA_SPARA INTO @DATA(ld_i_hori).
 
 
"SELECT single SZENARI FROM RMSVA_SPARA INTO @DATA(ld_i_scen).
 
"SELECT single SZENARI FROM RMSVA_SPARA INTO @DATA(ld_i_scen2).
 
"SELECT single REGELID FROM RMSVA_SPARA INTO @DATA(ld_i_shift).
 
"SELECT single REGELID FROM RMSVA_SPARA INTO @DATA(ld_i_shift2).
 
"SELECT single HIERARCHIE FROM RMSVA_SPARA INTO @DATA(ld_i_rhid).
 
"SELECT single RKNOTEN FROM RMSVA_SPARA INTO @DATA(ld_i_rhnode).
 
"SELECT single AUSWERTUNG FROM RMSVA_SPARA INTO @DATA(ld_i_eval).
 
 
"SELECT single HISTTAG FROM JBREOHS INTO @DATA(ld_i_histd).
 
"SELECT single UNWIND FROM RMSVA_SPARA INTO @DATA(ld_i_period).
 
"SELECT single SAMPTYP FROM RMSVA_SPARA INTO @DATA(ld_i_sampt).
 
"SELECT single AGGRONLY FROM JBRFLDDOCU INTO @DATA(ld_i_aggronly).
 
 
 
 
"SELECT single RMBID FROM RMSVA_SPARA INTO @DATA(ld_i_rmda).
 
"SELECT single SICHTID FROM RMSVA_SPARA INTO @DATA(ld_i_view).
 
"SELECT single PHID FROM RMSVA_SPARA INTO @DATA(ld_i_phid).
 
"SELECT single PKNOTEN FROM RMSVA_SPARA INTO @DATA(ld_i_node).
 
"SELECT single WAERS FROM RMSVA_SPARA INTO @DATA(ld_i_curr).
 
 


Search for further information about these or an SAP related objects



Comments on this SAP object

What made you want to lookup this SAP object? Please tell us what you were looking for and anything you would like to be included on this page!