Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Convert Unit of measure

hai guyz

I have req to change the unit of measure from base unit of measure to stock unit of measure. I have Matnr, werks, and unit of measure.

I need to convert the value (labst) and Unit of measure to stock unit of measure.

I tried writing some code in selecting data from marm there I am getting the unit but not the final value.

I tired using *CALL FUNCTION 'MATERIAL_UNIT_CONVERSION'

  • EXPORTING

  • INPUT = lt_buff-labst

  • matnr = lt_buff-matnr

  • meinh = lt_buff-meins

  • MEINS = lv_ea <b>( what to give here? to get stock unit of measure?)</b>

  • CHARGE = lt_buff-charg

  • WERKS = lt_buff-werks

  • IMPORTING

  • MEINS = lt_buff-meins

  • OUTPUT = lt_buff-labst.

Tags:
Not what you were looking for? View more on this topic or Ask a question