cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Converting from integer to character.

Former Member
33,202

Hi,

I need to convert an integer to a 10 digit character.Could you help me to know how I could do it?

e.g. if the integer is 6000034, the converted value must be 0006000034.

I need to have the leading zereos.

Thanks,

Sandeep.

View Entire Topic
Former Member
0 Likes

Hi sandeep,

the following code snippet solves ur problem.

data : abc type i value 6000034,

abc1(10) type c.

abc1 = abc.

CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'

EXPORTING

input = abc1

IMPORTING

OUTPUT = abc1

.

abc1 has ur required output.

please reward if helpful.

regards,

Ravi G