SAP FWOS_CURRENCY_AMOUNT_CALCULATE Function Module for Currency Conversion for Main Flow from Order
FWOS_CURRENCY_AMOUNT_CALCULATE is a standard fwos currency amount calculate SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Currency Conversion for Main Flow from Order 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 fwos currency amount calculate FM, simply by entering the name FWOS_CURRENCY_AMOUNT_CALCULATE into the relevant SAP transaction such as SE37 or SE38.
Function Group: FWOS
Program Name: SAPLFWOS
Main Program: SAPLFWOS
Appliation area: F
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function FWOS_CURRENCY_AMOUNT_CALCULATE 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 'FWOS_CURRENCY_AMOUNT_CALCULATE'"Currency Conversion for Main Flow from Order.
EXPORTING
I_PRICE_CALCULATION = "Rate Calculation
I_LOCAL_CURRENCY = "Local Currency
I_TRANSACTION = "Daten zur Bewegung
* I_REQUEST1 = ' ' "(Doppelklick hier)
* I_REQUEST2 = ' ' "(Doppelklick hier)
I_QUOTATION = "Notierung: 'S' oder 'P'
IMPORTING
E_TRANSACTION = "umgerechnete Bewegung
EXCEPTIONS
I_PRICE_CALCULATION_INITIAL = 1 I_LOCAL_CURRENCY_INITIAL = 2 I_QUOTATION_INITIAL = 3 AMOUNT_OVERFLOW = 4
IMPORTING Parameters details for FWOS_CURRENCY_AMOUNT_CALCULATE
I_PRICE_CALCULATION - Rate Calculation
Data type: TZBZ-RKURSBEROptional: No
Call by Reference: No ( called with pass by value option)
I_LOCAL_CURRENCY - Local Currency
Data type: T001-WAERSOptional: No
Call by Reference: No ( called with pass by value option)
I_TRANSACTION - Daten zur Bewegung
Data type: VZZBEPPOptional: No
Call by Reference: No ( called with pass by value option)
I_REQUEST1 - (Doppelklick hier)
Data type: CDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_REQUEST2 - (Doppelklick hier)
Data type: CDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_QUOTATION - Notierung: 'S' oder 'P'
Data type: COptional: No
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for FWOS_CURRENCY_AMOUNT_CALCULATE
E_TRANSACTION - umgerechnete Bewegung
Data type: VZZBEPPOptional: No
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
I_PRICE_CALCULATION_INITIAL - Kursberechnung initial
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
I_LOCAL_CURRENCY_INITIAL - Hauswährung initial
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
I_QUOTATION_INITIAL - Notierung initial
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
AMOUNT_OVERFLOW -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for FWOS_CURRENCY_AMOUNT_CALCULATE 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_e_transaction | TYPE VZZBEPP, " | |||
| lv_i_price_calculation | TYPE TZBZ-RKURSBER, " | |||
| lv_i_price_calculation_initial | TYPE TZBZ, " | |||
| lv_i_local_currency | TYPE T001-WAERS, " | |||
| lv_i_local_currency_initial | TYPE T001, " | |||
| lv_i_transaction | TYPE VZZBEPP, " | |||
| lv_i_quotation_initial | TYPE VZZBEPP, " | |||
| lv_i_request1 | TYPE C, " SPACE | |||
| lv_amount_overflow | TYPE C, " | |||
| lv_i_request2 | TYPE C, " SPACE | |||
| lv_i_quotation | TYPE C. " |
|   CALL FUNCTION 'FWOS_CURRENCY_AMOUNT_CALCULATE' "Currency Conversion for Main Flow from Order |
| EXPORTING | ||
| I_PRICE_CALCULATION | = lv_i_price_calculation | |
| I_LOCAL_CURRENCY | = lv_i_local_currency | |
| I_TRANSACTION | = lv_i_transaction | |
| I_REQUEST1 | = lv_i_request1 | |
| I_REQUEST2 | = lv_i_request2 | |
| I_QUOTATION | = lv_i_quotation | |
| IMPORTING | ||
| E_TRANSACTION | = lv_e_transaction | |
| EXCEPTIONS | ||
| I_PRICE_CALCULATION_INITIAL = 1 | ||
| I_LOCAL_CURRENCY_INITIAL = 2 | ||
| I_QUOTATION_INITIAL = 3 | ||
| AMOUNT_OVERFLOW = 4 | ||
| . " FWOS_CURRENCY_AMOUNT_CALCULATE | ||
ABAP code using 7.40 inline data declarations to call FM FWOS_CURRENCY_AMOUNT_CALCULATE
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 RKURSBER FROM TZBZ INTO @DATA(ld_i_price_calculation). | ||||
| "SELECT single WAERS FROM T001 INTO @DATA(ld_i_local_currency). | ||||
| DATA(ld_i_request1) | = ' '. | |||
| DATA(ld_i_request2) | = ' '. | |||
Search for further information about these or an SAP related objects