VOFM: value is enlarged in routine
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!
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.