2007 Dec 18 8:03 AM
i have a problem in converting int to char
i have a number with 5 digits and when i use the write statement with the number to char with more then 5 places it puts me a coma "," after the first to digits, very annoying thing because i want the number without a coma ",".
thanks amit
i have a problem in converting int to char
i have a number with 5 digits and when i use the write statement with the number to char with more then 5 places it puts me a coma "," after the first to digits, very annoying thing because i want the number without a coma ",".
thanks amit
2007 Dec 18 8:08 AM
use option NO GROUPING that will omit the comma separator.
Regards,
Gopi ,
reward points if helpfill.
2007 Dec 18 8:58 AM
Hi,
Asign INT value directly to character variable. Then no need to think about commas.
ex:
DATA: l_f_int TYPE i,
l_f_char TYPE char10.
START-OF-SELECTION.
l_f_int = 12345.
l_f_char = l_f_int.
WRITE: / l_f_char.
END-OF-SELECTION.
2007 Dec 18 9:02 AM
Hi,
Try this Fm
CHAR_INT_CONVERSION
CATS_CONVERT_INT_TO_EXT
Regards,
Prashant
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |