Sub topic 9
Plant Data and Storage views
This chapter assumes you know what a plant and a storage location are, and that you have seen the organizational levels and the views overview from earlier chapters. It covers the two views that describe how a material is physically handled and kept: Plant Data / Stor. 1 and Plant Data / Stor. 2.
What these views hold
The Plant Data / Storage views hold data about how a plant handles a material. Some fields apply to the whole plant. Others apply to one storage location inside the plant.
| Level | Typical fields | Table |
|---|---|---|
| Plant | Storage conditions, temperature conditions, container requirements, shelf life data, batch management indicator | MARC |
| Storage location | Storage bin, picking area | MARD |
Plant-level fields describe the material in the plant as a whole. Storage-location fields are saved per storage location. When you create or extend a material, the system asks for both the plant and the storage location. A material that has been extended to a plant but to no storage location has no MARD record. It cannot hold stock in a storage location.
Fields you will meet most often
- Storage conditions and temperature conditions. These describe how the material must be kept, for example "refrigerated". They help warehouse staff and can feed storage-bin search strategies.
- Container requirements. The type of container needed for the material.
- Shelf life data. The maximum shelf life and the minimum remaining shelf life. These apply only when the shelf life expiration date is relevant to the material.
- Batch management. The indicator is set at plant level. It means stock of the material is tracked per batch. Plan this before stock exists, because changing it later is restricted once stock is on hand.
- Storage bin. A free-text location in the storage location, such as a shelf or rack. It is for simple bin lookup and is not a Warehouse Management bin.
How the levels connect
Each storage location row in MARD belongs to a plant row in MARC. You cannot extend a material to a storage location before you extend it to the plant.
Checking the data with ABAP SQL
You can confirm which storage locations a material has, and read the plant-level batch indicator, with a join of MARC and MARD.
SELECT marc~matnr,
marc~werks,
marc~xchpf,
mard~lgort,
mard~lgpbe
FROM marc
INNER JOIN mard ON mard~matnr = marc~matnr
AND mard~werks = marc~werks
WHERE marc~werks = '1010'
INTO TABLE @DATA(lt_storage)
UP TO 100 ROWS.The field xchpf is the batch management indicator, and lgpbe is the storage bin. An inner join returns only materials that have at least one storage location. Use a left outer join from MARC if you also want plants without storage locations.
Common errors
- Posting a goods movement fails because the material is not extended to the storage location. Extend it first.
- Fields are missing on screen. Field selection for the material type or the plant may hide them, which a later chapter covers.
- Batch management cannot be switched off. Stock already exists for the material.
Exercise
A material is extended to plant 1010 but not to any storage location. Which table has a row for it, MARC or MARD, and can the material hold stock in a storage location?
Show answer
MARC has the row for plant 1010. MARD has no row, so the material cannot hold stock in a storage location until it is extended to one.