cancel
Showing results for 
Search instead for 
Did you mean: 

Display Amount in the Corrsesponding Currency

MVar
Explorer
0 Kudos

Hello Everyone,

I have an RFC that returns and Amount and a Currency to my webdynpro project. The amount is in the format 1200.98. I want to display this amount on my view as follows:

Currency is USD - 1,200.98

Currency is JPY - 120,098

Currency is EUR - 1,200.98

Currency is IDR - 120,098

Thanks in advance for your assistance.

Mike

Accepted Solutions (1)

Accepted Solutions (1)

former_member182372
Active Contributor
0 Kudos

Hi Mike,

Check tutorial from Sun: http://java.sun.com/docs/books/tutorial/i18n/format/numberFormat.html

Best regards, Maksim Rashchynski.

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Mike,

If you are looking to implement based on the locale. U can create a class that returns currency in the following formatbased on locales for further information refer to the following links

http://java.sun.com/j2se/1.4.2/docs/api/java/util/Locale.html

http://java.sun.com/developer/technicalArticles/Intl/ResourceBundles/

http://www.java2s.com/ExampleCode/Development-Class/Usesomelocaleschoices.htm

http://www.devsphere.com/mapping/docs/guide/internat.html

Regards

Ayyapparaj

MVar
Explorer
0 Kudos

Maksim and Ayyapparaj,

Thanks for the links. They were helpful and will be helpful in the future.

Mike