Material Unit Conversion

by Istiyaq

Report test.

PARAMETERS: P_MATNR TYPE MATNR OBLIGATORY.
PARAMETERS: P_IN_ME TYPE MEINS OBLIGATORY.
PARAMETERS: P_OP_ME TYPE MEINS OBLIGATORY.

DATA: V_MENGE TYPE EKPO-MENGE.

CALL FUNCTION 'MD_CONVERT_MATERIAL_UNIT'
EXPORTING
  i_matnr = P_MATNR
  i_in_me = P_IN_ME
  i_out_me = P_OP_ME
  i_menge = '1.000'
IMPORTING
  E_MENGE = V_MENGE
EXCEPTIONS
  ERROR_IN_APPLICATION = 1
  ERROR = 2
  OTHERS = 3.
IF sy-subrc <> 0.
  MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
     WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ELSE.
   WRITE: / V_MENGE.
ENDIF.

 

Please send us your feedback/suggestions at webmaster@SAPTechnical.COM 

HomeContribute About Us Privacy Terms Of Use • Disclaimer • SafeCompanies: Advertise on SAPTechnical.COM | Post JobContact Us  

Graphic Design by Round the Bend Wizards

footer image footer image