‎2009 Jun 29 11:34 PM
Hello,
I am trying to divide 1 by a decimal, i.e. 1 / 7.75027, in Include RV63A900 of Function Group V61A. Since the ' Fixed Point Arithmetic' checkbox is not checked, I am unable to get this calculation to work.
I have tried different scenarios of using a floating point field to receive the quotient but nothing has worked.
Any suggestions?
Thank you,
Chris Mowl
‎2009 Jun 30 1:07 AM
I use floating variable some thing like this :
data: v_f TYPE f,
v_c TYPE char12.
v_f = ( wa_komp_o-netwr / o_komp-mglme ).
* Due to decimal issues had to use Floating point value
* for calculation of condition base value
CALL FUNCTION 'FLTP_CHAR_CONVERSION'
EXPORTING
decim = 5
input = v_f
IMPORTING
flstr = v_c.
v_amount = v_c * 10.
‎2009 Jun 30 6:06 PM
I was able to use function module CONVERT_TO_FOREIGN_CURRENCY.
Thanks for the response anyway.