TV_GET_YC_FROM_BUFFER 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 TV_GET_YC_FROM_BUFFER into the relevant SAP transaction such as SE37 or SE80.
Associated Function Group:
TVPU
Released Date:
Not Released
Processing type: Normal fucntion module
CALL FUNCTION 'TV_GET_YC_FROM_BUFFER' "Zinskurve(n) aus Marktdatenpuffer holen
* EXPORTING
* konddatum = SY-DATUM " jbd11-dkond Datum, zu dem Kurve benötigt wird
* szenario = SPACE " vtvszko-szenari Szenario, aus dem Kurve kommen soll
* i_mseg = " jbrmseg Marktdatenparameter
TABLES
e_vtvszzins = " vtvszzins Rückgabestruktur
s_yieldctype = " vtv_sopyc Angeforderte Zinskurvenarten und ihre Währungen
EXCEPTIONS
DEFAULT_YIELDCURVE_MISSING = 1 "
DIVISION_BY_ZERO = 2 "
KONDDAT_LT_OLDDAT = 3 "
NOT_F_JBD14 = 4 " Kurvenbeschreibung fehlt
NOT_F_SZENARIO = 5 " Szenario nicht gefunden
NO_CURVE_DATA = 6 " keine Kurvendaten
NO_INITIALIZATION = 7 " Puffer nicht initialisiert
OLDCURVE_EMPTY = 8 "
REFERENZZINS_MISSING = 9 "
. " TV_GET_YC_FROM_BUFFER
The ABAP code below is a full code listing to execute function module TV_GET_YC_FROM_BUFFER 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).
| it_e_vtvszzins | TYPE STANDARD TABLE OF VTVSZZINS,"TABLES PARAM |
| wa_e_vtvszzins | LIKE LINE OF it_e_vtvszzins , |
| it_s_yieldctype | TYPE STANDARD TABLE OF VTV_SOPYC,"TABLES PARAM |
| wa_s_yieldctype | LIKE LINE OF it_s_yieldctype . |
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_konddatum | TYPE JBD11-DKOND , |
| it_e_vtvszzins | TYPE STANDARD TABLE OF VTVSZZINS , |
| wa_e_vtvszzins | LIKE LINE OF it_e_vtvszzins, |
| ld_szenario | TYPE VTVSZKO-SZENARI , |
| it_s_yieldctype | TYPE STANDARD TABLE OF VTV_SOPYC , |
| wa_s_yieldctype | LIKE LINE OF it_s_yieldctype, |
| ld_i_mseg | TYPE JBRMSEG . |
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 TV_GET_YC_FROM_BUFFER or its description.
TV_GET_YC_FROM_BUFFER - Zinskurve(n) aus Marktdatenpuffer holen TV_GET_WP_FROM_BUFFER - Wertpapierkurs aus Marktdatenpuffer holen TV_GET_WPVO_FROM_BUFFER - Wertpapiervolatilitäten aus Marktdatenpuffer holen TV_GET_VO_FROM_BUFFER - Währungskursvolatilitäten aus Marktdatenpuffer holen TV_GET_SCENARIO_YC_FROM_BUFFER - Zinskurve(n) aus Marktdatenpuffer holen TV_GET_REF_FROM_BOND - Refernzsatz besorgen, der zu einem Bond die Vola liefert