CALL FUNCTION 'MD_CONVERT_MATERIAL_UNIT'
EXPORTING
I_MATNR = P_MATNR
I_IN_ME = P_MEINS1
I_OUT_ME = P_MEINS2
I_MENGE = 1
IMPORTING
E_MENGE = P_MENGE
EXCEPTIONS
ERROR_IN_APPLICATION = 1
ERROR = 2
OTHERS = 3.
EXPORTING
I_MATNR = P_MATNR
I_IN_ME = P_MEINS1
I_OUT_ME = P_MEINS2
I_MENGE = 1
IMPORTING
E_MENGE = P_MENGE
EXCEPTIONS
ERROR_IN_APPLICATION = 1
ERROR = 2
OTHERS = 3.