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: 
Read only

Need function module to convert weight to kg

0 Likes
11,071

Can anyone suggest function module to convert weight in LB(pounds) or other units to Kilograms(KG).

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
3,876

Hi Venkata,

Just use the following FM :

    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

Hope this helps,

Erwan

Can anyone suggest function module to convert weight in LB(pounds) or other units to Kilograms(KG).

2 REPLIES 2
Read only

Former Member
0 Likes
3,877

Hi Venkata,

Just use the following FM :

    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

Hope this helps,

Erwan

Read only

kiran_k8
Active Contributor
0 Likes
3,876

Venkat,

Check this Fn Module MD_CONVERT_MATERIAL_UNIT.

K.Kiran.