SAP Unit of Measure Tables (MARM, T006) and Magento
Time-Saving Integration with Excellent Support
"I like that APPSeCONNECT saves us a lot of time by automating the import of sales orders from Shopify into SAP Business One. It helps in updating business partner contact information, which is great because before we had to hand-type the orders, but now it's all imported smoothly."

Within SAP ECC, a product can have multiple units of measures (UoMs). This helps the enterprise clearly define the units in which they can be procured, manufactured, packed and ordered. It is important to configure the SAP units of measure correctly within the general settings of SAP ERP and Magento to ensure accurate integration. While integrating ECC with an ecommerce application, it is crucial that the correct unit of measures reflect on the web for the customers to choose and order the same. It may be noted that a company may want only the sales unit of measure to be integrated and the rest of them suppressed during such an integration.
SAP stores a material’s base unit of measure in table MARA (field MEINS) and its alternative units, with their conversion factors, in table MARM. The units themselves, such as PC, KG or PAL, are defined in table T006 and maintained with transaction CUNI.
Understanding Units of Measures within SAP ERP
For understanding the SAP unit of measures logic, let us look at a material master record by launching the MM03 transaction. As you can see below this below product has two units of measures, namely PC (pieces) and PAL (pallets). It can also be seen that conversion ratio is also maintained and a PAL contains 4 pieces.
From the above picture, it can also be observed that PC is the base unit of measure. The other units are defined as multiples of base UoM. Similar to base UoM, a sales unit of measure are those units in which the sales of the product is allowed. The MARM table in SAP stores each material’s alternative units of measure and their conversion factors, while the base unit itself is stored in field MEINS of table MARA.
Each unit of measure has a different volume and weight definition. For example, a PC has a volume of 0.2 cubic meters, whereas a PAL is 1.152. It is but obvious from this information that volume and weight are not simple multiples based on UoM conversion. In the above example, since each PAL has 4 PC, you might have expected a PAL to be 0.8 cubic meters based on UoM conversion. However, this is not the case. Read this article on relating UoM with dimensions.
The information on the unit of measures is stored in various SAP table for unit of measure. Given below are some important tables for this topic.
Key fields in the MARM table
Using the example above, the PAL row in MARM has UMREZ 4 and UMREN 1, so 1 PAL equals 4 PC. Because weight and volume are stored for each unit, they do not have to follow the conversion ratio, which is why a PAL can be 1.152 cubic meters rather than 0.8.
Table T006 defines each unit with a dimension, such as mass or volume, and a conversion to the SI unit, which is how SAP converts KG to G. Each unit also has language-dependent commercial and technical keys and can carry an ISO code. When you sync units to an online store, map the unit key that the store expects, not just the text you see in SAP.
Units of Measures within Magento
Magento (now Adobe Commerce) by default has only a single unit of measure. Usually, in SAP terms, this is the base unit of measure. However, in B2B business you may have customers ordering in bulk or larger unit of measures like pallets. Therefore, it is important to add an extension which can help store multiple UoM on Magento related to a product.
The ‘Units of measure tab’ in Magento allows you to configure multiple units of measure for products, enabling conversions between different units and automatically updating pricing and stock levels. This enhances the customer experience by allowing unit selection during the ordering process.
During checkout as well as on the product display page, it allows the user to select the desired unit of measure when adding the product to the cart. This information gets into Magento when APPSeCONNECT synchronizes the catalog information from SAP. When the order is synced with SAP, the UoM selected by the customer is synced at the line item level. See the picture below which shows that pallet was the unit of measure selected by the customer when placing the order.
Business Relevance of UoMs for eCommerce Integration with SAP
Giving the option to customers to select the desired unit of measure has the following significance in terms of business cycle.
- Larger quantities mean lower unit cost – When customers order in larger unit of measure, they get lower unit price. The pricing rules defined in SAP takes care of this. APPSeCONNECT Real-time price fetching from SAP takes care of fetching prices from SAP based on selected UoM.
- Bigger Unit of measure may mean easier logistics – It is easier to ship products in pallets. Even better, if a customer orders in full-truck or half-truckload, it means economic and efficient transportation. By enabling multiple units of measure, we give a chance to the end customer to order in a combination which can give them further logistics related discounts.
- Better customer warehouse and stock keeping – The customer may buy the product and keep it in their warehouse. This may also be a reason why they may want to order the products in a unit which simplifies their warehouse and stock keeping process.
How to Map SAP Units of Measure to Magento
- Decide which units go online. Many companies sync only the sales unit and the base unit and suppress the rest.
- Send the base unit and each alternative unit with its conversion factor from MARM, so prices and stock convert the same way in both systems.
- Keep stock in the base unit in Magento, and convert the quantity of each order line back to the base unit when the order reaches SAP.
- Map unit keys consistently, and include the units in your item master data sync so that new materials arrive with their units already set.
By correctly mapping your SAP units of measure table data to Magento, you turn a complex technical requirement into a streamlined, automated business process.
Now, you can easily connect your SAP ERP and Magento store to automate the business process!
You may also like:
How to Add Customer Web Order Comment in SAP ERP from Magento
Integrate Magento Ecommerce with Rich Product Information from SAP
Cross-Selling between SAP and Magento 2.0
Frequently Asked Questions
Time-Saving Integration with Excellent Support
"I like that APPSeCONNECT saves us a lot of time by automating the import of sales orders from Shopify into SAP Business One. It helps in updating business partner contact information, which is great because before we had to hand-type the orders, but now it's all imported smoothly."
Request for a personalized demo


