2007 Dec 17 11:26 AM
Hi,
My requirement is that if a number is printed like 1,23,500 rupees then this should print as 123500.
Can any one tell me the function module for this.
Thanks & Regards,
Ramana.
Hi,
My requirement is that if a number is printed like 1,23,500 rupees then this should print as 123500.
Can any one tell me the function module for this.
Thanks & Regards,
Ramana.
2007 Dec 17 11:28 AM
data znum type i value '12345678'.
data zch(25).
move znum to zch.
WRITE:
/ znum, zch.
move da number to type c variable.
plz reward points if dis helps
2007 Dec 17 11:28 AM
Hi,
Declare one variable type character and pass this value to taht variable n then display it.
data : lv_var(20) type c.
lv_var = '1,23,500'
Regards,
Prashant
2007 Dec 17 11:29 AM
replace all occurrences of ',' with space in <variable>.
condense <variable>
2007 Dec 17 11:32 AM
Hi
try this code..
DATA : l_amt TYPE char16.
l_amt = amount. "amount is number field
REPLACE ALL OCCURRENCES OF ',' IN l_amt WITH space.
CONDENSE l_amt.
WRITE 😕 l_amt.
2007 Dec 17 11:41 AM
move it to a char variable and use
replace all occurences of ',' with ''.
This will remove all commas..
If u r workin in scripts den (since u havnt specified)
use
&EKPO-MENGE(T)&
Hope dis helps
2007 Dec 17 12:08 PM
Hi Ramana,
use the addition NO GROUPING in your WRITE statement.
Anyway, I don't belive in output 1,23,500. May be 123,500.
Regards,
Clemens
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |