SAP RM_SL_DATA_SELECT_FOR_MRM Function Module for RiskM: Lesen der Geschäftsdaten von der DB (alte Struktur)









RM_SL_DATA_SELECT_FOR_MRM is a standard rm sl data select for mrm SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for RiskM: Lesen der Geschäftsdaten von der DB (alte Struktur) 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 sl data select for mrm FM, simply by entering the name RM_SL_DATA_SELECT_FOR_MRM into the relevant SAP transaction such as SE37 or SE38.

Function Group: TVSL
Program Name: SAPLTVSL
Main Program: SAPLTVSL
Appliation area: F
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:



Function RM_SL_DATA_SELECT_FOR_MRM 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_SL_DATA_SELECT_FOR_MRM'"RiskM: Lesen der Geschäftsdaten von der DB (alte Struktur)
EXPORTING
* DEVISEN = "Selektion von Devisen ja/nein (X/ )
* DATE = "Stichtag (Periodenbeginn)
* AUSZDARL_ONLY = "Nur ausgezahlte Darlehen berücksichtigen
* I_FLG_SFGZUSTT = "Option wird auch dann geliefert, wenn 'Aussortier'Zustand am Stichtag eintritt
* I_FLG_READ_EXERCISED = "Auch ausgeübte Optionen werden geliefert
* DERIVATE = "Selektion von Derivaten ja/nein (X/ )
* GELDHANDEL = "Selektion von GH-geschäften ja/nein (X/ )
* TRANGE_FOR_DE_FX_MM = "Kriterien für Selektionsbausteine
* WERTPAPIERE = "Selektion von Wertpapieren ja/nein (X/ )
* SELTAB_FOR_SE = "Kriterien für Selektion Wertpapiere über TIF
* FRANGE_FOR_SE = "
* DARLEHEN = "Selektion von Darlehen ja/nein (X/ )
* FRANGE_FOR_LO = "

IMPORTING
E_T_RISK_CARRIER = "

TABLES
* I_BEST = "Bestandsdaten
* I_BEWEG = "Bewegungsdaten
* I_OPTI = "Optionsdaten
* I_U_BEWEG = "Underlying-Bewegungsdaten
* S_SANLF = "Notwendig für Derivateselektion
* S_ZUOND = "Notwendig für Darlehen/Wertpapierselektion
* S_REFER = "Notwendig für Darlehen/Wertpapierselektion
* S_MERKM = "Notwendig für Darlehen/Wertpapierselektion
.



IMPORTING Parameters details for RM_SL_DATA_SELECT_FOR_MRM

DEVISEN - Selektion von Devisen ja/nein (X/ )

Data type: RFVWLSP-JDEVISEN
Optional: Yes
Call by Reference: Yes

DATE - Stichtag (Periodenbeginn)

Data type: SY-DATUM
Optional: Yes
Call by Reference: Yes

AUSZDARL_ONLY - Nur ausgezahlte Darlehen berücksichtigen

Data type: RFVWLSP-XAUSZDARL
Optional: Yes
Call by Reference: Yes

I_FLG_SFGZUSTT - Option wird auch dann geliefert, wenn 'Aussortier'Zustand am Stichtag eintritt

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

I_FLG_READ_EXERCISED - Auch ausgeübte Optionen werden geliefert

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

DERIVATE - Selektion von Derivaten ja/nein (X/ )

Data type: RFVWLSP-JDERIVAT
Optional: Yes
Call by Reference: Yes

GELDHANDEL - Selektion von GH-geschäften ja/nein (X/ )

Data type: RFVWLSP-JGELDHA
Optional: Yes
Call by Reference: Yes

TRANGE_FOR_DE_FX_MM - Kriterien für Selektionsbausteine

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

WERTPAPIERE - Selektion von Wertpapieren ja/nein (X/ )

Data type: RFVWLSP-JWERTP
Optional: Yes
Call by Reference: Yes

SELTAB_FOR_SE - Kriterien für Selektion Wertpapiere über TIF

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

FRANGE_FOR_SE -

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

DARLEHEN - Selektion von Darlehen ja/nein (X/ )

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

FRANGE_FOR_LO -

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

EXPORTING Parameters details for RM_SL_DATA_SELECT_FOR_MRM

E_T_RISK_CARRIER -

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

TABLES Parameters details for RM_SL_DATA_SELECT_FOR_MRM

I_BEST - Bestandsdaten

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

I_BEWEG - Bewegungsdaten

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

I_OPTI - Optionsdaten

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

I_U_BEWEG - Underlying-Bewegungsdaten

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

