SAP RM_PROT_MSEG Function Module for Schreibt Marktdatensatz ins Protokoll









RM_PROT_MSEG is a standard rm prot mseg SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Schreibt Marktdatensatz ins Protokoll 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 prot mseg FM, simply by entering the name RM_PROT_MSEG into the relevant SAP transaction such as SE37 or SE38.

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



Function RM_PROT_MSEG 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_PROT_MSEG'"Schreibt Marktdatensatz ins Protokoll
EXPORTING
* LEVEL = '1' "Log Level
* SEXTGAP = "Gap: Processing Indicator
* EXDEST = "GAP: Destination for External Business Analysis
* EXFUNC = "GAP: RFC - Function Name for External Business Analysis
* VOLART_1_G = "Volatility Type: Bid
* VOLART_2_G = "Volatility Type: Bid
* VOLART_1_B = "Volatility Type: Ask
* VOLART_2_B = "Volatility Type: Ask
* KORRARTG = "'Bid' Correlation Type
* KORRARTB = "'Ask' Correlation Type
* ZKART_RF_G = "RF YC Type: Bid
* ZKART_G = "YC Type: Bid
* ZKART_RF_B = "RF YC Type: Ask
* CTY_VOLA_B = "Volitility Type 'Bid' for Commodity Transactions
* CTY_VOLA_A = "Volitility Type 'Ask' for Commodity Transactions
* CTY_CURVE_B = "Commodity Curve Type Bid
* CTY_CURVE_A = "Commodity Curve Type Ask
* BSP_CURVE_B = "Basis Spread Curve Type
* BSP_CURVE_A = "Basis Spread Curve Type
* IO_SPREAD = "Derived Spread Curves
* ZKART_B = "YC Type: Ask
* KURST_G = "Exchange Rate Category: Bid
* KURST_B = "Exchange Rate Category: Ask
* WPKURSART = "Security Price Type
* VOLART_G = "Volatility Type: Bid
* VOLART_B = "Volatility Type: Ask
* SDATUM = "Gap: Date Indicator
.



IMPORTING Parameters details for RM_PROT_MSEG

LEVEL - Log Level

Data type: SPROT-LEVEL
Default: '1'
Optional: Yes
Call by Reference: No ( called with pass by value option)

SEXTGAP - Gap: Processing Indicator

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

EXDEST - GAP: Destination for External Business Analysis

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

EXFUNC - GAP: RFC - Function Name for External Business Analysis

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

VOLART_1_G - Volatility Type: Bid

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

VOLART_2_G - Volatility Type: Bid

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

VOLART_1_B - Volatility Type: Ask

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

VOLART_2_B - Volatility Type: Ask

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

KORRARTG - 'Bid' Correlation Type

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

KORRARTB - 'Ask' Correlation Type

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

ZKART_RF_G - RF YC Type: Bid

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

ZKART_G - YC Type: Bid

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

ZKART_RF_B - RF YC Type: Ask

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

CTY_VOLA_B - Volitility Type 'Bid' for Commodity Transactions

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

CTY_VOLA_A - Volitility Type 'Ask' for Commodity Transactions

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

CTY_CURVE_B - Commodity Curve Type Bid

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

CTY_CURVE_A - Commodity Curve Type Ask

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

BSP_CURVE_B - Basis Spread Curve Type

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

BSP_CURVE_A - Basis Spread Curve Type

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

IO_SPREAD - Derived Spread Curves

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

ZKART_B - YC Type: Ask

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

KURST_G - Exchange Rate Category: Bid

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

KURST_B - Exchange Rate Category: Ask

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

WPKURSART - Security Price Type

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

VOLART_G - Volatility Type: Bid

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

VOLART_B - Volatility Type: Ask

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

SDATUM - Gap: Date Indicator

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

