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

problem

Former Member
0 Likes
754

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
Read only

Former Member
0 Likes
724

Hi,

Try like this..

Temp = ZV50 - VOL_TNK * 1.05 .

IF Z1 > Temp

Thanks,

Anil.G

Read only

Former Member
0 Likes
724

amit,

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

Z1 , ZV50-VOL_TNK?

Read only

Former Member
0 Likes
724

Hi,

try it with

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

regards

Nicole

Read only

Former Member
0 Likes
724

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 .

Read only

Former Member
0 Likes
724

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