Sub topic 4
Master data shared across modules
This chapter assumes you know what a client, company code, plant, and sales or purchasing organization are, and that you can read a simple SQL join. Business partner has its own chapter, so here the focus is the general idea and the material master.
Master data versus transaction data
Master data describes things that change rarely: materials, partners, accounts, cost centers. Transaction data records events, such as a purchase order or a goods receipt. Each transaction document copies or references master data. A purchase order item points to a material and a supplier. It does not describe them again.
Because every module reads the same records, a change is made once and applies everywhere.
The material master as the example
A material is anything you buy, make, store, or sell. Its record is split by organizational level, so each department maintains only its own part:
| Level | Example table | Typical content | Main users |
|---|---|---|---|
| Client | MARA | Material type, base unit, material group | All modules |
| Plant | MARC | MRP type, purchasing group, procurement type | Procurement, Manufacturing |
| Storage location | MARD | Stock quantities per location | Inventory |
| Sales organization | MVKE | Sales unit, pricing group | Sales |
| Valuation area | MBEW | Valuation class, price control, price | Finance |
The general data in MARA is stored once for the whole client. The plant data in MARC exists only for plants where the material is extended. If you try to order a material for a plant where it was never extended, the system rejects the order.
Reading the layers
This query joins the client-level and plant-level data for one plant:
SELECT FROM mara
INNER JOIN marc ON marc~matnr = mara~matnr
FIELDS mara~matnr, mara~mtart, mara~meins,
marc~werks, marc~ekgrp, marc~dismm
WHERE marc~werks = '1010'
INTO TABLE @DATA(plant_materials)
UP TO 100 ROWS.Each row combines one general record with its plant extension. The key MATNR is the join column, the same key that purchase order and sales order items carry.
Other master data objects
- G/L accounts and cost centers belong to Finance and Controlling, and every posting references them.
- Bills of material and routings belong to Manufacturing. They list the components and the operations needed to build a material.
- Condition records hold prices and discounts. Sales and Procurement both use them.
- Business partners represent customers and suppliers in one model, covered in the next chapter.
Common errors
- Material not extended to a plant or sales organization. A document fails with a message that the material is not maintained. Fix it by extending the material, not by changing the document.
- Wrong material type. The type controls which views exist and whether the material is valued. A service or non-stock material behaves differently in Inventory and Finance.
- Duplicate or inconsistent records. If two records describe the same item, stock and cost are split between them. Check for duplicates before loading data.
- Changing valuation data late. Valuation settings affect postings already made, so changes after goods movements are restricted.
Exercise
A buyer creates a purchase order for material M-100 in plant 2000. The system reports that the material is not maintained for that plant. Material M-100 already works in plant 1010. What is the cause, and what is the fix?
Show answer
The client-level record (MARA) exists, but the material has no plant-level record (MARC) for plant 2000. Extend the material master to plant 2000, with its purchasing and MRP data, and then create the order again.