Copy and paste ABAP code example for RM_PROT_MSEG 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_level  TYPE SPROT-LEVEL, "   '1'
lv_sextgap  TYPE VTVFGMSGAP-SEXTGAP, "   
lv_exdest  TYPE VTVFGMSGAP-EXDEST, "   
lv_exfunc  TYPE VTVFGMSGAP-EXFUNC, "   
lv_volart_1_g  TYPE ATVO1-VOLART, "   
lv_volart_2_g  TYPE ATVO1-VOLART, "   
lv_volart_1_b  TYPE ATVO1-VOLART, "   
lv_volart_2_b  TYPE ATVO1-VOLART, "   
lv_korrartg  TYPE TV_KORRARTG, "   
lv_korrartb  TYPE TV_KORRARTB, "   
lv_zkart_rf_g  TYPE JBD11-SZKART, "   
lv_zkart_g  TYPE JBD11-SZKART, "   
lv_zkart_rf_b  TYPE JBD11-SZKART, "   
lv_cty_vola_b  TYPE TB_COVOTYPB, "   
lv_cty_vola_a  TYPE TB_COVOTYPA, "   
lv_cty_curve_b  TYPE TB_CTY_CURVE_B, "   
lv_cty_curve_a  TYPE TB_CTY_CURVE_A, "   
lv_bsp_curve_b  TYPE FTBB_YC_BSCT, "   
lv_bsp_curve_a  TYPE FTBB_YC_BSCT, "   
lv_io_spread  TYPE IF_FTBB_YC_SPREAD_CURVES, "   
lv_zkart_b  TYPE JBD11-SZKART, "   
lv_kurst_g  TYPE TCURV-KURST, "   
lv_kurst_b  TYPE TCURV-KURST, "   
lv_wpkursart  TYPE TW56-SKURSART, "   
lv_volart_g  TYPE ATVO1-VOLART, "   
lv_volart_b  TYPE ATVO1-VOLART, "   
lv_sdatum  TYPE VTVFGMSGAP-SDATUM. "   

  CALL FUNCTION 'RM_PROT_MSEG'  "Schreibt Marktdatensatz ins Protokoll
    EXPORTING
         LEVEL = lv_level
         SEXTGAP = lv_sextgap
         EXDEST = lv_exdest
         EXFUNC = lv_exfunc
         VOLART_1_G = lv_volart_1_g
         VOLART_2_G = lv_volart_2_g
         VOLART_1_B = lv_volart_1_b
         VOLART_2_B = lv_volart_2_b
         KORRARTG = lv_korrartg
         KORRARTB = lv_korrartb
         ZKART_RF_G = lv_zkart_rf_g
         ZKART_G = lv_zkart_g
         ZKART_RF_B = lv_zkart_rf_b
         CTY_VOLA_B = lv_cty_vola_b
         CTY_VOLA_A = lv_cty_vola_a
         CTY_CURVE_B = lv_cty_curve_b
         CTY_CURVE_A = lv_cty_curve_a
         BSP_CURVE_B = lv_bsp_curve_b
         BSP_CURVE_A = lv_bsp_curve_a
         IO_SPREAD = lv_io_spread
         ZKART_B = lv_zkart_b
         KURST_G = lv_kurst_g
         KURST_B = lv_kurst_b
         WPKURSART = lv_wpkursart
         VOLART_G = lv_volart_g
         VOLART_B = lv_volart_b
         SDATUM = lv_sdatum
. " RM_PROT_MSEG




ABAP code using 7.40 inline data declarations to call FM RM_PROT_MSEG

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 LEVEL FROM SPROT INTO @DATA(ld_level).
DATA(ld_level) = '1'.
 
"SELECT single SEXTGAP FROM VTVFGMSGAP INTO @DATA(ld_sextgap).
 
"SELECT single EXDEST FROM VTVFGMSGAP INTO @DATA(ld_exdest).
 
"SELECT single EXFUNC FROM VTVFGMSGAP INTO @DATA(ld_exfunc).
 
"SELECT single VOLART FROM ATVO1 INTO @DATA(ld_volart_1_g).
 
"SELECT single VOLART FROM ATVO1 INTO @DATA(ld_volart_2_g).
 
"SELECT single VOLART FROM ATVO1 INTO @DATA(ld_volart_1_b).
 
"SELECT single VOLART FROM ATVO1 INTO @DATA(ld_volart_2_b).
 
 
 
"SELECT single SZKART FROM JBD11 INTO @DATA(ld_zkart_rf_g).
 
"SELECT single SZKART FROM JBD11 INTO @DATA(ld_zkart_g).
 
"SELECT single SZKART FROM JBD11 INTO @DATA(ld_zkart_rf_b).
 
 
 
 
 
 
 
 
"SELECT single SZKART FROM JBD11 INTO @DATA(ld_zkart_b).
 
"SELECT single KURST FROM TCURV INTO @DATA(ld_kurst_g).
 
"SELECT single KURST FROM TCURV INTO @DATA(ld_kurst_b).
 
"SELECT single SKURSART FROM TW56 INTO @DATA(ld_wpkursart).
 
"SELECT single VOLART FROM ATVO1 INTO @DATA(ld_volart_g).
 
"SELECT single VOLART FROM ATVO1 INTO @DATA(ld_volart_b).
 
"SELECT single SDATUM FROM VTVFGMSGAP INTO @DATA(ld_sdatum).
 


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!