Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

converting int to char

Former Member
0 Kudos
1,873

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

3 REPLIES 3

Former Member
0 Kudos
249

use option NO GROUPING that will omit the comma separator.

Regards,

Gopi ,

reward points if helpfill.

Former Member
0 Kudos
249

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.

former_member386202
Active Contributor
0 Kudos
249

Hi,

Try this Fm

CHAR_INT_CONVERSION

CATS_CONVERT_INT_TO_EXT

Regards,

Prashant