SAP TV_OPTION_WITH_UL_METHODS Function Module for Option mit Underlying Steuerung









TV_OPTION_WITH_UL_METHODS is a standard tv option with ul 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 Option mit Underlying Steuerung 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 option with ul methods FM, simply by entering the name TV_OPTION_WITH_UL_METHODS into the relevant SAP transaction such as SE37 or SE38.

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



Function TV_OPTION_WITH_UL_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_OPTION_WITH_UL_METHODS'"Option mit Underlying Steuerung
EXPORTING
* AKT_DATUM = SY-DATUM "aktuelles Datum
* BACKDATE = SY-DATUM "Konditionsdatum f. Preistabelle
* KURSART = "Kursart d. Preistabelle
I_VZBEST = "Feldleiste mit Kopfdaten der Option
I_UL_VZBEST = "Feldleiste Stammdaten d. Underlyings
I_VZOPTI = "Feldleiste mit Kopfdaten der Optio
* RES_CURR = ' DEM' "Währung des Ergebnises
* AUSWTYP = '01' "Auswertungstyp (Standard = 01) Customizing!
I_MSEG = "Marktdaten Einstellungen
I_UL_MSEG = "Marktdatenparameter d. Underlyings
* FLG_PRICETAB = 0 "Flag Preistabelle benutzen

IMPORTING
MISSING_FIXING = "Zins wurde nicht gefixt

TABLES
E_CASHFLOW = "Cashflowtabelle
E_METHODEN = "Exportstruktur Ergebnisse
I_METHODEN = "zu rechnende Methoden
I_VZBEWEG = "Zusatzbewegungen (Prämienzahlungen!)
E_EXPOSURE = "Exposuretabelle
I_UL_VZBEWEG = "Bewegungen d. Underlyings

EXCEPTIONS
MARKET_DATA_RATES = 1 MARKET_DATA_SPOT = 2 NO_CALC = 3 FILL_VARIABLE = 4 NO_DATA_IN_ATSYC = 5
.



IMPORTING Parameters details for TV_OPTION_WITH_UL_METHODS

AKT_DATUM - aktuelles Datum

Data type: SY-DATUM
Default: SY-DATUM
Optional: Yes
Call by Reference: No ( called with pass by value option)

BACKDATE - Konditionsdatum f. Preistabelle

Data type: VTVBAR-DATABS
Default: SY-DATUM
Optional: Yes
Call by Reference: No ( called with pass by value option)

KURSART - Kursart d. Preistabelle

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

I_VZBEST - Feldleiste mit Kopfdaten der Option

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

I_UL_VZBEST - Feldleiste Stammdaten d. Underlyings

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

I_VZOPTI - Feldleiste mit Kopfdaten der Optio

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

RES_CURR - Währung des Ergebnises

Data type: JBDCFLOW-WWAERS
Default: ' DEM'
Optional: Yes
Call by Reference: No ( called with pass by value option)

AUSWTYP - Auswertungstyp (Standard = 01) Customizing!

Data type: ATVMO-AUSWT
Default: '01'
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_MSEG - Marktdaten Einstellungen

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

I_UL_MSEG - Marktdatenparameter d. Underlyings

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

FLG_PRICETAB - Flag Preistabelle benutzen

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

EXPORTING Parameters details for TV_OPTION_WITH_UL_METHODS

MISSING_FIXING - Zins wurde nicht gefixt

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

TABLES Parameters details for TV_OPTION_WITH_UL_METHODS

E_CASHFLOW - Cashflowtabelle

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

E_METHODEN - Exportstruktur Ergebnisse

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

I_METHODEN - zu rechnende Methoden

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

I_VZBEWEG - Zusatzbewegungen (Prämienzahlungen!)

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

E_EXPOSURE - Exposuretabelle

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

I_UL_VZBEWEG - Bewegungen d. Underlyings

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

EXCEPTIONS details

MARKET_DATA_RATES - Fehler bei Marktdatenbesorgung Zinsen

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

MARKET_DATA_SPOT - Fehler bei Marktdatenbesorgung Kurse

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

NO_CALC - Fehler beim Rechnen

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

FILL_VARIABLE - Fehler bei Auflösung der vari. Zinsreferenzen

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

