2014 May 29 2:27 PM
Hi All,
I have a issue in using the FM 'Unit_Conversion_Simple'.
CALL FUNCTION 'UNIT_CONVERSION_SIMPLE'.
EXPORTING
INPUT = 0.6492
unit_in = G (Gram)
unit_out = KG
IMPORTING
output = w_ntgew (where w_ntgew is of type mara-ntgew)
on executing the FM, i got w_ntgew = 0.001 KG (as the value is rounded off)
Is there any possible way in the FM that rounding off will not occur, so that I can get the value of 0.0006492 KG.
Thanks in Advance
2014 May 29 2:39 PM
NTGEW is a QUAN field, and this has by definition 3 decimals only
2014 May 29 2:47 PM
Hi,
Yes NTGEW is a QUAN field and has 3 decimals only, But if take the variable as type P DECIMALS 7, then is there an way to get the 0.0006492 KG value and there will be no rounding off.