CALL FUNCTION 'UNIT_CONVERSION_SIMPLE'
EXPORTING
input = wa_items-brgew
round_sign = 'X'
unit_in = wa_items-gewei
unit_out = 'TO'
IMPORTING
output = wa_items-brgew
EXCEPTIONS
conversion_not_found = 01
division_by_zero = 02
input_invalid = 03.
**每PC等于多少KG
CALL FUNCTION 'MD_CONVERT_MATERIAL_UNIT'
EXPORTING
i_matnr = '001100000000000005'
i_in_me = 'PC'
i_out_me = 'KG'
i_menge = 1
IMPORTING
e_menge = menge
EXCEPTIONS
error_in_application = 1
error = 2
OTHERS = 3.