NO_DATA_IN_ATSYC -

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

Copy and paste ABAP code example for TV_OPTION_WITH_UL_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_akt_datum  TYPE SY-DATUM, "   SY-DATUM
lt_e_cashflow  TYPE STANDARD TABLE OF VTVCASHFL, "   
lv_missing_fixing  TYPE VTVCASHFL, "   
lv_market_data_rates  TYPE VTVCASHFL, "   
lv_backdate  TYPE VTVBAR-DATABS, "   SY-DATUM
lv_kursart  TYPE VTVBAR-OKUART, "   
lv_i_vzbest  TYPE JBRBEST, "   
lt_e_methoden  TYPE STANDARD TABLE OF VTVMETHOD, "   
lv_market_data_spot  TYPE VTVMETHOD, "   
lv_no_calc  TYPE VTVMETHOD, "   
lt_i_methoden  TYPE STANDARD TABLE OF VTVMETHOD, "   
lv_i_ul_vzbest  TYPE JBRBEST, "   
lv_i_vzopti  TYPE JBROPTI, "   
lt_i_vzbeweg  TYPE STANDARD TABLE OF JBRBEWEG, "   
lv_fill_variable  TYPE JBRBEWEG, "   
lv_res_curr  TYPE JBDCFLOW-WWAERS, "   ' DEM'
lt_e_exposure  TYPE STANDARD TABLE OF VTVCASHFL, "   
lv_no_data_in_atsyc  TYPE VTVCASHFL, "   
lv_auswtyp  TYPE ATVMO-AUSWT, "   '01'
lt_i_ul_vzbeweg  TYPE STANDARD TABLE OF JBRBEWEG, "   
lv_i_mseg  TYPE JBRMSEG, "   
lv_i_ul_mseg  TYPE JBRMSEG, "   
lv_flg_pricetab  TYPE VTV_USEPRT-USEPRITAB. "   0

  CALL FUNCTION 'TV_OPTION_WITH_UL_METHODS'  "Option mit Underlying Steuerung
    EXPORTING
         AKT_DATUM = lv_akt_datum
         BACKDATE = lv_backdate
         KURSART = lv_kursart
         I_VZBEST = lv_i_vzbest
         I_UL_VZBEST = lv_i_ul_vzbest
         I_VZOPTI = lv_i_vzopti
         RES_CURR = lv_res_curr
         AUSWTYP = lv_auswtyp
         I_MSEG = lv_i_mseg
         I_UL_MSEG = lv_i_ul_mseg
         FLG_PRICETAB = lv_flg_pricetab
    IMPORTING
         MISSING_FIXING = lv_missing_fixing
    TABLES
         E_CASHFLOW = lt_e_cashflow
         E_METHODEN = lt_e_methoden
         I_METHODEN = lt_i_methoden
         I_VZBEWEG = lt_i_vzbeweg
         E_EXPOSURE = lt_e_exposure
         I_UL_VZBEWEG = lt_i_ul_vzbeweg
    EXCEPTIONS
        MARKET_DATA_RATES = 1
        MARKET_DATA_SPOT = 2
        NO_CALC = 3
        FILL_VARIABLE = 4
        NO_DATA_IN_ATSYC = 5
. " TV_OPTION_WITH_UL_METHODS




ABAP code using 7.40 inline data declarations to call FM TV_OPTION_WITH_UL_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_akt_datum).
DATA(ld_akt_datum) = SY-DATUM.
 
 
 
 
"SELECT single DATABS FROM VTVBAR INTO @DATA(ld_backdate).
DATA(ld_backdate) = SY-DATUM.
 
"SELECT single OKUART FROM VTVBAR INTO @DATA(ld_kursart).
 
 
 
 
 
 
 
 
 
 
"SELECT single WWAERS FROM JBDCFLOW INTO @DATA(ld_res_curr).
DATA(ld_res_curr) = ' DEM'.
 
 
 
"SELECT single AUSWT FROM ATVMO INTO @DATA(ld_auswtyp).
DATA(ld_auswtyp) = '01'.
 
 
 
 
"SELECT single USEPRITAB FROM VTV_USEPRT INTO @DATA(ld_flg_pricetab).
 


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!