KCM guide graphic showing dated ERP and warehouse history feeding a forecast comparison and planner review before orders change.
DATA & PLANNING / FORECASTING GUIDE

AI Demand Forecasting: When to Extend Your ERP's Forecast

Compare forecasts before changing inventory decisions.

Your ERP may already provide a useful demand forecast. Before adding another model, identify the gap in the forecast planners use, check whether better inputs or settings can address it, and compare a candidate against saved ERP forecasts and a simple benchmark. Keep the inventory decision as a separate test.

Read the full article ↓

Consider a distributor preparing its next replenishment plan. Its ERP already produces a demand forecast. Planners can adjust it, and purchasing uses the approved numbers. The data team proposes an AI forecast using information in the company’s warehouse or lakehouse.

There may be a useful opportunity. Promotion schedules, orders across channels and product availability could explain patterns that the current process misses. But the first decision is whether the existing forecasting process needs additional data, different configuration or a new model. Those are different investments.

Start with one product family, one location and one ordering decision. Compare the forecast people use today with a simple benchmark and a candidate using additional information. Extend the process when the evidence supports a worthwhile improvement that the team can operate.

Check what the existing system can already do

An ERP forecast should not be treated as an outdated baseline by default. For example, Microsoft’s Dynamics 365 Demand planning documentation describes combining data from different systems, using forecasting models, reviewing adjustments and exporting the resulting forecast. A customer may already have a suitable place to add a useful signal. Availability and licensing still depend on the actual environment. Microsoft: Demand planning

Ask the planner to show the forecast used for the last ordering decision. Identify its product and location detail, horizon, source history, settings and manual adjustments. Check whether the current tool can accept the proposed additional data and retain the forecast version used at each decision cutoff.

If those capabilities meet the need, test an improved input or configuration there. A warehouse can supply a better planning input without becoming a separate forecasting application. Consider another model when a defined gap remains, such as a useful source the existing process cannot consume or forecasting behaviour it cannot adequately support.

Keep the original system forecast and the planner’s approved adjustment separately. Otherwise, the comparison cannot show whether the model, the human adjustment or both improved the result.

One possible data path is ERP demand and stock plus permitted external context → dated warehouse or lakehouse history → existing planning engine or candidate model → planner review → approved planning input. Use an existing warehouse or lakehouse where it adds value; an additional platform is not a prerequisite. The ERP remains the order system. The candidate does not write live orders automatically.

Make the demand target explicit

Choose what the forecast predicts: customer requests, orders, shipped units or another agreed measure. Match product identifiers, units, locations and time periods before comparing sources.

Sales can be constrained by availability. If a product was unavailable, shipments alone do not reveal how much customers would have bought. A stockout flag identifies a limitation in the observations; it does not supply the missing quantity. Use recorded backorders or other evidence where appropriate, and make any estimate of unobserved demand a separate, reviewable assumption.

A missing period must remain unavailable until its meaning is resolved. Record zero only when the source establishes zero demand. Corrected calendars, product replacements and promotions also need consistent treatment. Extra rows cannot compensate for a target whose meaning keeps changing.

The useful warehouse contribution is a history the planner can explain, with the information that was available at each decision date preserved.

Compare forecasts as they would have been made

Backtesting means replaying earlier forecast decisions and comparing their predictions with outcomes observed later. At each cutoff, use only information that could have reached the forecaster then. Keep the prediction horizon consistent with the business decision. Time-ordered evaluation and simple benchmarks are established forecasting practices. Forecasting: Principles and Practice, chapter 5

A promotion planned before the cutoff can be an input. Its final sales, a later schedule revision or the eventual stockout outcome cannot be treated as advance knowledge. Fit data preparation and model choices using the training portion, with a later evaluation period kept separate. This also applies to selecting variables and filling missing values. scikit-learn: data leakage

Use saved incumbent forecasts where possible. If they were not retained, a rebuilt estimate must be identified as a reconstruction, with its limitations. Start saving dated forecasts prospectively instead of presenting hindsight as an archived business decision.

Agree comparison measures before examining the later results. Once a test period has influenced model selection, use additional untouched periods to evaluate the selected approach.

A comparison the planner can reproduce

Consider one replenishment item at one depot. Each observation covers four consecutive weeks. In this example, customer-requested units are fully observed; the periods contain no missing records or availability-constrained demand. The promotion indicator records whether a promotion was planned at the forecast cutoff.

