Application Development 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: 

problem

Former Member
0 Kudos

hi experts

i am trying to calculate: IF Z1 > ( ( ZV50-VOL_TNK ) * 1.05 ) .

and it gives me an error. what's wrong with that.

thanks

amit

5 REPLIES 5

Former Member
0 Kudos

Hi,

Try like this..

Temp = ZV50 - VOL_TNK * 1.05 .

IF Z1 > Temp

Thanks,

Anil.G

Former Member
0 Kudos

amit,

what error it is giving? and what is the data type of

Z1 , ZV50-VOL_TNK?

Former Member
0 Kudos

Hi,

try it with

IF Z1 > ( ZV50-VOL_TNK * 1.05 ) .endif.

regards

Nicole

Former Member
0 Kudos

Ok..try like this..


DATA : l_var(4) TYPE p decimals 2 value '1.05'.
DATA : l_value(16) TYPE p decimals 2.

l_value = ZV50-VOL_TNK  * l_var.

 IF Z1 > l_value .

Former Member
0 Kudos

Hi,

In ABAP program,we can't merge logical exp and arithmetic exp.So you first do calculation,then compare values in IF statement.

L.Velu