Sub topic 9
Plant Data and Storage views
This chapter assumes you can open MM01/MM02/MM03 in SAP GUI and know the organizational levels (client, plant, storage location). It also assumes you have read the chapters on views and on extending materials. Here you will learn what the Plant Data / Storage views hold, which level each field belongs to, and where the stored values end up in the tables.
What these views are for
The Plant data / stor. 1 and Plant data / stor. 2 views hold logistics data that warehouse and inventory staff need. Examples are how a material must be stored, how long it keeps, and where it sits in a storage location. Procurement and planning fields live in other views (Purchasing, MRP 1 to 4).
The word "views" is misleading here. A view is a screen grouping. It does not match one table or one organizational level. A single Storage 1 screen can show fields from three tables, and the screen's section headers tell you little about where a value is stored.
Fields by level
| Field group | Examples | Typical level |
|---|---|---|
| Storage conditions | Storage conditions, temperature conditions, container requirements | Client (MARA) |
| Hazardous material | Hazardous material number | Client (MARA) |
| Shelf life | Total shelf life, minimum remaining shelf life, period indicator for shelf life expiration date | Client (MARA) |
| Plant logistics | Unit of issue, batch management indicator, maximum storage period | Plant (MARC) |
| Storage location data | Storage bin, storage location MRP indicator, physical inventory block | Storage location (MARD) |
Treat this table as a guide. The exact placement of a field can differ by release, and field selection (a later chapter) can hide or show any of them.
Plant-level data
Plant data applies to everything stored or handled in one plant. You maintain it after the material has been extended to that plant. The plant row is the parent of any storage location rows.
- Unit of issue. The unit used for goods issues, such as "box" when the base unit is "each". Set a conversion for it on the Additional Data screen, or the system cannot convert.
- Batch management. Switching this on makes the system require a batch number for every goods movement of the material in that plant. Turn it on before stock exists. Changing it later for a material that already has stock is restricted and needs a conversion program.
- Maximum storage period. The longest time stock may stay in the plant. Stock held longer can be reported as overdue.
- Shelf life data. The total shelf life says how long a batch lasts after production. The minimum remaining shelf life is the least amount of life a batch must still have when received. The period indicator sets the unit of measure for these values (days, weeks, months). It also decides whether dates are handled as a shelf life expiration date or as a production date.
Storage location data
Storage location data lets you handle one material differently in separate stores in the same plant. Each storage location is a MARD row keyed by material, plant, and storage location.
- Storage bin. A free-text location for the material in the storage location, such as "A-12-03". It is only a reference, and it is not a managed bin in Warehouse Management.
- Storage location MRP indicator. Excludes the storage location from planning, or plans it separately, when the plant uses storage location MRP. The reorder point and replenishment quantity for that location also belong here.
- Physical inventory block. Blocks the storage location stock from goods movements during a count.
To maintain this data you must extend the material to the storage location. The extend dialog asks for the storage location. The system does not create these rows automatically when you enter plant data. They also appear when the first goods receipt posts to the storage location, but with little master data, so you should still maintain them yourself when your process needs bins or planning settings.
Stock quantities in S/4HANA
In older releases MARD held updated stock totals for each storage location (for example, unrestricted-use stock). In S/4HANA the quantities come from the material document table MATDOC, and a compatibility view still lets old programs read MARD-style quantity fields. The master data fields in MARD, such as storage bin, remain real stored data. When you build new code, do not assume the quantity fields in MARD are updated directly. Use the released stock APIs or CDS views for stock.
Reading the data with ABAP SQL
This report lists the storage-location data for one plant. It shows the MARD fields for bin, MRP indicator, and block.
REPORT zdemo_storage_data.
PARAMETERS p_werks TYPE werks_d DEFAULT '1010'.
SELECT mard~matnr,
mard~lgort,
mard~lgpbe,
mard~diskz,
mard~sperr
FROM mard
WHERE mard~werks = @p_werks
INTO TABLE @DATA(lt_storage)
UP TO 100 ROWS.
IF sy-subrc <> 0.
WRITE / 'No storage location data found.'.
ELSE.
LOOP AT lt_storage INTO DATA(ls_storage).
WRITE: / ls_storage-matnr, ls_storage-lgort, ls_storage-lgpbe.
ENDLOOP.
ENDIF.Check sy-subrc after the SELECT. An empty result is normal for a plant where no material has been extended to a storage location.
Common errors
- The Storage tab is missing. Either the material type does not allow it, or the view was not chosen in the view selection dialog. Check the material type configuration and your field selection first.
- Bin appears for the wrong storage location. The bin is stored per storage location. Check the storage location you were editing in the organizational levels dialog.
- A shelf life field is not accepted. The period indicator must be set. Without it, the other shelf life values cannot be interpreted.
- A change affects other plants. You edited a client-level field (such as storage conditions), which applies to every plant. Plant-specific values need plant-level fields.
Exercise
A user maintains the field "Storage conditions" in the Plant data / stor. 1 view for plant 1010. Later, another user opens the same material for plant 2000 and sees the same value. Why, and which table holds it?
Show answer
Storage conditions are stored at client level in MARA, not in plant data. The view shows them on a plant screen, but there is only one value for the whole material. A plant-specific setting would be stored in MARC, and a storage-location setting such as the storage bin would be stored in MARD.
Exercise
A material has stock in storage location 0001 of plant 1010. You need to record that its storage bin is "A-12-03" in that location only. What must exist before you can enter the bin, and where is the value stored?
Show answer
The material must be extended to plant 1010 and then to storage location 0001. The bin is stored in the MARD row for material, plant 1010, and storage location 0001.