Procurement
Heat Map Engine.
An automated procurement decision support system that transforms fragmented SAP data into explainable inventory recommendations through deterministic business rules, PowerShell orchestration, Excel calculation logic, and Power BI visualization.
V1–V4 shipped into production. V5, Procurement Mission Control, is a separate public research prototype that wraps the same deterministic backbone in bounded agent review, mandatory challenge, and human approval — on synthetic data only.
Experimental research prototype. Synthetic data, deterministic calculations in the browser, no live SAP connection, no autonomous purchasing.
Two distinct documents: the Procurement Heat Map Engine Technical Report covers the shipped production system (V1–V4). The Mission Control Technical Report covers the experimental agentic prototype (V5).
The planner's morning was never about spreadsheets. It was about decisions.
Every Friday began the same way.
Buyers exported multiple SAP reports, ME2N, MB52, and ZMINVENTORY, before manually copying and pasting the information into a large Excel workbook.
The workbook had evolved over years of operational changes. It contained twenty-four worksheets, many of which no longer contributed to the final output. Logic had accumulated organically, creating duplicated calculations, hidden dependencies, and significant manual effort.
After refreshing formulas, manually updating quarterly demand inputs, supplier forecasts, and consumption data, buyers reviewed thousands of SKUs to determine whether inventory should be expedited, postponed, replenished, or ignored.
Although the organization possessed extensive operational data, there was no engineered process capable of transforming that information into consistent, explainable purchasing decisions.
The bottleneck was never information. It was attention.
- 01SAP ReportsSource
- 02ExportManual
- 03CopyManual
- 04PasteManual
- 05Refresh WorkbookManual
- 06Manual ReviewManual
- 07Interpret RulesManual
- 08DecisionSource
A four layer architecture designed for clarity, maintainability, and trust.
The Procurement Heat Map Engine separates responsibilities into four independent layers. Each layer performs one function exceptionally well, allowing the system to remain modular, transparent, and easily maintained by future engineers.
Data ingestion begins with scheduled SAP exports and quarterly planning inputs. PowerShell orchestrates extraction, validation, cleansing, logging, and transformation. The calculation layer applies deterministic business rules built directly into a structured Excel engine. Outputs are then published to Power BI dashboards and automated buyer reports.
This separation allows every recommendation to be traced back to its original business rule while preserving full auditability.
- 01SAP REPORTSME2N · MB52 · ZMINVENTORY · master data↓
- 02EXTRACTION LAYERPowerShell scheduled pulls · validation · logging↓
- 03BUSINESS RULE ENGINEExcel calculation · deterministic logic · audit trail↓
- 04STRUCTURED DATAVersioned outputs · reproducible runs↓
- 05POWER BI DASHBOARDExecutive KPIs · buyer exception queue↓
- 06BUYERSRanked recommendations · drill-through · override
PowerShell provides orchestration. Excel preserves domain expertise. Power BI delivers decisions.
The architecture deliberately avoids unnecessary technical complexity.
PowerShell performs scheduled execution, SAP extraction, file management, validation, logging, and process orchestration. Excel remains the calculation engine because it already contains years of trusted procurement knowledge and deterministic business rules. Rather than replacing Excel, the system restructures and validates it as production infrastructure.
Power BI serves as the visualization layer, providing executives and buyers with role-specific dashboards, exception queues, and daily recommendations. Every technology choice prioritizes maintainability, transparency, and organizational adoption over novelty.
- · Scheduled execution
- · SAP extraction
- · Validation & logging
- · File management
- · Deterministic rules
- · Domain expertise
- · Auditable formulas
- · Version controlled
- · Executive KPIs
- · Ranked exceptions
- · Drill-through
- · Daily digests
# Procurement Heat Map Engine — nightly orchestrator
$run = [DateTime]::UtcNow.ToString("yyyyMMdd_HHmm")
$log = "\\fileshare\heatmap\logs\$run.log"
Write-Log "Pull SAP extracts" | Invoke-SapExtract -Reports ME2N,MB52,ZMINVENTORY
Write-Log "Validate & cleanse" | Test-ExtractIntegrity -StopOnError
Write-Log "Run calculation engine" | Invoke-ExcelEngine -Workbook "engine.xlsm"
Write-Log "Apply business rules" | Invoke-RuleEngine -Rules "rules.json"
Write-Log "Publish Power BI" | Publish-PowerBIDataset -Workspace "Procurement"
Write-Log "Notify planners" | Send-DailyDigest -Top 25Every recommendation is explainable because every recommendation follows documented logic.
Recommendations are generated through deterministic business rules rather than opaque statistical models.
Inventory health is evaluated using reorder point status, safety stock utilization, lead time, supplier reliability, inventory under inspection, demand stability, and lifecycle classification. The engine converts operational conditions into recommended actions.
Accelerate inbound supply. Coverage is below reorder point and lead-time risk is rising.
No active order covers projected demand within the lead-time horizon.
Inbound supply will arrive before it is required. Defer to free working capital.
Within healthy thresholds. No action required, but watch demand variance.
Signals conflict. Requires planner judgment before the engine commits.
Lifecycle terminated. Flag for write-down or transfer.
Because every recommendation originates from explicit business logic, planners understand exactly why each action is proposed.
One screen. One ranked list. One decision at a time.
The dashboard presents inventory exceptions rather than overwhelming users with every material.
Executive users receive strategic KPIs, inventory trends, supplier exposure, and purchasing performance. Buyers receive ranked recommendations, interactive heat maps, and drill-through capability into every business rule supporting each recommendation.
This design dramatically reduces cognitive load while improving decision speed and consistency.
Rendered depiction of the V5 synthetic-data research prototype. Currency values are illustrative; no client data is shown. Links and CTAs elsewhere on this page launch the real public app.
Decisions due, stockout exposure, cash at risk, critical exceptions
SKUs ranked by deterministic priority, not alphabetical order
Action, site, and criticality narrow the queue to one reviewer's scope
Deterministic scoring — same inputs always produce the same numbers
Opening a row hands the case to the agent investigation panel
Engineering the process changed how procurement thinks.
The deployment transformed procurement from a manually coordinated weekly exercise into a standardized decision support system. Measured improvements include over 80 percent reduction in manual processing, a twenty-four worksheet architecture simplified into a structured pipeline, daily automated execution, standardized business rules across buyers, improved auditability, higher data quality, reduced cognitive load, faster identification of inventory risks, and improved consistency across purchasing decisions.
The greatest improvement, however, was organizational confidence. Every recommendation became transparent, repeatable, and explainable.
- CadenceWeekly, manual
- Tabs24 worksheets
- LogicTribal, undocumented
- AuditabilityEmail threads
- Decision time≈ 4 hrs / planner
- CadenceDaily, automated
- TabsStructured pipeline
- LogicDocumented rules
- AuditabilityFull drill-through
- Decision time≈ 15 min / planner
What building a production decision system taught me.
Build trust before sophistication.
Simple deterministic systems earn adoption faster than complex intelligent systems.
Technology should support human judgment, not replace it.
The objective is better decisions, not more automation.
Explainability is a feature.
Users trust systems they understand.
Good architecture preserves knowledge.
Engineering should outlive individual employees.
Build trust before sophistication.
Support human judgment, don't replace it.
Explainability is a feature.
Architecture preserves knowledge.
The future is not autonomous procurement. It is augmented decision making.
The next generation of the Procurement Heat Map Engine expands deterministic decision rules with explainable artificial intelligence.
Future capabilities include predictive inventory risk, supplier disruption forecasting, learning from planner overrides, natural language explanations of recommendations, scenario simulation, and digital twins of inventory networks.
Artificial intelligence should enhance transparency rather than replace it. Human expertise remains the final decision-maker.
The objective is leverage, not autonomy.
- Today
- Automation
- Decision Support
- Predictive Analytics
- Learning System
- Explainable AI
- Decision Intelligence
From rules engine to agentic decision review.
What follows is a working notebook rather than a product narrative. It records five versions of the same problem — converting fragmented procurement data into defensible purchasing decisions — and marks precisely where shipped production functionality ends and experimental work begins.
ME2N, MB52, and ZMINVENTORY exported by hand; quarterly demand, supplier forecast, and consumption inputs pasted into a 24-worksheet Excel workbook accumulated over years. Logic duplicated, dependencies hidden, interpretation entirely manual.
PowerShell performs scheduled SAP extraction, schema and integrity validation, cleansing, structured run logging, workbook execution, dataset publishing, and a daily planner notification. Human copy-paste removed from the critical path.
Trusted Excel domain logic restructured into explicit, documented rules: Pull In, Create PO, Push Out, Monitor, Research, Obsolete. Each recommendation traces to the rule and the inputs that fired it.
Power BI executive monitoring over inventory, supplier exposure, and purchasing performance, plus a ranked buyer exception queue with drill-through from any recommendation to its governing rule.
A standalone synthetic-data application that surrounds the deterministic backbone with six bounded agents, a mandatory challenge step, counterfactual simulation, a full event trace, human approve / override / request-evidence controls, and a downloadable JSON decision memo. It makes no empirical performance claim.
V1 through V4 are what procurement uses. V5 is what I am testing next, and it is labeled that way everywhere it appears.
Experimental research prototype. Synthetic data, deterministic calculations in the browser, no live SAP connection, no autonomous purchasing.
Two distinct documents: the Procurement Heat Map Engine Technical Report covers the shipped production system (V1–V4). The Mission Control Technical Report covers the experimental agentic prototype (V5).
Six bounded agents around a deterministic backbone.
No agent computes the recommendation. The deterministic rules engine does. Agents read the same typed inputs, produce scoped findings, argue with each other under a mandatory challenge step, and hand a reconciled package to a human. Each agent has a narrow remit so that a wrong finding is attributable rather than diffuse.
Consumption trend, demand volatility, forecast bias, stockout horizon.
Lead-time behavior, on-time delivery, open PO exposure, supplier concentration.
Reorder point, safety stock adequacy, inspection, excess, and obsolete stock.
Working capital impact, expedite premium, carrying cost of the proposed action.
Missing evidence, strongest counterargument, failure modes, confidence limits.
Reconciles rule output, agent evidence, and disagreement into a human review package.
- 01SAP extracts + quarterly planning inputs
- 02Deterministic rules engine — trusted backbone, typed calculations
- 03Specialized agent review — six bounded remits over shared evidence
- 04Mandatory challenge + counterfactual simulation
- 05Human approve / override / request more evidence
- 06Audit trace — inputs, rules fired, findings, disagreement, disposition
The public prototype runs typed deterministic calculations locally in the browser. It has no live SAP connection, issues no external AI calls, and cannot place a purchase order.
What the standalone application actually does.
- Executive portfolioTwelve synthetic SKUs ranked by urgency, filterable by action, site, criticality, and supplier; selecting a row loads it for review.
- Editable operational inputsOn-hand, open PO, weekly demand, volatility, lead time, supplier OTD, unit cost, safety stock, inspection stock, lifecycle, and criticality all drive the math.
- Six-stage review, ~18 secondsIntake and validation, parallel signal scan, challenge and debate, scenario simulation, synthesis, human review.
- Visible reasoningShared evidence, deterministic rules firing, a consensus/disagreement meter, and explicit unknowns and data warnings.
- Calibrated confidence bandA band rather than a point score, with the reasons and assumptions that produced it.
- Counterfactual labAdjust demand, lead time, OTD, and cost to see before/after recommendation, coverage, risk, and cash effects.
- Full trace + memoEvery stage event is inspectable, and the decision exports as a JSON memo carrying its synthetic-data disclaimer.
Mission Control runs outside this site as an independent public prototype. Nothing here simulates it; the buttons open the real application, its source, and its report.
What would have to be true for this to be worth deploying.
The prototype is currently unevaluated. The following is the plan that would make its claims falsifiable, stated before any results exist.
Questions and metrics
Ablations
Deterministic engine with no agent layer. The control condition; agentic review must beat it or it is overhead.
Isolates whether mandatory challenge changes dispositions or only adds latency.
Tests whether cash framing shifts Pull In / Push Out balance.
Tests whether transparency improves override quality or merely increases confidence.
Limitations and governance
- The public prototype runs entirely on synthetic data. No supplier, price, or consumption figure in it is real.
- No empirical performance claim is made for V5. The shipped results reported earlier on this page belong to V1–V4 only.
- The current public prototype makes no external AI calls; all reasoning is typed deterministic logic executed in the browser.
- No autonomous purchase order placement. The system proposes; a human disposes.
- Human authority is structural, not advisory — approve, override, and request-evidence are the only terminal states.
- Production deployment would require role-based access control and segregation of duties between recommendation and approval.
- Any ERP write-back would be gated, reversible, and logged, never issued directly by an agent.
- Language-model agents introduce prompt- and data-injection exposure; untrusted supplier text must be treated as data, never instruction.
- Supplier pricing and performance data is commercially sensitive and would require tenancy isolation and retention limits.
- Rules, models, and source extracts must be versioned so any historical decision can be reconstructed exactly.
- Audit logging must be durable and external to the application.
- Overrides are signals for rule review, not ground truth. They must never silently retrain a model.
Information becomes value only when it becomes a decision.
A procurement system should not automate spreadsheets. It should engineer better decisions.
The complete systems engineering case study, including data flow specifications, rule definitions, validation harness, and deployment notes, is available as a downloadable PDF.