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

how to convert integer to character?

Former Member
0 Likes
3,562

hi everybody!

i need to convert integer into string .

if i am giving input 18 has integer , it has to display eighteen in output has a character. is there any possible to do...

hi everybody!

i need to convert integer into string .

if i am giving input 18 has integer , it has to display eighteen in output has a character. is there any possible to do...

3 REPLIES 3
Read only

Former Member
0 Likes
1,349

Hi!

There are many ways to it:

MOVE int TO string.

WRITE int TO string.

For alphabetic numbers, try the follwoing function module:

clear: word, decword.

CALL FUNCTION 'SPELL_AMOUNT'

EXPORTING

LANGUAGE = 'H'

CURRENCY = MHND-WAERS

AMOUNT = MHND-WRSHB

FILLER = '' "FILLER

IMPORTING

IN_WORDS = SPELL.

word = spell-word.

decword = spell-decword.

Regards

Tamás

Message was edited by:

Tamás Nyisztor

Read only

Former Member
0 Likes
1,349

chk program RF_SPELL

Read only

Former Member
0 Likes
1,349

Hi Vikram,

u can directly assign it

try the code given below.

Report abcd.

data : str type string value 'abcdefghij',

int(10) type i value '1234567890'.

str = int.

write : / str.

Rgds,

Prajith