Application Development and Automation 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: 
Read only

Amount Format

Former Member
0 Likes
1,560

Hi All,

Is there any FM to convert the amount to its currency specific external format(Commas). For e.g.

If the Currency is USD, the amount should be 100,000,000.00

For the Currency INR, the amount should be 10,00,00,000.00

Thanks in Advance.

Jai

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,402

Try using Set Country command .

e.g.: SET COUNTRY 'US'.

( from table T005X )

Reward if helpful

7 REPLIES 7
Read only

Former Member
0 Likes
1,402

try this function module

'SD_CONVERT_CURRENCY_FORMAT'

pass currency

and amount.

Ramesh.

Read only

Former Member
0 Likes
1,402

suppose if u r writing lik this

write:/ wa_vfkp-NETWR currecny wa_vfkp-WAERS.

write currecy field also.

Regards,

Ramesh.

Read only

0 Likes
1,402

Thanks for ur Reply,

The FM SD_CONVERT_CURRENCY_FORMAT is giving the amount 100000000 as 100,000,000.00 for INR also.

But i need the amount as 10,00,00,000.00.

Even the Write statement is also giving the same format.

Is there any other way to do this?

Thanks

Read only

Former Member
0 Likes
1,402

Hi,

Try these function modules:

<b>CONVERT_TO_FOREIGN_CURRENCY</b>

Convert local currency to foreign currency.

<b>CONVERT_TO_LOCAL_CURRENCY</b>

Convert from foreign currency to local currency

Hope it helps.

Reward if helpful.

Regards,

Sipra

Read only

Former Member
0 Likes
1,403

Try using Set Country command .

e.g.: SET COUNTRY 'US'.

( from table T005X )

Reward if helpful

Read only

Pawan_Kesari
Active Contributor
0 Likes
1,402

dear you don't need any FM for this ... mere WRITE statement with CURRENCY clause will do the formatting...

use

WRITE amount CURRENCY cur.

Read only

Former Member
0 Likes
1,402

WRITE amount CURRENCY cur.