‎2006 Feb 18 7:00 AM
is there a function modul to conert character into number format like i or p.
thx
‎2006 Feb 18 7:09 AM
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.
‎2006 Feb 18 7:09 AM
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.
‎2006 Feb 18 8:35 AM
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
‎2006 Feb 18 8:38 AM
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.
‎2006 Feb 18 3:22 PM
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.