Eight earlier periods provide the training history. The four periods without a planned promotion contain 96, 104, 98 and 102 units: a mean of 100. The four promotion periods contain 124, 132, 126 and 130 units: a mean of 128. The mean across all eight periods is 114.

Before scoring later periods, the team fixes a simple one-feature linear regression:

Forecast units = 100 + 28 × planned-promotion indicator, where the indicator is 0 or 1.

With this binary input and an intercept, the fitted values equal the two group means. The relationship is predictive; the comparison does not establish that promotions caused a 28-unit increase.

A simple model is useful here because its inputs and arithmetic are visible. A more complex AI model would need to improve on this comparison enough to justify its additional work. The example does not require a language model to produce the forecast.

Keep the coefficients and the 114-unit benchmark fixed through the four later periods below. At the start of each period, read that period’s planned promotion indicator. Add actual demand only after the period closes. The ERP column is the saved forecast used for each decision; no planner overrides are applied in this example.

Later period Planned promotion Actual units Saved ERP forecast Mean benchmark Regression forecast
1 0 102 100 114 100
2 1 130 110 114 128
3 0 98 105 114 100
4 1 126 120 114 128
Total 456 435 456 456

Define signed error here as forecast minus actual. A negative average means underprediction. Mean absolute error, or MAE, averages the size of each error without allowing positive and negative errors to cancel.

Measure across the four periods ERP Mean Regression
Sum of absolute errors, units 35 56 8
MAE, units per four-week period 8.75 14.00 2.00
Mean signed error, units -5.25 0.00 0.00

The mean benchmark and regression both total 456 units. Their period errors are very different. A reconciled total alone would miss that distinction.

The regression has the lowest error in these four comparisons. That supports the next test, not a production rollout. Eight training observations and four scoring periods do not establish seasonal performance, behaviour across products or a reliable uncertainty range. A real pilot needs sufficient history for its demand patterns, several representative forecast cutoffs, the actual decision horizon and a later check that has not been used to tune the model. Where seasonality is relevant, include an appropriate seasonal benchmark.

Keep the ordering policy separate

A forecast predicts demand. An ordering policy combines that forecast with stock, receipts, lead times, pack sizes, service objectives and constraints.

For an upcoming four-week period with a planned promotion, suppose the ERP forecast is 120 units. The fixed candidate gives 128. Hold the planning assumptions constant: 50 usable units on hand, 20 confirmed inbound units, a 20-unit buffer and order packs of 10. All included receipts, including the new order, arrive before the period starts. There is no earlier consumption, backlog, other allocation or supply constraint in this calculation.

The rule is:

Proposed order = round up to a pack of 10 [maximum of 0 and (forecast + 20 − 50 − 20)].

The ERP forecast produces a 70-unit proposal. The candidate produces 80 units because its unrounded requirement is 78. The proposed order differs by 10 units under the same rule.

That arithmetic does not establish fewer shortages or an optimal buffer. The 20 units are a fixed planning assumption, not a measured service guarantee. Test operational outcomes separately, using the same replenishment policy first. If the policy changes too, report its effect separately. Timing matters: a real replenishment design must cover consumption during the relevant review and lead-time periods.

Put the accepted forecast where planners work

Keep the planning owner in the decision. Choose the implementation path after reviewing the existing system and evidence. An established ERP or planning tool may consume the additional data directly. A candidate can also run on the data platform and pass dated, reviewed forecasts into the existing process.

For example, Snowflake documents time-series forecasts with additional features and evaluation metrics. Those capabilities provide a possible implementation route; they do not establish that a particular forecast improves replenishment. Snowflake: time-series forecasting

Run the candidate alongside the current process before letting it influence orders. Record forecast version, cutoff, target period, model version, input snapshot, planner adjustment and approved output. Compare shortages, surplus units and planner effort under agreed conditions. Keep an understood fallback for late data or a failed forecast run.

Generative AI may help explain differences or draft a review note. The numerical comparison and the planner’s operating constraints still determine whether the proposal is useful.

KCM can help review the existing planning process and data path, define a fair comparison and scope a pilot around one replenishment decision. Bring the forecast your team currently uses and the decision it needs to support. Discuss your planning process with KCM

Sources checked October 28, 2026. The worked calculations and pilot recommendations are KCM’s own. Product availability and configuration should be checked in the customer’s environment.