SAP FVWE_PRICING_SECURITY Function Module for Current Value of Security in Local Crcy and Pos. Crcy
FVWE_PRICING_SECURITY is a standard fvwe pricing security SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Current Value of Security in Local Crcy and Pos. Crcy 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 fvwe pricing security FM, simply by entering the name FVWE_PRICING_SECURITY into the relevant SAP transaction such as SE37 or SE38.
Function Group: FVWE
Program Name: SAPLFVWE
Main Program:
Appliation area: F
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function FVWE_PRICING_SECURITY 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 'FVWE_PRICING_SECURITY'"Current Value of Security in Local Crcy and Pos. Crcy.
EXPORTING
BEST_WHR = "Position Currency
STUECK = "Stückzahl des Wertpapierbestands
KURS_ABS_PROZ = "Kurs währungsunabhängig
BUKRS = "Company Code
DATUM = "Stichtag zur Tageswertberechnung
HAUS_WHR = "Hauswährung (Buchungskreis)
KURSBERECHNUNG = "Kursberechnung für Währungsumrechnung
KURS_WHR = "Währung des Kurses
MANDANT_WAER = "Mandantenwährung für Währungsumrechnung
NENNWERT = "Nominalwert des Wertpapierbestands
NOTIERUNG = "Notierung des Wertpapiers (Prozent/Stück)
IMPORTING
BWHR_KZ = "Flag: Amount Available in Position Currency
HWHR_KZ = "Kennzeichen, Betrag in Hauswährung verfügbar
KAUF_BWHR = "Kaufbetrag in Bestandswährung
KAUF_HWHR = "Kaufbetrag in Hauswährung
IMPORTING Parameters details for FVWE_PRICING_SECURITY
BEST_WHR - Position Currency
Data type: VWBEVI-SBWHROptional: No
Call by Reference: No ( called with pass by value option)
STUECK - Stückzahl des Wertpapierbestands
Data type: REVAL-ASTUECKOptional: No
Call by Reference: No ( called with pass by value option)
KURS_ABS_PROZ - Kurs währungsunabhängig
Data type: ATRAS-PKTKUROptional: No
Call by Reference: No ( called with pass by value option)
BUKRS - Company Code
Data type: VWBEVI-BUKRSOptional: No
Call by Reference: No ( called with pass by value option)
DATUM - Stichtag zur Tageswertberechnung
Data type: SY-DATUMOptional: No
Call by Reference: No ( called with pass by value option)
HAUS_WHR - Hauswährung (Buchungskreis)
Data type: VWBEVI-SBWHROptional: No
Call by Reference: No ( called with pass by value option)
KURSBERECHNUNG - Kursberechnung für Währungsumrechnung
Data type: TZBZ-RKURSBEROptional: No
Call by Reference: No ( called with pass by value option)
KURS_WHR - Währung des Kurses
Data type: VWBEVI-SBWHROptional: No
Call by Reference: No ( called with pass by value option)
MANDANT_WAER - Mandantenwährung für Währungsumrechnung
Data type: T000-MWAEROptional: No
Call by Reference: No ( called with pass by value option)
NENNWERT - Nominalwert des Wertpapierbestands
Data type: REVAL-BNOMINALOptional: No
Call by Reference: No ( called with pass by value option)
NOTIERUNG - Notierung des Wertpapiers (Prozent/Stück)
Data type: VWPANLA-SNOTIOptional: No
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for FVWE_PRICING_SECURITY
BWHR_KZ - Flag: Amount Available in Position Currency
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
HWHR_KZ - Kennzeichen, Betrag in Hauswährung verfügbar
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
KAUF_BWHR - Kaufbetrag in Bestandswährung
Data type: REVAL-BKAUFHWOptional: No
Call by Reference: No ( called with pass by value option)
KAUF_HWHR - Kaufbetrag in Hauswährung
Data type: REVAL-BKAUFWROptional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for FVWE_PRICING_SECURITY 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_bwhr_kz | TYPE STRING, " | |||
| lv_best_whr | TYPE VWBEVI-SBWHR, " | |||
| lv_stueck | TYPE REVAL-ASTUECK, " | |||
| lv_kurs_abs_proz | TYPE ATRAS-PKTKUR, " | |||
| lv_bukrs | TYPE VWBEVI-BUKRS, " | |||
| lv_hwhr_kz | TYPE VWBEVI, " | |||
| lv_datum | TYPE SY-DATUM, " | |||
| lv_kauf_bwhr | TYPE REVAL-BKAUFHW, " | |||
| lv_haus_whr | TYPE VWBEVI-SBWHR, " | |||
| lv_kauf_hwhr | TYPE REVAL-BKAUFWR, " | |||
| lv_kursberechnung | TYPE TZBZ-RKURSBER, " | |||
| lv_kurs_whr | TYPE VWBEVI-SBWHR, " | |||
| lv_mandant_waer | TYPE T000-MWAER, " | |||
| lv_nennwert | TYPE REVAL-BNOMINAL, " | |||
| lv_notierung | TYPE VWPANLA-SNOTI. " |
|   CALL FUNCTION 'FVWE_PRICING_SECURITY' "Current Value of Security in Local Crcy and Pos. Crcy |
| EXPORTING | ||
| BEST_WHR | = lv_best_whr | |
| STUECK | = lv_stueck | |
| KURS_ABS_PROZ | = lv_kurs_abs_proz | |
| BUKRS | = lv_bukrs | |
| DATUM | = lv_datum | |
| HAUS_WHR | = lv_haus_whr | |
| KURSBERECHNUNG | = lv_kursberechnung | |
| KURS_WHR | = lv_kurs_whr | |
| MANDANT_WAER | = lv_mandant_waer | |
| NENNWERT | = lv_nennwert | |
| NOTIERUNG | = lv_notierung | |
| IMPORTING | ||
| BWHR_KZ | = lv_bwhr_kz | |
| HWHR_KZ | = lv_hwhr_kz | |
| KAUF_BWHR | = lv_kauf_bwhr | |
| KAUF_HWHR | = lv_kauf_hwhr | |
| . " FVWE_PRICING_SECURITY | ||
ABAP code using 7.40 inline data declarations to call FM FVWE_PRICING_SECURITY
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 SBWHR FROM VWBEVI INTO @DATA(ld_best_whr). | ||||
| "SELECT single ASTUECK FROM REVAL INTO @DATA(ld_stueck). | ||||
| "SELECT single PKTKUR FROM ATRAS INTO @DATA(ld_kurs_abs_proz). | ||||
| "SELECT single BUKRS FROM VWBEVI INTO @DATA(ld_bukrs). | ||||
| "SELECT single DATUM FROM SY INTO @DATA(ld_datum). | ||||
| "SELECT single BKAUFHW FROM REVAL INTO @DATA(ld_kauf_bwhr). | ||||
| "SELECT single SBWHR FROM VWBEVI INTO @DATA(ld_haus_whr). | ||||
| "SELECT single BKAUFWR FROM REVAL INTO @DATA(ld_kauf_hwhr). | ||||
| "SELECT single RKURSBER FROM TZBZ INTO @DATA(ld_kursberechnung). | ||||
| "SELECT single SBWHR FROM VWBEVI INTO @DATA(ld_kurs_whr). | ||||
| "SELECT single MWAER FROM T000 INTO @DATA(ld_mandant_waer). | ||||
| "SELECT single BNOMINAL FROM REVAL INTO @DATA(ld_nennwert). | ||||
| "SELECT single SNOTI FROM VWPANLA INTO @DATA(ld_notierung). | ||||
Search for further information about these or an SAP related objects