2008 Dec 04 1:45 PM
Hi all.
Does anybodey know a FM that can convert numbers threw requested formats?
Meaning 1,544,631 turn into 1.544.631 and the like.
Thanks you all,
Rebeka
Use REPLACE statement.OR
You can split it at ',' and then concatenate them separated by dot.Thanks
2008 Dec 04 1:47 PM
2008 Dec 04 1:48 PM
Use REPLACE statement.OR
You can split it at ',' and then concatenate them separated by dot.Thanks
2008 Dec 04 1:52 PM
hi Rebeka ,
Take a variable of character type with required length example
Data:
gv_amount(20) type c.
Symply take the currency field and use WRITE TO statement to the variable. The currency will be written as per user format.
Example.
data:
gv_wrbtr type bseg-wrbtr.
assume some value in gv_wrbtr. Now simple write the below stt. to get the maintained user format.
write gv_wrbtr to gv_amount currency currency_field.
Venkat.
2008 Dec 04 1:52 PM
As such there is no FM.
You need to write code by using REPLACE command in your string in desired formats.
2008 Dec 04 1:56 PM
Hi all.
I don't want to use any REPLACE statement and so..
What if ther's a value appears like 1.001.2 (Thousand and one dot 2) and I want to replace it to 1,001.2 ?? I want to use a std. FM if there is such.
2008 Dec 04 2:02 PM
There is no function module for that. You have to write your own code, a good thing is to use a turing machine such as a [Busy beaver|http://en.wikipedia.org/wiki/Busy_beaver]
2008 Dec 04 2:00 PM
2008 Dec 25 10:43 AM
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |