07-10-2006 7:06 PM
Hi All,
I am a Fresher to SAP-ABAP and am really very impressed with this wonderful site and all the techies showing great enthu.I am posting for the first time and am expecting a good help.
My requirement is that I have to input three different currencies and show the output value in all those three currencies.
It wud be great if anyone can guide me as to how to go about this.
Thanks in advance,
Swapna.
07-10-2006 7:20 PM
Hi
There is a function module to convert amount to different currencies. MS_CONVERT_TO_OTHER_CURRENCY
Use this module in you program to convert the amount in different currencies.
You have to give parameters when you use this module.
Date = Current system date
From_currency = Currency from which you want to convert amount
To_currency = Currency name to which you want to convert the amount
Company_currency = Default currency for the company code.
Rate = Exchange rate between FROM and TO currencies.
Bala
Note: Award points if helpful
07-10-2006 7:09 PM
Welcome to SDN.
Try with:
WRITE amount CURRENCY curr1.
WRITE amount CURRENCY curr2.
WRITE amount CURRENCY curr3.
Regards.
07-10-2006 7:20 PM
Hi
There is a function module to convert amount to different currencies. MS_CONVERT_TO_OTHER_CURRENCY
Use this module in you program to convert the amount in different currencies.
You have to give parameters when you use this module.
Date = Current system date
From_currency = Currency from which you want to convert amount
To_currency = Currency name to which you want to convert the amount
Company_currency = Default currency for the company code.
Rate = Exchange rate between FROM and TO currencies.
Bala
Note: Award points if helpful
07-10-2006 8:47 PM
You can also refer the Include :LMLSLF0U
<b>FYI</b>
CALL FUNCTION 'MS_CONVERT_TO_OTHER_CURRENCY'
EXPORTING
DATE = COMSRV-BEDAT
FROM_CURRENCY = REF_ESUH-WAERS
FROM_AMOUNT = REF_ESUC-LIMIT
TO_CURRENCY = COMSRV-WAERS
COMPANY_CURRENCY = COMSRV-HWAER
RATE = COMSRV-WKURS
IMPORTING
TO_AMOUNT = REF_ESUC-LIMIT.
Hope thisll give you idea!!
<b>Pl... award the points.</b>
Good luck
Thanks
Saquib Khan
"Some are wise and some are otherwise"
07-11-2006 6:29 AM
hi
Use this function module MS_CONVERT_TO_OTHER_CURRENCY.
It will convert a currency to other currency.
Regards
Naveen.