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: 

Amount in millions

Former Member
0 Kudos

Hi folks...

Is there any way to convert the amount of any currency to be displayed in millions. For eg in place of 20,000000 i want to show 20.00m.

Earlier respose is highly appreciated.

Regards,

Bhanu

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Why do you need a function module just divide the amount

lamount = 20,000000.

lmillion = lamount / 1000000.

4 REPLIES 4

Former Member
0 Kudos

Why do you need a function module just divide the amount

lamount = 20,000000.

lmillion = lamount / 1000000.

Former Member
0 Kudos

hi Bhanu,

WELCOME TO SDN ..

do this way ..

var = 20,000000 / 1000000.

concatenate var into var with 'm'.

Regards,

Santosh

Former Member
0 Kudos

Thanks anurag

I am looking for a solution which should suffice any currency. It may be EUR,JPY..etc

Regards,

Bhanu

0 Kudos

Dividing it by the value would always give you the right result irrespective of the currency...as for currency you can write the output of lmillion using the currency variation.

WRITE lmillion CURRENCY lcurr.

here lcurr may be JPY or EUR etc and it write the output accordingly.

Hope the above resolves your issue.