04-14-2008 4:11 AM
Hi,
When i put a NUM variable as a denominator, the system returns error: CONVT_NO_NUMBER CX_SY_CONVERSION_NO_NUMBER.
The value of the variable is 1,100. Should convert the variable prior doing the calculation??
Regards,
Kit
04-14-2008 4:16 AM
hi Kit,
Have you declared your variable as type N. If then change it to type i or any other number format.
Hope this helps you.
Thanks,
Arun
04-14-2008 4:22 AM
Hi,
For arithmatic opreations system tries to convert all non numeric types to either I F or P type. if conversion fails, error is raised. So it is better to use I F or P type variables for doing arithmatic operations to avoid conversion errors.
04-14-2008 4:31 AM
Thx for the replies.
Is there any FM can handle the NUM data to P conversion??
Regards,
Kit
04-14-2008 4:51 AM
Hi
do this way...
report ztemp1.
data: b(10) type n,
d TYPE p DECIMALS 3.
b = '0000000300'.
d = b.
write : / b,
/ d.
Or you can convert NUMC to Integer also...
data : numcvar type t052-tag1. " here t052-tag1 is of type NUMC
Data: Var type i.
Move numcvar to var.
Write var. " integer value of NUMC value
Hope it will solve your problem
reward points if useful..
Thanks & Regards
ilesh 24x7