BeyondERP.Newsletter
Menu

Setup step on the Shelf life as of date page · Inventory management

Review batches by expiration date

Find on-hand batches that pass their expiration date by a chosen date.

See how to set it up Back to Inventory management

Used by
Quality control manager, Warehouse manager
Business process
Manage inventory quality
Menu item
PdsInventBatchShelfLife
Main table
InventBatch
Data entity
InventItemBatchEntity
Setup steps
1 on this page

How this guide was checked

Checked in Dynamics 365
Version 10.0.49: the menu item, form, table and security, the page.
Recommended values
Based on Microsoft's documentation. A sound starting point to adjust to your own business requirements.
Tests
A ready-to-run test, “Shelf life as of date lists batches by date”, to confirm this setup in your own test environment.
Show what matters for
SETUP GUIDEHow to set it up8 sections. Choose a role to highlight what matters to you.
Everyone

1What it is and why

What it isAn inquiry page that lists batches as of a date you choose with their expiration date, shelf life period, batch disposition and inventory quantities, so you can see which stock is past or near its expiration date.
What you do hereUse it to find on-hand batches that have reached their expiration date on a given date and act on them, for example by resetting the batch disposition code so they can't be reserved or shipped.
ExampleFor example, on 2026-11-15 BEAT reviews batches of BEAT-000412 as of 2026-12-31. Batch B-2606-07, made on 2026-06-01 with a shelf life period of 200 days, expires on 2026-12-18 and holds 75.00 boxes, so it is reset to an unavailable disposition code before it can be shipped.
Shelf life as of date page in Dynamics 365
The page in Dynamics 365. page title tab to open what to set or check
Functional consultant · Solution architect

2Where it fits

End user · Functional consultant

3How to do it

About the examples: Examples and screenshots in this guide use BEAT, a demo company in a Dynamics 365 test environment. Use your own company's codes and values instead of copying them.

Setup steps on this page

Review batches by expiration date

Find on-hand batches that pass their expiration date by a chosen date.

Steps from Microsoft

  1. Go to Inventory management > Inquiries and reports > Batches > Shelf life as of date.
  2. Set the As of date, for example the last day of next month, to see what will have passed its expiration date by then.
  3. Sort on Expiration date and read the inventory quantity of each batch.
  4. For a batch that must not be sold or used, select Reset batch disposition code and choose an unavailable code.
  5. Select Transactions to see where the batch is used, or Display dimensions to show the warehouse and location.

Source: Microsoft Learn

Fields on the page

FieldWhat it meansExample
As of dateThe date the batches are checked against.Checked in Dynamics 3652026-11-30
Manufacturing dateThe batch's date of manufacture; the shelf life period is added to it to get the expiration date.Microsoft Learn 2026-05-01
Shelf life periodThe number of days after manufacture until the batch expires and can no longer be used.Microsoft Learn 200
Expiration dateManufacturing date plus shelf life period.Microsoft Learn 2026-12-18
Batch disposition codeThe code that marks the batch as available or unavailable for planning, reservation, picking and shipping.Microsoft Learn QC-HOLD

Common errors and fixes

MessageWhat to do
A batch shows no expiration date.The item has no shelf life period in days on the released product, or the batch was created before it was set. Set the period, then update the batch dates. Microsoft Learn

Test checklist

  1. Take a batch item with a shelf life period of 30 days and receive a batch with manufacturing date 30 days ago.
  2. Open Shelf life as of date with As of date today.
  3. Find the batch.
  4. Check that its Expiration date is the manufacturing date plus 30 days and that its quantity matches the on-hand.

Source: Microsoft Learn

Functional consultant

4Setup decisions

Setup stepRecommended value and whyDecision, common mistake and test
Review batches by expiration dateSet the As of date ahead, for example to the end of next month, and review the list weekly; block batches that must not ship with an unavailable disposition code.The As of date decides which batches count as past their date; using today shows only what is already too late to act on.What happens to batches past their expiration date?Reading the list with today's date only, so batches that pass their date before they are shipped aren't caught.Test: Shelf life as of date lists batches by date

Feature management and licence

Licence or add-inOn the live system, Quality control manager and Warehouse manager use this page.

Checked in Dynamics 365

Solution architect

5Design impact

Shared or per companyPer company: each legal entity has its own batches. Microsoft data model
Can it be undoneReversible: The view changes nothing; disposition code resets can be reset again.
If you change it laterViewing changes nothing. Reset batch disposition code changes whether the batch can be planned, reserved, picked and shipped, as set on the disposition code. Microsoft Learn
Technical architect

6Technical

Menu itemPdsInventBatchShelfLife Checked in Dynamics 365
FormPdsInventBatchShelfLife Checked in Dynamics 365
TableInventBatchShown as “Batches” in Record infoKey field: inventBatchId, itemIdChecked in Dynamics 365
Data entitiesInventItemBatchEntityItem batches Microsoft data model
Who can open it

2 security roles. Select a role to see its duties and privileges.

  • RoleQuality control managerInventQualityControlManager
    • DutyInquire into tracking dimensions masterInventTrackingDimensionsMasterInquire
      • PrivilegeView batches past expiration datePdsInventBatchShelfLifeView
  • RoleWarehouse managerWMSWarehouseManager
    • DutyInquire into tracking dimensions masterInventTrackingDimensionsMasterInquire
      • PrivilegeView batches past expiration datePdsInventBatchShelfLifeView
Checked in Dynamics 365
Roles to set it up and use itTo use itQuality control manager InventQualityControlManagerWarehouse manager WMSWarehouseManagerGive people one of these roles. On this system, 2 roles can open this page.Checked in Dynamics 365
Actions on the pageOptions: Personalize, Page options, ShareChecked in Dynamics 365
Developer

7Developer

Open it by URLhttps://<your-environment>/?mi=PdsInventBatchShelfLife
Integrate withInventItemBatchEntity data entity Microsoft data model
Data migrationInventItemBatchEntity Load batches with manufacturing and expiration dates before the opening on-hand journal that uses them.Load order: Load released products with their shelf periods, then batches through Item batches, then opening on-hand per batch with an inventory journal.Load first: Released products, Tracking dimension groupsMicrosoft Learn
Table definitionInventBatch columns and relations Microsoft data model
Everyone

8Sources

To cite this step: IM-INQA-090, Review batches by expiration date. Beyond ERP Atlas Hub. https://www.beyonderp.cloud/atlas/step/IM-INQA-090