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

Lesson 3 of 6

Demand planning and forecasting

11 min

Listen to this lesson

0:00 / 7:54

Demand planning in IBP turns history and market knowledge into a single number per product, location and period that the business agrees to plan against: the consensus demand. The steps are familiar from APO DP, but the tools differ: forecast models are configured in the Manage Forecast Models app, run as application jobs, and reviewed in the Excel add-in or the web planning apps.

  1. Load historyBilling or delivery quantities from S/4HANA by product, location, customer
  2. CleanseOutlier correction, promotions and one-offs removed
  3. ForecastStatistical model per segment, run as an application job
  4. MeasureEx-post forecast and error measures such as MAPE and bias
  5. AdjustSales, marketing and key account input
  6. ConsensusDemand review agrees one number
  7. ReleaseConsensus demand sent to S/4HANA as planned independent requirements
The monthly demand planning cycle at Contoso.
The Sign-Off Table · thesignofftable.com/academy/sap-scm-201

Forecast models

A forecast model in IBP is a sequence of steps: preprocessing (for example outlier correction or substitution of missing values), one or more forecasting algorithms, and postprocessing such as error calculation. You define the input key figure (cleansed history), the output key figure (statistical forecast), the periodicity and the history and forecast horizons. SAP offers classic time-series algorithms (moving average, exponential smoothing variants, Croston for intermittent demand), regression-based and machine learning algorithms such as gradient boosting of decision trees, and an automated selection that picks the best fit by error measure. The exact list changes by release; check the algorithm list in your release's help.

Step by step: creating Contoso's fleet model

  1. Open Manage Forecast Models and create a model for planning area CMCPA01, periodicity month.
  2. General settings: 36 months of history, 18 months of forecast horizon.
  3. Preprocessing: outlier correction on the cleansed history key figure, using a method that replaces flagged values with the expected value.
  4. Forecasting steps: input key figure cleansed history, output key figure statistical forecast; algorithms triple exponential smoothing and automated selection.
  5. Postprocessing: calculate the ex-post forecast and MAPE, weighted MAPE and bias for the last 12 months.
  6. Assign the model to fleet products with a forecast model assignment, then schedule it as an application job each month after the history load.

Measuring forecast quality

An ex-post forecast is the forecast the model would have produced for past periods. Comparing it with actual history gives error measures. Three matter most to a reviewer. MAPE (mean absolute percentage error) averages the percentage misses. Weighted MAPE weights them by volume so a small product with a big miss does not dominate. Bias tells you whether the model systematically over- or under-forecasts.

MonthActualForecastAbsolute errorError %
Jan3,8004,0002005.3%
Feb4,1003,9002004.9%
Mar4,5004,05045010.0%
Total / MAPE12,40011,9508506.7% (bias: under-forecast by 450)

Illustrative course data: CMC-ALT-100 in Detroit, three months of ex-post comparison.

In this example MAPE is (5.3 + 4.9 + 10.0) / 3 = 6.7%. The forecast summed to 11,950 against actuals of 12,400, so the model is biased low by 450 pieces over the quarter. A test of the forecast job does not prove the forecast is good; it proves the job calculates these measures correctly on known data. Prepare a small, controlled data set and check the results against a spreadsheet.

Data flow of one demand cycle: history in, forecast job, planner review, consensus out to S/4HANA.
The Sign-Off Table · thesignofftable.com/academy/sap-scm-201

Demand sensing

Demand sensing adjusts the near-term forecast using short-term signals such as open sales orders and recent shipments. SAP's current algorithm uses gradient boosting. SAP's learning material lists constraints worth testing: it works at daily or weekly granularity, needs enough history (the default threshold is 30 weeks; streams with less receive default outputs), runs only on the baseline version, and does not perform well on intermittent demand. For Contoso, demand sensing makes sense for aftermarket parts with steady weekly orders, not for fleet tenders that arrive as lumpy contracts.

Low volume, steadySimple model; review by exception
Low volume, lumpyCroston or manual; avoid demand sensing
High volume, steadyStatistical model plus demand sensing
High volume, lumpyKey account input dominates; review in S&OP
Segmenting products decides which model and how much planner attention each gets.
The Sign-Off Table · thesignofftable.com/academy/sap-scm-201

From statistics to consensus

The statistical forecast is a starting point, not the plan. In the demand review, sales adds known deals (a Great Lakes Fleet Services fleet renewal), marketing adds promotions and phase-outs, and key account managers adjust for customers who share their own forecasts. Each input is a separate stored key figure, so the review can see who changed what. Consensus demand is then calculated from them, usually with a rule such as "statistical forecast plus sales and marketing adjustments, unless a planner override exists". Sunita closes the review by locking the consensus for the next three months, so late changes go through the next cycle.

Model choice depends on the demand segment; the statistical result is then adjusted and overridden into consensus.
The Sign-Off Table · thesignofftable.com/academy/sap-scm-201

What would you do?

In the first parallel run, Contoso's IBP forecast for aftermarket CMC-ALT-100 is 18% lower than APO's for the next three months. Sunita asks Priya whether this is a defect. What should Priya check first?

Key points
  • Forecast models chain preprocessing, algorithms and error calculation, and run as application jobs.
  • Ex-post forecast plus MAPE, weighted MAPE and bias tell you how good a model is.
  • Demand sensing suits steady short-term demand; mind its granularity, history and version limits.
  • Most demand defects are history defects: agree the source documents and reconcile totals.

Check your understanding · not graded

Lesson check

  1. 1. What is an ex-post forecast?

  2. 2. A model forecasts 11,950 against actuals of 12,400 over three months. What does the bias show?

  3. 3. Which restriction applies to demand sensing in SAP's learning material?

  4. 4. Where are IBP forecast models configured?