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

RM07IDIF , numeric calculation gives wrong result

Former Member
0 Likes
722

hi guys,

we copied RM07IDIF to ZRM07IDIF , we added 1 field to store numeric calculation. So here is the coding::

data: tl_dif like konp-kbetr.

data: tl_book like konp-kbetr.

data: tl_rate like konp-kbetr.

tl_book = '4.00'.

tl_dif = '2.00'.

tl_rate = tl_dif / tl_book .

tl_rate = 0.01

the value of tl_rate shud be 0.05, can anybody pls help why the result became wrong

hi guys,

we copied RM07IDIF to ZRM07IDIF , we added 1 field to store numeric calculation. So here is the coding::

data: tl_dif like konp-kbetr.

data: tl_book like konp-kbetr.

data: tl_rate like konp-kbetr.

tl_book = '4.00'.

tl_dif = '2.00'.

tl_rate = tl_dif / tl_book .

tl_rate = 0.01

the value of tl_rate shud be 0.05, can anybody pls help why the result became wrong

2 REPLIES 2
Read only

Former Member
0 Likes
665

Hi,

I copied the same code and am getting valid result as '0.5'. Please verify your answer again. Maybe you are looking at the value of some other varaible.

Regards,

Mansi.

Read only

Former Member
0 Likes
665

aa