cancel
Showing results for 
Search instead for 
Did you mean: 

Add zeros after decimal point

Former Member
0 Kudos

hello friends,

in smartform i have one field which is in currency i have declared it in currency also so output like 40.000,00 but actually 40,000.00 when i have converted it in string it is like 40000 but i need in 40000.00 form so how can i do it.

thanks in advance

Accepted Solutions (0)

Answers (5)

Answers (5)

Former Member
0 Kudos

solved by self

Former Member
0 Kudos

Hi,

You can use Character Type Variable with length 15 so when you pass this Currency value it would be as your requirement is.

Check this small program.

DATA: output(15).

data: wrbtr type bseg-wrbtr.

SELECT SINGLE wrbtr FROM bseg INTO wrbtr.

output = wrbtr.

condense output.

WRITE output.

Thanks,

Prashanth

Former Member
0 Kudos

hi,

use unpack like follow:

unpack currency to currency.

hope this solves your query.

thanks,

anupama.

Former Member
0 Kudos

Hi,

If you have problem with decimal point and thousand marking - check you user setting.

If you have to change then, remember to logout and logon again to get the changes to work.

Regards

Åsa Thenstedt

Former Member
0 Kudos

When you convert it to string add DECIMALS 2