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

User Exit Fixed Point Arithmetic

Former Member
0 Likes
510

Dear all,

I have developed some code on the user exit RV61AFZB and tried to change the value on the xkomv-kbetr. But, i found that the division result is wrong.

Example:


 DATA: temp like xkomv-kbetr,
           c_test LIKE xkomv-kbetr VALUE '152000.00',
           c_qty like xkomv-kbetr value '3.00'.

   temp  = c_test / c_qty.

The value of temp became 506.67. Since, this is a user exit and i can't change program attribute "Fixed Point Arithmetic" .

Regards,

Kit

1 REPLY 1
Read only

Former Member
0 Likes
374

Hello

Try this:


 DATA: temp like xkomv-kbetr,
           c_test LIKE xkomv-kbetr VALUE '152000.00',
           c_qty like xkomv-kbetr value '3.00'.
 data: temp1 type i.
   temp  = c_test / c_qty.
   temp1 = temp.