Sub topic 15
Material status, blocking, and deletion
This chapter assumes you know what the material master is, how organizational levels work, and how views are organized. It covers how to stop a material from being used without deleting it, and how to remove it for good.
Why not just delete?
A material that has ever been used has history: purchase orders, stock movements, invoices. Deleting it would break those records. SAP therefore separates three ideas.
- Status restricts which business processes may use the material.
- Deletion flag marks the material for removal at a later time.
- Physical deletion removes the data, and only works when nothing depends on it.
Material status
A status is stored at two levels, and each has a validity date.
| Field | Level | Meaning |
|---|---|---|
| Cross-plant material status (MARA-MSTAE) | Client | Applies in every plant |
| Plant-specific material status (MARC-MMSTA) | Plant | Applies in one plant |
| Cross-distribution-chain status (MARA-MSTAV) | Client | Restricts sales |
| DChain-specific status (MVKE-VMSTA) | Sales organization and distribution channel | Restricts sales in one distribution chain |
Each status value is defined in customizing. It determines what happens in each business area, such as purchasing or MRP. The system can ignore the status, issue a warning, or issue an error. For example, a status "Blocked for procurement" can show an error on a purchase order and a warning on a goods receipt.
If both a client-level and a plant-level status exist, the plant-level status is checked for transactions in that plant.
Deletion flags
You set a deletion flag at the level where you want it to apply. Typical levels are client, plant, storage location, and sales area. The flag is a request, not an action.
- A flag at client level covers the whole material.
- A flag at plant level affects only that plant.
- Until the data is archived, the material still exists and documents can still reference it.
You set the flag with transaction MM06 (flag for deletion) or from the change screen in MM02. Transaction MM16 is the corresponding mass-flag tool.
Physical deletion
Physical deletion runs through data archiving, not through a single button. The archiving object is MM_MATNBR. The archiving program checks whether the flagged material is still used, for example by open orders, stock, or other master data. If any dependency remains, the material stays.
Because of this check, run archiving only after a residence period. This is a delay you configure so that recently flagged materials are not removed too early.
Common mistakes
- Treating a deletion flag as final. It can be reversed by removing the flag.
- Setting a plant status and expecting it to block sales in other plants.
- Forgetting that status is checked per process, so a "blocked" material can still allow some transactions if customizing says so.
Exercise
A material is no longer purchased in plant 1010 but is still bought in plant 2010. Which setting should you use to prevent new purchase orders in 1010 only, and why?
Show answer
Set the plant-specific material status (MARC-MMSTA) for plant 1010 to a status that raises an error for purchasing. The plant-level status applies only to that plant. A cross-plant status would also block plant 2010.