Now accepting guest editorial from SAP, Oracle, Workday and ServiceNow practitioners.Pitch a guide
The Sign-Off Table

Lesson 4 of 6

Shelf life and expiry

10 min

Listen to this lesson

0:00 / 7:25

Some materials age. Adhesives, resins, lubricants and many chemicals have a shelf-life expiration date (SLED) after which they must not be used. SAP S/4HANA can calculate the SLED at goods receipt, refuse receipts with too little remaining life, and steer batch determination to use the earliest-expiring batches first. Contoso's winding varnish CMC-RES-020 (illustrative) is the example: it lasts 12 months from manufacture, and WIND-10 must never use an expired lot.

The material master settings

Field (plant data / storage view)MeaningCMC-RES-020 (illustrative)
Total shelf lifeTime from production date to expiry12 months
Minimum remaining shelf lifeShortest remaining life accepted at goods receipt6 months
Period indicator for SLEDUnit for the shelf-life fields (days, weeks, months, years)Months
Rounding rule for SLEDHow the calculated date is roundedEnd of month
Batch managementMust be on for SLED tracking per lotOn

Shelf-life settings in the product master.

At goods receipt, the clerk enters either the production date or the SLED. If the production date is entered, the system calculates the SLED from the total shelf life. It then compares the remaining shelf life with the minimum: if too little life remains, the receipt is refused or warned, depending on Customizing. The check is activated in Customizing under batch management for the expiration date, per plant and per movement type, which lets Contoso check purchase receipts strictly while allowing returns or transfers without the check.

The expiration date check at goods receipt: calculate or accept the SLED, then compare remaining life with the minimum.
The Sign-Off Table · thesignofftable.com/academy/sap-pp-207

First expired, first out

Shelf life matters again when stock is consumed. A batch determination sort rule on the expiry date gives FEFO: first expired, first out. Selection can also require a minimum remaining life at the time of issue, so that a batch expiring next week is not issued to a job that runs for a month. For customers, sales batch determination can require a remaining shelf life on delivery. Contoso uses FEFO for varnish issued to WIND-10 and excludes batches with less than 30 days left.

Three varnish batches with different SLEDs: FEFO issues the one that expires first.
The Sign-Off Table · thesignofftable.com/academy/sap-pp-207

Customers can have their own shelf-life demands. A fleet customer that stores spare varnish for its own workshop might require at least nine months of remaining life on delivery. Sales batch determination can carry such a requirement for the customer and material, and the delivery then picks only batches that meet it. Test a customer requirement next to the default rule, with one batch that meets only the default, so you can see that the customer rule really applies.

Monitoring and expired stock

  1. Run the shelf-life list (MB5M) regularly to see batches approaching or past their SLED by plant and storage location.
  2. Set expired batches to restricted (with batch status management) or move them to blocked stock so they cannot be issued.
  3. Scrap expired stock with a goods issue for scrapping (movement type 551), with the cost going to the agreed cost center.
  4. Analyze why stock expired: order quantities, lot sizes or minimum remaining life at receipt may need adjusting.
  1. Production dateLot made by the supplierVarnish batch manufactured; total shelf life starts
  2. Goods receiptSLED calculated and checkedAt least 6 months must remain
  3. In useFEFO issuesBatches with at least 30 days left issued to WIND-10
  4. SLED minus 30 daysNo longer issuedDetermination excludes the batch; MB5M shows it
  5. SLEDExpiredRestricted or blocked, then scrapped with 551
The life of a varnish batch at Contoso.
The Sign-Off Table · thesignofftable.com/academy/sap-pp-207
Test caseInputExpected result
Fresh lotProduction date one month agoReceipt posted; SLED eleven months ahead, rounded to month end
At the minimumRemaining life exactly six monthsPosted, or refused, exactly as the rule is defined; agree the boundary in writing
Below the minimumRemaining life three monthsRefused (error)
SLED entered directlySupplier certificate shows SLED onlySLED accepted and checked against the minimum
Transfer of short-dated stockMovement type without the checkPosted; batch keeps its SLED
Issue near expiryBatch with 20 days leftNot proposed by determination for WIND-10

Shelf-life test cases for CMC-RES-020 (illustrative).

What goes wrong in testing

PitfallConsequencePrevention
Only fresh batches in test dataExpiry check and FEFO never exercisedCreate batches near, at and past the minimums
Check active for receipts onlyTransfers or returns bring in short-dated stockTest each movement type in scope
Rounding rule ignoredSLED one month off from what quality expectsExpected SLED computed by hand per case
Restricted status not enforcedExpired batch still issuedIssue from a restricted batch must fail

Typical shelf-life test failures.

What would you do?

During testing, a varnish receipt with only two months of remaining life is posted without any message. The material has total shelf life 12 and minimum remaining life 6. What should the tester check first?

Key points
  • Total shelf life, minimum remaining shelf life, period indicator and rounding rule drive SLED.
  • The expiration date check is activated per plant and movement type.
  • FEFO sorting and minimum remaining life in batch determination control consumption.
  • Monitor with MB5M; restrict, block or scrap (551) expired batches.

Check your understanding · not graded

Lesson check

  1. 1. How is the SLED calculated when the clerk enters a production date?

  2. 2. Where is the expiration date check activated?

  3. 3. What does FEFO mean in batch determination?

  4. 4. Which movement type scraps expired stock from unrestricted use?