on 01-08-2009 12:35 PM
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
solved by self
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi,
use unpack like follow:
unpack currency to currency.
hope this solves your query.
thanks,
anupama.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
When you convert it to string add DECIMALS 2
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.