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

character conversion

Former Member
0 Likes
601

is there a function modul to conert character into number format like i or p.

thx

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
574

Hi navid,

1. Simply assign to the numeric variable.

2. report abc.

data : ch(10) type c.

data : num type i.

ch = '476'.

num = ch.

write num.

regards,

amit m.

4 REPLIES 4
Read only

Former Member
0 Likes
575

Hi navid,

1. Simply assign to the numeric variable.

2. report abc.

data : ch(10) type c.

data : num type i.

ch = '476'.

num = ch.

write num.

regards,

amit m.

Read only

0 Likes
574

the thing is the char field has number with decimals and i need to do some calculation on this field. there is a char field which will be maintained with an amount which i need to get and make some calculations

Read only

0 Likes
574

hi again,

1. No problem.

2. Just assign it to the

numeric variable (either I, P etc)

3. Then u can simply do calculations !

regards,

amit m.

Read only

Former Member
0 Likes
574

Hi,

Use packed decimals for accuracy of decimal digits and pass the values to character field of same length and simply u can print in the screen or send to the application server for file purposes.

Need not worry about the accuracy of contents in the character field.

Cheers,

R.Annamalai.