SAP TV_GET_WP_FROM_BUFFER Function Module for Wertpapierkurs aus Marktdatenpuffer holen









TV_GET_WP_FROM_BUFFER is a standard tv get wp from buffer SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Wertpapierkurs aus Marktdatenpuffer holen 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 get wp from buffer FM, simply by entering the name TV_GET_WP_FROM_BUFFER into the relevant SAP transaction such as SE37 or SE38.

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



Function TV_GET_WP_FROM_BUFFER 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_GET_WP_FROM_BUFFER'"Wertpapierkurs aus Marktdatenpuffer holen
EXPORTING
* KONDDATUM = SY-DATUM "Datum, zu dem Kurs angefordert wird
* SZENARIO = "
* NOTTYPE = 1 "
RANL = "Quot: 1 Einheit 1. ausgedrückt in 2. Währung
RHANDPL = "
SKURSART = "

IMPORTING
E_VTVSZWPKU = "Ausgabestruktur

EXCEPTIONS
NOT_F_KURS = 1 NO_INITIALIZATION = 2
.



IMPORTING Parameters details for TV_GET_WP_FROM_BUFFER

KONDDATUM - Datum, zu dem Kurs angefordert wird

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

SZENARIO -

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

NOTTYPE -

Data type: JBRBEST-SNOTTYPE
Default: 1
Optional: Yes
Call by Reference: No ( called with pass by value option)

RANL - Quot: 1 Einheit 1. ausgedrückt in 2. Währung

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

RHANDPL -

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

SKURSART -

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

EXPORTING Parameters details for TV_GET_WP_FROM_BUFFER

E_VTVSZWPKU - Ausgabestruktur

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

EXCEPTIONS details

NOT_F_KURS - Währung nicht gefunden

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

NO_INITIALIZATION - Puffer nicht initialisiert

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

Copy and paste ABAP code example for TV_GET_WP_FROM_BUFFER 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_konddatum  TYPE JBD11-DKOND, "   SY-DATUM
lv_not_f_kurs  TYPE JBD11, "   
lv_e_vtvszwpku  TYPE VTVSZWPKU, "   
lv_szenario  TYPE VTVSZKO-SZENARI, "   
lv_no_initialization  TYPE VTVSZKO, "   
lv_nottype  TYPE JBRBEST-SNOTTYPE, "   1
lv_ranl  TYPE JBRBEST-RANL, "   
lv_rhandpl  TYPE JBRBEST-RHANDPL, "   
lv_skursart  TYPE ATRAS-SKURSART. "   

  CALL FUNCTION 'TV_GET_WP_FROM_BUFFER'  "Wertpapierkurs aus Marktdatenpuffer holen
    EXPORTING
         KONDDATUM = lv_konddatum
         SZENARIO = lv_szenario
         NOTTYPE = lv_nottype
         RANL = lv_ranl
         RHANDPL = lv_rhandpl
         SKURSART = lv_skursart
    IMPORTING
         E_VTVSZWPKU = lv_e_vtvszwpku
    EXCEPTIONS
        NOT_F_KURS = 1
        NO_INITIALIZATION = 2
. " TV_GET_WP_FROM_BUFFER




ABAP code using 7.40 inline data declarations to call FM TV_GET_WP_FROM_BUFFER

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 DKOND FROM JBD11 INTO @DATA(ld_konddatum).
DATA(ld_konddatum) = SY-DATUM.
 
 
 
"SELECT single SZENARI FROM VTVSZKO INTO @DATA(ld_szenario).
 
 
"SELECT single SNOTTYPE FROM JBRBEST INTO @DATA(ld_nottype).
DATA(ld_nottype) = 1.
 
"SELECT single RANL FROM JBRBEST INTO @DATA(ld_ranl).
 
"SELECT single RHANDPL FROM JBRBEST INTO @DATA(ld_rhandpl).
 
"SELECT single SKURSART FROM ATRAS INTO @DATA(ld_skursart).
 


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!