SAP RM_MARKET_DATA_YIELDS Function Module for Market Data Yields NEW









RM_MARKET_DATA_YIELDS is a standard rm market data yields SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Market Data Yields NEW 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 market data yields FM, simply by entering the name RM_MARKET_DATA_YIELDS into the relevant SAP transaction such as SE37 or SE38.

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



Function RM_MARKET_DATA_YIELDS 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_MARKET_DATA_YIELDS'"Market Data Yields NEW
EXPORTING
AKTDATUM = "
* SEQUENCE = "Scenario Progression
* CALC_PAR = 0 "
* CSPREAD = "Credit Spread
KONDDATUM = "
HORIZONT = "
* ZINSDATUM = "
SZKART = "Yield Curve Type
WGKM = "Currency of Transaction
* IS_CONTEXT = "
* SZENARIO = "Business Scenario
* SHIFTREGEL = "Rule Structure for Simulation Analyses

IMPORTING
W_JBD11 = "IS-B: Extended interest rate table
W_JBD11_F = "Table Line Type for Int. Rate Table with FLOAT Exactitude

TABLES
* E_JBD11 = "IS-B: Extended interest rate table

EXCEPTIONS
INVALID_DATES = 1 CURVE_NOT_DEFINED = 2 CURVE_NOT_FILLED = 3 NO_SEQUENCE = 4
.



IMPORTING Parameters details for RM_MARKET_DATA_YIELDS

AKTDATUM -

Data type: D
Optional: No
Call by Reference: Yes

SEQUENCE - Scenario Progression

Data type: VTVSZVERL-SZVERLAUF
Optional: Yes
Call by Reference: Yes

CALC_PAR -

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

CSPREAD - Credit Spread

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

KONDDATUM -

Data type: D
Optional: No
Call by Reference: Yes

HORIZONT -

Data type: D
Optional: No
Call by Reference: Yes

ZINSDATUM -

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

SZKART - Yield Curve Type

Data type: JBD11-SZKART
Optional: No
Call by Reference: Yes

WGKM - Currency of Transaction

Data type: JBD11-WGKM
Optional: No
Call by Reference: Yes

IS_CONTEXT -

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

SZENARIO - Business Scenario

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

SHIFTREGEL - Rule Structure for Simulation Analyses

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

EXPORTING Parameters details for RM_MARKET_DATA_YIELDS

W_JBD11 - IS-B: Extended interest rate table

Data type: JBD11
Optional: No
Call by Reference: Yes

W_JBD11_F - Table Line Type for Int. Rate Table with FLOAT Exactitude

Data type: JBD11F_TYP
Optional: No
Call by Reference: Yes

TABLES Parameters details for RM_MARKET_DATA_YIELDS

E_JBD11 - IS-B: Extended interest rate table

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

EXCEPTIONS details

INVALID_DATES -

Data type:
Optional: No
Call by Reference: Yes

CURVE_NOT_DEFINED -

Data type:
Optional: No
Call by Reference: Yes

CURVE_NOT_FILLED -

Data type:
Optional: No
Call by Reference: Yes

NO_SEQUENCE -

Data type:
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for RM_MARKET_DATA_YIELDS 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_e_jbd11  TYPE STANDARD TABLE OF JBD11, "   
lv_w_jbd11  TYPE JBD11, "   
lv_aktdatum  TYPE D, "   
lv_invalid_dates  TYPE D, "   
lv_sequence  TYPE VTVSZVERL-SZVERLAUF, "   
lv_calc_par  TYPE JBD2_NUMC1, "   0
lv_cspread  TYPE FTR_CSPREAD, "   
lv_konddatum  TYPE D, "   
lv_w_jbd11_f  TYPE JBD11F_TYP, "   
lv_curve_not_defined  TYPE JBD11F_TYP, "   
lv_horizont  TYPE D, "   
lv_curve_not_filled  TYPE D, "   
lv_zinsdatum  TYPE D, "   
lv_no_sequence  TYPE D, "   
lv_szkart  TYPE JBD11-SZKART, "   
lv_wgkm  TYPE JBD11-WGKM, "   
lv_is_context  TYPE TVSPR_S_CONTEXT, "   
lv_szenario  TYPE VTVSZKO-SZENARI, "   
lv_shiftregel  TYPE JBRREG. "   

  CALL FUNCTION 'RM_MARKET_DATA_YIELDS'  "Market Data Yields NEW
    EXPORTING
         AKTDATUM = lv_aktdatum
         SEQUENCE = lv_sequence
         CALC_PAR = lv_calc_par
         CSPREAD = lv_cspread
         KONDDATUM = lv_konddatum
         HORIZONT = lv_horizont
         ZINSDATUM = lv_zinsdatum
         SZKART = lv_szkart
         WGKM = lv_wgkm
         IS_CONTEXT = lv_is_context
         SZENARIO = lv_szenario
         SHIFTREGEL = lv_shiftregel
    IMPORTING
         W_JBD11 = lv_w_jbd11
         W_JBD11_F = lv_w_jbd11_f
    TABLES
         E_JBD11 = lt_e_jbd11
    EXCEPTIONS
        INVALID_DATES = 1
        CURVE_NOT_DEFINED = 2
        CURVE_NOT_FILLED = 3
        NO_SEQUENCE = 4
. " RM_MARKET_DATA_YIELDS




ABAP code using 7.40 inline data declarations to call FM RM_MARKET_DATA_YIELDS

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 SZVERLAUF FROM VTVSZVERL INTO @DATA(ld_sequence).
 
 
 
 
 
 
 
 
 
 
"SELECT single SZKART FROM JBD11 INTO @DATA(ld_szkart).
 
"SELECT single WGKM FROM JBD11 INTO @DATA(ld_wgkm).
 
 
"SELECT single SZENARI FROM VTVSZKO INTO @DATA(ld_szenario).
 
 


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!