1.加上前导零
call function 'CONVERSION_EXIT_MATN1_INPUT' exporting input = record-matnr importing output = record1-matnr exceptions length_error = 1 others = 2.
2. 单位转化
call function 'MD_CONVERT_MATERIAL_UNIT'
exporting i_matnr = wa_temp-matnr i_in_me = wa_temp-mein1 "bot i_out_me = wa_temp-meins"g i_menge = wa_temp-remng importing e_menge = wa_temp-remng.