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

FM for UOM conversion

Former Member
0 Likes
2,888

Hi ,

Can anyone please provide a FM which converts Any Unit of Measure to Base Unit of Measure for that Material.

Suppose my input is in yards or feet or KM ,it should be converted to the material's Base Unit Of Measure.

Thanks in advance,

Sudhaa........

3 REPLIES 3
Read only

naimesh_patel
Active Contributor
0 Likes
1,787

Use FM MD_CONVERT_MATERIAL_UNIT for UOM conversion.


  CALL FUNCTION 'MD_CONVERT_MATERIAL_UNIT'
    EXPORTING
      I_MATNR                    = I_MATNR
      I_IN_ME                    = I_MEINS   " Input UOM
      I_OUT_ME                   = LF_MEINS  " Output UOM - for you BASE UOM
      I_MENGE                    = LF_E_MENGE  " Input Quantity
    IMPORTING
      E_MENGE                    = LF_I_MENGE.   " Qty after Conversion

Regards,

Naimesh Patel

Read only

0 Likes
1,787

thanks naimesh

Read only

Former Member
0 Likes
1,787

check the function MATERIAL_UNIT_CONVERSION

read the documentation of the function