SAP TRANSACTION_CONVERSION Function Module for Convert Amounts of a Flow









TRANSACTION_CONVERSION is a standard transaction conversion SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Convert Amounts of a Flow 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 transaction conversion FM, simply by entering the name TRANSACTION_CONVERSION into the relevant SAP transaction such as SE37 or SE38.

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



Function TRANSACTION_CONVERSION 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 'TRANSACTION_CONVERSION'"Convert Amounts of a Flow
EXPORTING
CALCULATION_TYPE = "1-Order stück 2-Order proz. 4-sonstige Bewegung
* FOREIGN_CURRENCY = ' ' "Foreign Currency
* KURSBERECHNUNG = ' ' "Kursber.typ aus Tabelle TZBZ, Feld RKURSBER
LOCAL_CURRENCY = "Local Currency
ORDER = "Hauptbewegung als Referenz für Umrechn.kurs
* REQUEST1 = ' ' "
* REQUEST2 = ' ' "
TRANSACTION = "Umzurechnender Bewegungssatz

IMPORTING
TRANSACTION_O = "Umgerechneter Bewegungssatz

EXCEPTIONS
ERROR_IN_CALCULATION_TYPE = 1 NO_LOCAL_CURRENCY = 2
.



IMPORTING Parameters details for TRANSACTION_CONVERSION

CALCULATION_TYPE - 1-Order stück 2-Order proz. 4-sonstige Bewegung

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

FOREIGN_CURRENCY - Foreign Currency

Data type: T001-WAERS
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

KURSBERECHNUNG - Kursber.typ aus Tabelle TZBZ, Feld RKURSBER

Data type: TCURB-RKURSBER
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

LOCAL_CURRENCY - Local Currency

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

ORDER - Hauptbewegung als Referenz für Umrechn.kurs

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

REQUEST1 -

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

REQUEST2 -

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

TRANSACTION - Umzurechnender Bewegungssatz

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

EXPORTING Parameters details for TRANSACTION_CONVERSION

TRANSACTION_O - Umgerechneter Bewegungssatz

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

EXCEPTIONS details

ERROR_IN_CALCULATION_TYPE - Nicht definierter Berechnungstyp

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

NO_LOCAL_CURRENCY - Hauswährung wurde nicht übergeben

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

Copy and paste ABAP code example for TRANSACTION_CONVERSION 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_transaction_o  TYPE VZZBEPP, "   
lv_calculation_type  TYPE VZZBEPP, "   
lv_error_in_calculation_type  TYPE VZZBEPP, "   
lv_foreign_currency  TYPE T001-WAERS, "   SPACE
lv_no_local_currency  TYPE T001, "   
lv_kursberechnung  TYPE TCURB-RKURSBER, "   SPACE
lv_local_currency  TYPE T001-WAERS, "   
lv_order  TYPE VZZBEPP, "   
lv_request1  TYPE VZZBEPP, "   SPACE
lv_request2  TYPE VZZBEPP, "   SPACE
lv_transaction  TYPE VZZBEPP. "   

  CALL FUNCTION 'TRANSACTION_CONVERSION'  "Convert Amounts of a Flow
    EXPORTING
         CALCULATION_TYPE = lv_calculation_type
         FOREIGN_CURRENCY = lv_foreign_currency
         KURSBERECHNUNG = lv_kursberechnung
         LOCAL_CURRENCY = lv_local_currency
         ORDER = lv_order
         REQUEST1 = lv_request1
         REQUEST2 = lv_request2
         TRANSACTION = lv_transaction
    IMPORTING
         TRANSACTION_O = lv_transaction_o
    EXCEPTIONS
        ERROR_IN_CALCULATION_TYPE = 1
        NO_LOCAL_CURRENCY = 2
. " TRANSACTION_CONVERSION




ABAP code using 7.40 inline data declarations to call FM TRANSACTION_CONVERSION

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 WAERS FROM T001 INTO @DATA(ld_foreign_currency).
DATA(ld_foreign_currency) = ' '.
 
 
"SELECT single RKURSBER FROM TCURB INTO @DATA(ld_kursberechnung).
DATA(ld_kursberechnung) = ' '.
 
"SELECT single WAERS FROM T001 INTO @DATA(ld_local_currency).
 
 
DATA(ld_request1) = ' '.
 
DATA(ld_request2) = ' '.
 
 


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!