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

type casting.

Former Member
0 Likes
400

hi frends i am using folwing variabes :

data var_qty(10) type p.

data var3(7) type p.

data var4(7) type p.

now i am writing a expression:

var4 = var 3* var_qty.

but there would be a wrong value in var4.

also if the value in var_qty is in decimals then it is taking it as (zero). now i recievd a value in var_qty from a field having type "quan".

plz guide me how could i solve it.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
365

Add decimals 3 to ur declaration after type p.

Data : Qty(7) type p decimals 3.

2 REPLIES 2
Read only

Former Member
0 Likes
366

Add decimals 3 to ur declaration after type p.

Data : Qty(7) type p decimals 3.

Read only

Former Member
0 Likes
365

i got the answer