Используем ФМ MATERIAL_CONVERT_QUANTITY или MD_CONVERT_MATERIAL_UNIT.
CALL FUNCTION 'MATERIAL_CONVERT_QUANTITY' EXPORTING pi_material_src = uv_matnr pi_meinh_src = uv_unit_from * pi_meins_src = pi_quantity_src = uv_quant_from pi_material_dst = uv_matnr pi_meinh_dst = uv_unit_to * pi_meins_dst = IMPORTING pe_quantity_dst = cv_quant_to * pe_meinh_dst = * pe_meins_dst = EXCEPTIONS wrong_call = 1 material_not_found = 2 no_conversion = 3 OTHERS = 4.или
CALL FUNCTION 'MD_CONVERT_MATERIAL_UNIT' EXPORTING i_matnr = uv_matnr i_in_me = uv_unit_from i_out_me = uv_unit_to i_menge = uv_quant_from IMPORTING e_menge = cv_quant_to EXCEPTIONS error_in_application = 1 error = 2 OTHERS = 3.
Комментариев нет:
Отправить комментарий