RM_PROT_FORWARD_RATE is a standard SAP function module available within R/3 SAP systems depending on your version and release level. Below is the pattern details for this FM showing its interface including any import and export parameters, exceptions etc as well as any documentation contributions (Comments) specific to the object.
See here to view full function module documentation and code listing, simply by entering the name RM_PROT_FORWARD_RATE into the relevant SAP transaction such as SE37 or SE80.
Associated Function Group:
RMPR
Released Date:
Not Released
Processing type: Normal fucntion module
CALL FUNCTION 'RM_PROT_FORWARD_RATE' "Schreibt Daten zu einer forward rate-Berechnung ins Protokoll
EXPORTING
* level = '1' " sprot-level Log Level
* start = " sy-datum
* end = " sy-datum
short_rate = " jbd11-igkm Interest Rate for Start of Term
long_rate = " jbd11-igkm Interest Rate for End of Term
* zbm_curve = " jbd14-szbmeth
* zbm_rate = " jbd14-szbmeth
* i_paymnt_rhythm_curve = " any
* i_paymnt_rhythm_rate = " any
* i_comp_freq_curve = " any
* i_comp_freq_rate = " any
* rate_par = " jbd11-igkm
* rate_zero = " jbd11-ifr
* fcurve = " tb_fcurve Curve type for forward calculation
* referenz = " referenz Reference Interest Rate
. " RM_PROT_FORWARD_RATE
The ABAP code below is a full code listing to execute function module RM_PROT_FORWARD_RATE including all data declarations. The code uses 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 original method of declaring data variables up front. 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).
DATA(ld_level) = Check type of data required
DATA(ld_start) = '20210129'.
DATA(ld_end) = '20210129'.
SELECT single IGKM
FROM JBD11
INTO @DATA(ld_short_rate).
SELECT single IGKM
FROM JBD11
INTO @DATA(ld_long_rate).
SELECT single SZBMETH
FROM JBD14
INTO @DATA(ld_zbm_curve).
SELECT single SZBMETH
FROM JBD14
INTO @DATA(ld_zbm_rate).
DATA(ld_i_paymnt_rhythm_curve) = '20210129'.
DATA(ld_i_paymnt_rhythm_rate) = '20210129'.
DATA(ld_i_comp_freq_curve) = '20210129'.
DATA(ld_i_comp_freq_rate) = '20210129'.
SELECT single IGKM
FROM JBD11
INTO @DATA(ld_rate_par).
SELECT single IFR
FROM JBD11
INTO @DATA(ld_rate_zero).
DATA(ld_fcurve) = '20210129'.
DATA(ld_referenz) = '20210129'. . CALL FUNCTION 'RM_PROT_FORWARD_RATE' EXPORTING * level = ld_level * start = ld_start * end = ld_end short_rate = ld_short_rate long_rate = ld_long_rate * zbm_curve = ld_zbm_curve * zbm_rate = ld_zbm_rate * i_paymnt_rhythm_curve = ld_i_paymnt_rhythm_curve * i_paymnt_rhythm_rate = ld_i_paymnt_rhythm_rate * i_comp_freq_curve = ld_i_comp_freq_curve * i_comp_freq_rate = ld_i_comp_freq_rate * rate_par = ld_rate_par * rate_zero = ld_rate_zero * fcurve = ld_fcurve * referenz = ld_referenz . " RM_PROT_FORWARD_RATE
IF SY-SUBRC EQ 0. "All OK ENDIF.
The below ABAP code uses the older none in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. It may also be useful if you are using an older version of SAP as some of the newer syntax above, such as the @DATA is not available until 4.70 EHP 8.
DATA:
| ld_level | TYPE SPROT-LEVEL , |
| ld_start | TYPE SY-DATUM , |
| ld_end | TYPE SY-DATUM , |
| ld_short_rate | TYPE JBD11-IGKM , |
| ld_long_rate | TYPE JBD11-IGKM , |
| ld_zbm_curve | TYPE JBD14-SZBMETH , |
| ld_zbm_rate | TYPE JBD14-SZBMETH , |
| ld_i_paymnt_rhythm_curve | TYPE ANY , |
| ld_i_paymnt_rhythm_rate | TYPE ANY , |
| ld_i_comp_freq_curve | TYPE ANY , |
| ld_i_comp_freq_rate | TYPE ANY , |
| ld_rate_par | TYPE JBD11-IGKM , |
| ld_rate_zero | TYPE JBD11-IFR , |
| ld_fcurve | TYPE TB_FCURVE , |
| ld_referenz | TYPE REFERENZ . |
Please help keep this info upto date and use the comments section below to add useful hints, tips and information specific to this SAP function. This will then be available for you and other users to easily find by simply searching on the object name RM_PROT_FORWARD_RATE or its description.
RM_PROT_FORWARD_RATE - Schreibt Daten zu einer forward rate-Berechnung ins Protokoll RM_PROT_FIX_CASHFLOW_HEAD - Schreibt Überschrift für fixe Cashflows ins Protokoll RM_PROT_FIX_CASHFLOW - Schreibt eine Zeile eines fixen Cashflows ins Protokoll RM_PROT_FIDUCIARY - Writes Data for a Fiduciary Calculation to Log RM_PROT_EXP_PV_FLOWS - Display Exposure Flows with Present Value RM_PROT_EXP_FLOWS - Display the Exposure Pricing and Delivery Flows in Log