Convert Unit of measure
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'
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
MEINS = lt_buff-meins
OUTPUT = lt_buff-labst.