SAP TV_MRM_METHODS Function Module for Bewertungen im Marktrisiko
TV_MRM_METHODS is a standard tv mrm methods SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Bewertungen im Marktrisiko 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 tv mrm methods FM, simply by entering the name TV_MRM_METHODS into the relevant SAP transaction such as SE37 or SE38.
Function Group: TVCOMPUTE
Program Name: SAPLTVCOMPUTE
Main Program: SAPLTVCOMPUTE
Appliation area: F
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function TV_MRM_METHODS 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 'TV_MRM_METHODS'"Bewertungen im Marktrisiko.
EXPORTING
I_T_SFGDT = "
I_ATSYC = "
I_AKTUDAT = "
I_AUSWT = "
I_RES_CURR = "
TABLES
I_T_METHODEN = "Angeforderte Bewertungsmethoden
I_T_ATVMO = "
* E_T_METHODEN = "Ausgabe der Ergebnisse
* E_T_CASHFLOW = "Ausgabe der Ergebnisse
* E_T_EXPOSURE = "Ausgabe der Ergebnisse
IMPORTING Parameters details for TV_MRM_METHODS
I_T_SFGDT -
Data type: TVRT6_SFGDT_TABOptional: No
Call by Reference: No ( called with pass by value option)
I_ATSYC -
Data type: ATSYCOptional: No
Call by Reference: Yes
I_AKTUDAT -
Data type: SY-DATUMOptional: No
Call by Reference: Yes
I_AUSWT -
Data type: ATVMO-AUSWTOptional: No
Call by Reference: Yes
I_RES_CURR -
Data type: VZBEST-WGSCHFTOptional: No
Call by Reference: Yes
TABLES Parameters details for TV_MRM_METHODS
I_T_METHODEN - Angeforderte Bewertungsmethoden
Data type: VTVMETHOD1Optional: No
Call by Reference: No ( called with pass by value option)
I_T_ATVMO -
Data type: ATVMOOptional: No
Call by Reference: No ( called with pass by value option)
E_T_METHODEN - Ausgabe der Ergebnisse
Data type: VTVMETHODOptional: Yes
Call by Reference: No ( called with pass by value option)
E_T_CASHFLOW - Ausgabe der Ergebnisse
Data type: VTVCASHFLOptional: Yes
Call by Reference: No ( called with pass by value option)
E_T_EXPOSURE - Ausgabe der Ergebnisse
Data type: VTVCASHFLOptional: Yes
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for TV_MRM_METHODS 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_i_t_sfgdt | TYPE TVRT6_SFGDT_TAB, " | |||
| lt_i_t_methoden | TYPE STANDARD TABLE OF VTVMETHOD1, " | |||
| lv_i_atsyc | TYPE ATSYC, " | |||
| lt_i_t_atvmo | TYPE STANDARD TABLE OF ATVMO, " | |||
| lv_i_aktudat | TYPE SY-DATUM, " | |||
| lt_e_t_methoden | TYPE STANDARD TABLE OF VTVMETHOD, " | |||
| lv_i_auswt | TYPE ATVMO-AUSWT, " | |||
| lt_e_t_cashflow | TYPE STANDARD TABLE OF VTVCASHFL, " | |||
| lv_i_res_curr | TYPE VZBEST-WGSCHFT, " | |||
| lt_e_t_exposure | TYPE STANDARD TABLE OF VTVCASHFL. " |
|   CALL FUNCTION 'TV_MRM_METHODS' "Bewertungen im Marktrisiko |
| EXPORTING | ||
| I_T_SFGDT | = lv_i_t_sfgdt | |
| I_ATSYC | = lv_i_atsyc | |
| I_AKTUDAT | = lv_i_aktudat | |
| I_AUSWT | = lv_i_auswt | |
| I_RES_CURR | = lv_i_res_curr | |
| TABLES | ||
| I_T_METHODEN | = lt_i_t_methoden | |
| I_T_ATVMO | = lt_i_t_atvmo | |
| E_T_METHODEN | = lt_e_t_methoden | |
| E_T_CASHFLOW | = lt_e_t_cashflow | |
| E_T_EXPOSURE | = lt_e_t_exposure | |
| . " TV_MRM_METHODS | ||
ABAP code using 7.40 inline data declarations to call FM TV_MRM_METHODS
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 SY INTO @DATA(ld_i_aktudat). | ||||
| "SELECT single AUSWT FROM ATVMO INTO @DATA(ld_i_auswt). | ||||
| "SELECT single WGSCHFT FROM VZBEST INTO @DATA(ld_i_res_curr). | ||||
Search for further information about these or an SAP related objects