09-27-2006 2:27 PM
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
09-27-2006 2:29 PM
Why do you need a function module just divide the amount
lamount = 20,000000.
lmillion = lamount / 1000000.
09-27-2006 2:29 PM
Why do you need a function module just divide the amount
lamount = 20,000000.
lmillion = lamount / 1000000.
09-27-2006 2:31 PM
hi Bhanu,
WELCOME TO SDN ..
do this way ..
var = 20,000000 / 1000000.
concatenate var into var with 'm'.
Regards,
Santosh
09-27-2006 2:41 PM
Thanks anurag
I am looking for a solution which should suffice any currency. It may be EUR,JPY..etc
Regards,
Bhanu
09-27-2006 2:57 PM
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.