Application Development 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: 

VOFM: value is enlarged in routine

0 Kudos

Hello, everyone:

I meet a problem when I programming in routine for SD condition value:

the calculated result in the routine is enlarged automatically by system, for example, V1(10) * V2(10) = 100, but the result is 1000 in my routine, so it is enlarged by 10.

Why does system enlarges the result automatically?

What should I care when programming in such routine?

Thanks in advance!

1 ACCEPTED SOLUTION

Former Member
0 Kudos

The only thing you should take care while coding in Routine is that

" don't do any calculation part of coding in Routine program directly , reason being Fixed Point Arithmetic functionality is not active in Routine programs "

Solution for the above : Create a Function Module for calculation part and set the IMPORT EXPORT parameters accordingly later make a call to this FM  from Routine.

1 REPLY 1

Former Member
0 Kudos

The only thing you should take care while coding in Routine is that

" don't do any calculation part of coding in Routine program directly , reason being Fixed Point Arithmetic functionality is not active in Routine programs "

Solution for the above : Create a Function Module for calculation part and set the IMPORT EXPORT parameters accordingly later make a call to this FM  from Routine.