Application Development and Automation 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: 
Read only

converting int to char

Former Member
0 Likes
2,758

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

3 REPLIES 3
Read only

Former Member
0 Likes
1,134

use option NO GROUPING that will omit the comma separator.

Regards,

Gopi ,

reward points if helpfill.

Read only

Former Member
0 Likes
1,134

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.

Read only

former_member386202
Active Contributor
0 Likes
1,134

Hi,

Try this Fm

CHAR_INT_CONVERSION

CATS_CONVERT_INT_TO_EXT

Regards,

Prashant