on 01-15-2007 12:09 PM
Hi,
I am writing a subroutine in my script. In INTAB-VALUE. I will be getting some value. I want to multiply this value with some number. When I am trying to do so it is giving short dump Saying convert to number is not possible as this value is of character type. How to solve this . Please advise.
Regards,
Sam.
Hi Sam,
The problem is that the type of INTAB-VALUE is not compatible for arithmetic operation.
Please make another variable of type N or P whatever suits you and move the value of INTAB-VALUE to this variable.
Multiply it with the number you want to and pass the value back to INTAB-VALUE.
This will work..
Reward point if helpful.
Thanks
Mayank
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
do this way...
data: v1(10) type p decimals 2.
move <INTAB-VALUE> to V1.
V1 = V1 * <number>.
move V1 to <INTAB-VALUE>.
use <INTAB-VALUE> in ur script.
Mark points.......
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
10 | |
10 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.