S_SANLF - Notwendig für Derivateselektion

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

S_ZUOND - Notwendig für Darlehen/Wertpapierselektion

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

S_REFER - Notwendig für Darlehen/Wertpapierselektion

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

S_MERKM - Notwendig für Darlehen/Wertpapierselektion

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

Copy and paste ABAP code example for RM_SL_DATA_SELECT_FOR_MRM 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_i_best  TYPE STANDARD TABLE OF VZBEST, "   
lv_devisen  TYPE RFVWLSP-JDEVISEN, "   
lv_e_t_risk_carrier  TYPE TVRT6_SFGDT_TAB, "   
lv_date  TYPE SY-DATUM, "   
lv_auszdarl_only  TYPE RFVWLSP-XAUSZDARL, "   
lv_i_flg_sfgzustt  TYPE XFELD, "   
lv_i_flg_read_exercised  TYPE XFELD, "   
lt_i_beweg  TYPE STANDARD TABLE OF VZBEWEG, "   
lv_derivate  TYPE RFVWLSP-JDERIVAT, "   
lt_i_opti  TYPE STANDARD TABLE OF VZOPTI, "   
lv_geldhandel  TYPE RFVWLSP-JGELDHA, "   
lt_i_u_beweg  TYPE STANDARD TABLE OF VZBEWEG, "   
lv_trange_for_de_fx_mm  TYPE RSDS_TRANGE, "   
lt_s_sanlf  TYPE STANDARD TABLE OF TVSL_SANLF_TAB, "   
lv_wertpapiere  TYPE RFVWLSP-JWERTP, "   
lt_s_zuond  TYPE STANDARD TABLE OF TVSL_ZUOND_TAB, "   
lv_seltab_for_se  TYPE TVSL_DBSEL_TAB, "   
lt_s_refer  TYPE STANDARD TABLE OF TVSL_REFER_TAB, "   
lv_frange_for_se  TYPE RSDS_FRANGE_T, "   
lt_s_merkm  TYPE STANDARD TABLE OF TVSL_MERKM_TAB, "   
lv_darlehen  TYPE RFVWLSP-JDARL, "   
lv_frange_for_lo  TYPE RSDS_FRANGE_T. "   

  CALL FUNCTION 'RM_SL_DATA_SELECT_FOR_MRM'  "RiskM: Lesen der Geschäftsdaten von der DB (alte Struktur)
    EXPORTING
         DEVISEN = lv_devisen
         DATE = lv_date
         AUSZDARL_ONLY = lv_auszdarl_only
         I_FLG_SFGZUSTT = lv_i_flg_sfgzustt
         I_FLG_READ_EXERCISED = lv_i_flg_read_exercised
         DERIVATE = lv_derivate
         GELDHANDEL = lv_geldhandel
         TRANGE_FOR_DE_FX_MM = lv_trange_for_de_fx_mm
         WERTPAPIERE = lv_wertpapiere
         SELTAB_FOR_SE = lv_seltab_for_se
         FRANGE_FOR_SE = lv_frange_for_se
         DARLEHEN = lv_darlehen
         FRANGE_FOR_LO = lv_frange_for_lo
    IMPORTING
         E_T_RISK_CARRIER = lv_e_t_risk_carrier
    TABLES
         I_BEST = lt_i_best
         I_BEWEG = lt_i_beweg
         I_OPTI = lt_i_opti
         I_U_BEWEG = lt_i_u_beweg
         S_SANLF = lt_s_sanlf
         S_ZUOND = lt_s_zuond
         S_REFER = lt_s_refer
         S_MERKM = lt_s_merkm
. " RM_SL_DATA_SELECT_FOR_MRM




ABAP code using 7.40 inline data declarations to call FM RM_SL_DATA_SELECT_FOR_MRM

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 JDEVISEN FROM RFVWLSP INTO @DATA(ld_devisen).
 
 
"SELECT single DATUM FROM SY INTO @DATA(ld_date).
 
"SELECT single XAUSZDARL FROM RFVWLSP INTO @DATA(ld_auszdarl_only).
 
 
 
 
"SELECT single JDERIVAT FROM RFVWLSP INTO @DATA(ld_derivate).
 
 
"SELECT single JGELDHA FROM RFVWLSP INTO @DATA(ld_geldhandel).
 
 
 
 
"SELECT single JWERTP FROM RFVWLSP INTO @DATA(ld_wertpapiere).
 
 
 
 
 
 
"SELECT single JDARL FROM RFVWLSP INTO @DATA(ld_darlehen).
 
 


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!