07-22-2008 9:32 AM
Hi,
could u please tell me taht, which conversion routine is used to convert local currencies into USD ?
tell me abt that function module
THanks&Regards,
VRL REDDY
07-22-2008 9:34 AM
07-22-2008 9:34 AM
there are lots of FM´s for that job, the 2 most common are:
CONVERT_CURRENCY_BY_RATE and
CONVERT_TO_LOCAL_CURRENCY
07-22-2008 9:34 AM
Hi
CALL FUNCTION 'CONVERT_TO_FOREIGN_CURRENCY'
EXPORTING DATE = BKPF-WWERT
FOREIGN_CURRENCY = BKPF-WAERS
LOCAL_CURRENCY = T001-WAERS
LOCAL_AMOUNT = BSEG-DMBTR
RATE = BKPF-KURSF
TYPE_OF_RATE = 'M'
IMPORTING EXCHANGE_RATE = KURS
FOREIGN_AMOUNT = BSEG-WRBTR
FOREIGN_FACTOR = FAKTOR-F
LOCAL_FACTOR = FAKTOR-L
EXCEPTIONS NO_RATE_FOUND = 4
NO_FACTORS_FOUND = 8.
With Regards
Nikunj Shah
07-22-2008 9:37 AM
hi
use this it will help u
ID_CONVERT_TO_FOREIGN_CURRENCY
Cheers
Snehi
07-22-2008 9:40 AM
Hi
CONVERT_TO_FOREIGN_CURRENCY this fm would help you.
Regards
Divya
07-22-2008 9:41 AM
CALL FUNCTION 'CONVERT_TO_FOREIGN_CURRENCY'
EXPORTING
client = sy-mandt
date = detail_record-budat
foreign_currency = lw_foreign_waers
local_amount = lw_local_amt
local_currency = lw_local_waers
IMPORTING
foreign_amount = lw_foreign_amt
EXCEPTIONS
no_rate_found = 1
overflow = 2
no_factors_found = 3
no_spread_found = 4
derived_2_times = 5
OTHERS = 6.
07-22-2008 9:41 AM