2008 Jul 30 7:04 AM
Hi Abapers,
Is there any way to convert the amount into Local Currency with out using the Write statement or CURRENCY_AMOUNT_SAP_DISPLAY.
2008 Jul 30 7:07 AM
2008 Jul 30 7:07 AM
2008 Jul 30 7:08 AM
Hi
CONVERT_TO_FOREIGN_CURRENCY Convert local currency to foreign currency.
CONVERT_TO_LOCAL_CURRENCY Convert from foreign currency to local currency
Regards
Pavan
2008 Jul 30 7:10 AM
Hi Raghav,
You can use the function module :
CONVERT_TO_LOCAL_CURRENCY
Try the following example:
CALL FUNCTION 'CONVERT_TO_LOCAL_CURRENCY'
EXPORTING
date = sy-datum
foreign_amount = x_booking-forcuram
foreign_currency = x_booking-forcurkey
local_currency = local_currency
IMPORTING
exchange_rate =
foreign_factor = fremdkurs
local_amount = local_amount
local_factor =
exchange_ratex = faktorsum
FIXED_RATE =
DERIVED_RATE_TYPE =
EXCEPTIONS
no_rate_found = 1
overflow = 2
no_factors_found = 3
no_spread_found = 4
derived_2_times = 5
OTHERS = 6.
Hope this helps you.
Regards,
Chandra Sekhar
2008 Jul 30 7:15 AM
Hi
Alternately you can use FM: READ_EXCHANGE_RATE. It'll give youconversion factor for your amount. There are other FMs in Func. Grp."SCUR" for converting Currency Amounts.
CONVERT_TO_LOCAL_CURRENCY - Conversion of currency
CONVERT_TO_FOREIGN_CURRENCY Convert local currency to foreign currency.
Regards
Shreemudra
2008 Jul 30 7:16 AM
Hi,
U can try with this function module
CONVERT_TO_LOCAL_CURRENCY.
check this link:
http://www.sap-img.com/abap/function-list.htm
Cheers,
vasavi.v
2008 Jul 30 7:20 AM
Hi Raghavendra.
I would like to suggest a few,
CONVERT_AMOUNT_TO_CURRENCY
HRCM_AMOUNT_CONVERT_CURRENCY
RM_MM_AMOUNT_CURRENCY_CONVERT
CONVERT_TO_FOREIGN_CURRENCY - Translate local currency amount into foreign currency
CONVERT_TO_LOCAL_CURRENCY - Translate foreign currency amount to local currency
Hope that's usefull.
Good Luck & Regards.
Harsh Dave