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: 

FM for Currency..

Former Member
0 Kudos

for corrency like JPY has no decimal point. But if read directly from table where the field has decimal point, wrong value will be retrieved isk liye there is some FM can any one plz let me know??

thnx

2 REPLIES 2

Former Member
0 Kudos

Hi,

use these fn modules,

CONVERT_TO_FOREIGN_CURRENCY : It converts local currency to foreign currency.

CONVERT_TO_LOCAL_CURRENCY : It converts from foreign currency to local currency

reward if helpful

Former Member
0 Kudos

The field is stored in the database with the decimal places, and any internal table or work area in an ABAP program should also hold the data in the same format.

You only need to consider the format when you output this value, either to a report, file or form.

For a report use WRITE: wa_field CURRENCY wa_waers, which will format the field for the specified currency. You would use the same if you were passing the field to a file.

For smartforms provided you have defined the relationship between these two fields smartforms will format this for you.

Regards,

Nick