SAP ABAP Function Module CONVERT_TO_FOREIGN_CURRENCY (Translate local currency amount into foreign currency)
Hierarchy
SAP_BASIS (Software Component) SAP Basis Component
   BC-SRV-BSF-CUR (Application Component) Currency Conversion/Expiring Currency
     SFIB (Package) Financials: Components in Basis
Basic Data
Function Module CONVERT_TO_FOREIGN_CURRENCY Translate local currency amount into foreign currency  
Function Group SCUN   Translation of Currency Amounts: new  
Program Name SAPLSCUN    
INCLUDE Name LSCUNU02    
Parameters
Type Parameter Name Typing Associated Type Default value Optional Pass Value Short text
Exporting EXCHANGE_RATE TYPE Exchange rate 4.5
Exporting FOREIGN_AMOUNT TYPE Amount in foreign currency
Exporting FOREIGN_FACTOR TYPE Factor for the foreign currency units
Exporting LOCAL_FACTOR TYPE Factor for the local currency units
Exporting EXCHANGE_RATEX TYPE Exchange rate 4.11
Exporting DERIVED_RATE_TYPE TYPE TCURR-KURST Alternative exchange rate, where used
Exporting FIXED_RATE TYPE Fixed exchange rate 4.5, if existent
Importing CLIENT TYPE SYST-MANDT SY-MANDT
Importing DATE TYPE SYST-DATUM Currency translation date
Importing FOREIGN_CURRENCY TYPE Currency key for foreign currency
Importing LOCAL_AMOUNT TYPE Amount in local currency
Importing LOCAL_CURRENCY TYPE Currency key for local currency
Importing RATE TYPE 0 Predefined exchange rate
Importing TYPE_OF_RATE TYPE 'M' Type of rate M=Average rate G=Bank buying rate B=bank selling rate
Importing READ_TCURR TYPE 'X' Read exchange rate from table TCURR
Exception NO_RATE_FOUND TYPE No exch.rate entered in table TCURR
Exception OVERFLOW TYPE Field FOREIGN_AMOUNT is too small
Exception NO_FACTORS_FOUND TYPE No conversion factors in TCURF
Exception NO_SPREAD_FOUND TYPE No spread entered in table TCURS
Exception DERIVED_2_TIMES TYPE Exchange rate type derived more than once
               
Processing Type
Normal Function Module  
Remote-Enabled Module BaseXML supported
Update Module Start immediately
Immediate Start, No Restart
Start Delayed
Coll.run
JAVA Module Callable from ABAP  
Remote-Enabled JAVA Module  
Module Callable from JAVA  
History
Last changed by/on SAP  20010122 
SAP Release Created in