cancel
Showing results for 
Search instead for 
Did you mean: 

How to perform arithametic operations on intab-value

Former Member
0 Kudos

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.

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

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

Former Member
0 Kudos

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.......