01-28-2008 10:07 AM
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
01-28-2008 10:10 AM
Hi,
Try like this..
Temp = ZV50 - VOL_TNK * 1.05 .
IF Z1 > Temp
Thanks,
Anil.G
01-28-2008 10:11 AM
amit,
what error it is giving? and what is the data type of
Z1 , ZV50-VOL_TNK?
01-28-2008 10:12 AM
Hi,
try it with
IF Z1 > ( ZV50-VOL_TNK * 1.05 ) .endif.
regards
Nicole
01-28-2008 10:12 AM
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 .
01-28-2008 10:20 AM
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