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: 

Issue in FM Unit_Conversion_Simple

0 Kudos
1,020

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

2 REPLIES 2

JL23
Active Contributor
0 Kudos
278

NTGEW is a QUAN field, and this has by definition 3 decimals only

0 Kudos
278


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.