Expired or short-dated inventory ties up cash, consumes refrigerated space and can become waste. Acting too aggressively creates a worse outcome: shipping material that fails customer, regulatory, quality or remaining-shelf-life requirements. SAP’s recent AI release summary includes a Batch Optimization Agent intended to monitor expiration and trigger actions to reduce waste. The useful design pattern is an agent that identifies options while ERP, warehouse and quality controls determine what is permissible.
Batch optimization is not simply first-expire-first-out. A viable allocation depends on manufacturing date, shelf-life master data, inspection status, batch classification, destination, transit time, customer minimum life, demand, substitution and recall constraints.
Fix the date foundation
Verify total shelf life, manufacture date, shelf-life expiration date, units and rounding rules. Measure missing, manually overridden and inconsistent values by material, supplier and plant. Keep time zone and date semantics explicit across ERP, EWM, quality and external warehouses.
Separate visibility from authority
The agent may rank at-risk batches and propose transfers, consumption, discount, inspection or block actions. It should not directly release restricted stock, extend shelf life, change a quality decision or ship to a customer. Preserve existing roles and approvals for quality, inventory and commercial commitments.
Model every hard constraint
Include quality status, country and customer rules, allergen or hazardous-material segregation, batch genealogy, recall holds, temperature excursions, minimum remaining life at delivery, production compatibility and transport duration. Reject an option when any hard rule fails; do not trade safety for a higher waste-saving score.
Show the reasoning packet
A proposal should state current location and quantity, expiration evidence, forecast demand, destination requirement, transit assumption, cost, affected orders and alternatives considered. Link back to the ERP batch, inspection lot and warehouse stock. Clearly distinguish sourced facts from predictions.
Design actions as reversible workflow
Create a reviewed task or recommendation before posting a transfer, reservation or status change. Use stable IDs and idempotent integrations so retries cannot duplicate movements. Reconcile the physical scan, warehouse task and ERP document after execution. Escalate when stock is missing or conditions changed.
Test the exceptions that cause waste
Simulate missing manufacture dates, conflicting labels, partial pallets, late demand changes, rejected quality inspections, cold-chain excursions, customer cancellations and disconnected warehouses. Confirm the system fails safely and exposes the case to a named owner.
Measure balanced outcomes
Track expired value, markdown, transfer and expedite cost, disposal, stockouts, service level, quality holds, rejected recommendations and planner time. Segment by product and shelf-life class. Waste reduction is not success if it increases customer rejection or compliance risk.
The takeaway: AI can help teams see expiration risk early and coordinate options. Value appears when recommendations stay grounded in accurate batch data and flow through the same quality authority that protects customers.
From announcement to dependable operations
Start with a bounded business problem and an accountable owner. Record the current cost, delay, failure rate, and manual work before changing the architecture. Define a measurable outcome, but do not present an estimate as guaranteed savings. Include security, finance, operations, and the people who will support exceptions after launch.
Map the current workflow before selecting technology. Identify the source of truth, approval points, downstream consumers, sensitive data, recovery objectives, and every manual workaround. Decide which step the new capability improves and which steps remain unchanged. This prevents a demonstration from being mistaken for an end-to-end operating solution.
Build a representative pilot with real permissions, data volume, dependency behavior, and user roles. Test peak demand, missing data, stale configuration, denied access, duplicate input, partial failure, recovery, and rollback. Document what continues when the new capability is unavailable. Keep an approved manual path for high-consequence decisions.
Security must be part of the design. Use separate workload identities, short-lived credentials, least privilege, encrypted transport and storage, controlled secrets, and auditable administrative access. Treat retrieved documents, event payloads, model output, and third-party responses as untrusted input. Validate every action at the boundary where it affects money, data, equipment, customers, or regulated records.
Cost controls need similar depth. Tag usage to a product and owner, define budgets and anomaly thresholds, measure cost per successful business outcome, and include integration, support, data movement, licensing, and training. A lower infrastructure bill can be offset by more exceptions or human correction. Evaluate total process cost rather than one service price.
Operate the result like a product. Monitor availability, latency, unit cost, data quality, security findings, user adoption, exceptions, and support effort. Version configurations and decision rules. Log changes and approvals. Review whether the capability still solves the original problem as prices, products, and workflows evolve.
Prepare the support model before launch. Give responders dashboards, runbooks, ownership, escalation paths, and safe diagnostic access. Alert on stale data and silent degradation, not only complete failure. Practice a dependency outage and verify that queued work, retries, reconciliation, and user communication behave as designed.
Change management is also technical risk control. Explain what users should trust, what they must verify, and how they report a wrong result. Train with real scenarios and capture overrides as useful feedback. Do not measure adoption by logins alone; measure whether the process becomes faster, safer, or more accurate.
Maintain a decision record that states why the technology was selected, which alternatives were considered, which risks were accepted, and what would trigger redesign or retirement. Review it after incidents and major vendor changes. Portability does not require avoiding managed services; it requires knowing which data, contracts, identities, and operational procedures must survive a change.
Expansion should follow evidence. Compare the pilot with its baseline, include the cost of integration and governance, and retire components that no longer earn their complexity. A new feature creates value only when teams can understand it, control it, recover it, and improve it without depending on one specialist.
Finally, schedule a formal review after thirty and ninety days. Ask whether users changed behavior, whether exceptions moved elsewhere, and whether actual costs match the forecast. Publish the findings to sponsors and delivery teams. If value is weak, narrow the scope or stop. Responsible innovation includes the ability to end an experiment cleanly.
Sources
- SAP News — Q3 2026 AI release highlights and Batch Optimization Agent
- SAP Help — Calculating and checking shelf-life expiration dates
Build it with Cogniquaint experts
Cogniquaint’s ERP, EWM, AI and integration experts can improve shelf-life master data, map quality and customer constraints, design explainable batch recommendations, connect approval workflows and warehouse execution, and measure waste reduction alongside service and compliance outcomes.
Work with Cogniquaint
Ready to elevate your operations with AI-powered insights?
Get in touch with us to build your next intelligent solution.




