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