Before dealing with sap alternative unit of measure, let’s define what Base Unit of Measure for a SAP Material then we will explain the Alternative unit for Material.
- 1 SAP Units of Measurement Overview
- 2 SAP Alternative Unit of Measure
Unit of measure in which stocks of the material are managed. The system converts all the quantities you enter in other units of measure (alternative units of measure) to the base unit of measure. Then I will explain how Alternative Units work for Material.
You define the base unit of measure and also alternative units of measure and their conversion factors in the material master record.
It is usually refer in SAP with MEINS
All the Unit are stored in Standard Table T006.
In This Table T006, Details of the Unit and the kind of the unit are defined such as Nb od Decimal, Dimension key, Temperature, Pressure …
Check the table T006A ( Assign Internal to Language-Dependent Unit ) For Unit Description.
T006A-MSEHI is the Unit of Measurement and T006A-MSEHT is for Unit of Measurement Text.
SAP Units of Measurement Conversion Function
IF you check the data element of MEINS ( Unit of Measurement ), it has in standard a conversion routine.
The conversion routine for MEINS are:
- CONVERSION_EXIT_CUNIT_INPUT Conversion exit for commercial (3-char) measurement unit INPUT
- CONVERSION_EXIT_CUNIT_OUTPUT Conversion exit for commercial (3-char) measurement unit OUTPUT
Actually, Unit of Measurement are defined in interne format and external format. This is can be helpfull when looking for SAP Material Unit Conversion.
For exemple, the internal format for Box unit, is BOXand the external unit will be KAR ( this is the commercial value ). This is can be found easly for Sap Material Unit Conversion function module with
CONVERSION_EXIT_CUNIT_INPUT or OUTPUT.
SAP Units of Measurement on Material
The Most important Unit of Measurement for a Material is the Base Unit of Measure. It is the defaut Unit for Sales, Delivery and Stock when dealing with the Material.
The Value of SAP Base Unit for Measure for a Material can be found at MARA-MEINS.
SAP Alternative Unit of Measure
A unit of measure that is defined in the SAP system in addition to the base unit of measure (BUn, base UoM). For example, the base unit of measure might be “pallet” while the alternative unit might be “carton”.
SAP Material : Alternative Units of Measure
In order to maintain or display this list, open the Material General Data ( MM02 for Change or MM03 for Display), Go to Additionnal Data (on the top bar) , then select the second tap Unit of Mesure.
Material Alternative Units of Mesure Overview
Let’s try to decrypt how the Units of Mesure works.
Unit of measure in which quantities can be entered alternatively to the base unit of measure / stockkeeping unit.
To convert a quantity, whose unit of measure is not the same as the base unit of measure, into the base unit of measure, the system requires a quotient:
Quantity (in alternative unit of measure) = quotient * quantity (in base unit of measure)
In Order to define the Quotient = Numerator / Denominator
Alternative Unit of Measure for Stockkeeping Unit (X)
Denominator for conversion to base units of measure
Denominator of the quotient that specifies the ratio of the alternative unit of measure to the base unit of measure.
Numerator for Conversion to Base Units of Measure (Y)
Numerator of the quotient that specifies the ratio of the alternative unit of measure to the base unit of measure.
SAP Material Alternative Units of Mesure Table
The table where the alternative Units of mesure, Numerator and Denominator is MARM (Units of Measure for Material).
- MEINH: Alternative Unit of Measure for Stockkeeping Unit
- UMREZ: Numerator for Conversion to Base Units of Measure
- UMREN: Denominator for conversion to base units of measure
You can define an International Article Number (EAN/UPC) by alternative unit.
It is useless to look for the base unit in this table. Actually the Base Unit of measure is only on MARA-MEINS.
Convert Material Quantities to Different Unit of Measure
In order to convert SAP Material Quantities from an unit of Measure to an other or an alternative unit, use the standard function module MATERIAL_UNIT_CONVERSION.
a sample use for MATERIAL_UNIT_CONVERSION, is
MENGE_INPUT type LABST,
MENGE_OUTPUT type LABST,
VALUE type string,
MEINS type MEINS,
MATERIAL type MATNR.
check MENGE_INPUT ne 0.
call function 'MATERIAL_UNIT_CONVERSION'
INPUT = MENGE_INPUT
MATNR = MATERIAL
MEINH = MEINS
OUTPUT = MENGE_OUTPUT
CONVERSION_NOT_FOUND = 1
INPUT_INVALID = 2
MATERIAL_NOT_FOUND = 3
MEINH_NOT_FOUND = 4
MEINS_MISSING = 5
NO_MEINH = 6
OUTPUT_INVALID = 7
OVERFLOW = 8
others = 9.
check SY-SUBRC = 0.
MENGE_OUTPUT = MENGE_INT.