‎2008 Feb 07 3:53 PM
Hi All,
I need function Module which converts Grams into KG.
Kindly Help me if any one knows abt this funcion module.
Regards
Bhaskar
‎2008 Feb 07 3:57 PM
Hi Bhaskar,
Do you think you need a FM for that?
you can simply divide by 1000 .
wt_in_kg = wt_in_gms / 1000.
If you still need an FM use this FM: UNIT_CONVERSION_SIMPLE
Sampe Usage:
Regards,
ravi
Edited by: Ravi Kanth Talagana on Feb 7, 2008 4:58 PM
‎2008 Feb 07 3:57 PM
‎2008 Feb 07 4:00 PM
U can write a simple statement ..
KG = grams/1000.
say if U have 2500 grams
KG = 2500/1000
so KG will have 2.5 ...
‎2008 Feb 07 4:05 PM
Hi,
Divide it by 1000, abviously it will be in KGs.
Thanks,
Sriram Ponna.
‎2008 Feb 07 4:25 PM
hi
good
Just use the following FM :
code CALL FUNCTION 'UNIT_CONVERSION_SIMPLE'
EXPORTING
input = slk-btgew " Weight in LB
unit_in = slk-gewei " LB
unit_out = vttkvb-dtmeg " KG
IMPORTING
output = slk-btgew. " Output : Weight in KG[/code]
Hope this helps,
thanks
mrutyun^