Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Output in 3 currencies

Former Member
0 Kudos

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.

1 ACCEPTED SOLUTION

Former Member
0 Kudos

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

4 REPLIES 4

LucianoBentiveg
Active Contributor
0 Kudos

Welcome to SDN.

Try with:

WRITE amount CURRENCY curr1.

WRITE amount CURRENCY curr2.

WRITE amount CURRENCY curr3.

Regards.

Former Member
0 Kudos

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

0 Kudos

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 this’ll give you idea!!

<b>Pl... award the points.</b>

Good luck

Thanks

Saquib Khan

"Some are wise and some are otherwise"

Former Member
0 Kudos

hi

Use this function module MS_CONVERT_TO_OTHER_CURRENCY.

It will convert a currency to other currency.

Regards

Naveen.