SAPUse Case

SAP SCM + AI agents

AI in SAP SCM: Planning Agents for IBP, APO and MRP That Explain Instead of Replace

Short answer

AI in SAP SCM works best as a planner's assistant: it explains why supply plans changed, triages MRP and IBP exceptions, joins planning data with supplier and shop-floor context, and drafts actions for approval. SAP IBP already includes statistical and machine learning forecasting; the AI layer adds explanation and cross-system context rather than replacing the planning engine.

ERP
SAP IBP, SAP APO, SAP S/4HANA, SAP ECC 6.0
Industries
Manufacturing, Electronics, Industrial Machinery, Aerospace
Written for
Supply Chain Planning Manager

Supply planners in SAP landscapes live in exception lists. MRP produces reschedule messages in MD04 and MD06, APO or PP/DS adds alerts, IBP generates supply and demand alerts, and every morning someone has to decide which ten of the five hundred matter. The planning engine is rarely wrong in its arithmetic. It is wrong because an input is stale, or right in a way nobody has time to understand.

SAP has put real machine learning into planning. IBP for demand includes a range of statistical and ML forecasting algorithms, demand sensing, and tooling for forecast error analysis, and SAP is adding Joule capabilities to IBP. If your problem is forecast accuracy at item and location level, start with what IBP already offers and tune it properly.

What IBP and APO do not do well is explain themselves in plain language across systems. Why did the projected stock for this component turn negative in week nine? Is the supplier confirmation in the PO line real or a placeholder? Is the late production order blocked by a machine down in MES? Those questions need data from planning, ERP, supplier portals and the shop floor at once.

This page describes agents that sit beside SAP planning, read its outputs and the surrounding data, and help planners act faster, while the solver remains the source of truth.

What usually gets in the way

The problems we hear most from supply chain planning manager teams running SAP IBP.

Exception overload

MRP lists, APO alerts and IBP alerts produce far more messages than planners can process, so important exceptions sit next to trivial ones.

Unexplained plan changes

When a supply plan shifts overnight, tracing the cause through demand changes, lead time updates, safety stock and lot sizing takes significant time.

Stale master data

Planned delivery times, lot sizes, safety stock settings and scheduling margin keys drift from reality, and the planning engine faithfully produces wrong plans.

Supplier confirmations disconnected

Confirmations live in email, portals and EDI acknowledgements; PO confirmation categories in SAP are often incomplete.

APO end of life

APO customers face the end of SCM 7.0 support aligned with 2027 and must choose between IBP, embedded PP/DS in S/4HANA, or other tools, while still planning daily.

Where AI earns its place in SAP IBP

Each use case names the ERP objects it reads or writes, so your ERP team can judge the integration effort before anyone commits budget.

Exception triage for MRP and IBP alerts

The agent ranks exceptions by customer impact, value and lead time, groups related messages and drafts a short daily list with the reason behind each.

Touches: MD04/MD06 exception messages, IBP custom alerts, MRP lists, EKET schedule lines

Outcome: Planners start with the exceptions that affect customer deliveries rather than working the list top to bottom.

Explain a plan change

Ask why projected stock went negative for a component. The agent compares the current and prior plan, identifies demand, supply and parameter changes and explains the dominant cause.

Touches: IBP planning area key figures and versions, MD04 stock/requirements list, PIRs (PBIM/PBED)

Outcome: Root cause in minutes instead of a manual comparison across screens.

Master data drift detection

Compare planned delivery times and in-house production times with actual history, and flag materials where parameters no longer match reality.

Touches: MARC planning parameters, EINE info records, EKBE goods receipt history, AFKO/AFRU confirmations

Outcome: A ranked worklist of parameters to correct, which improves every plan downstream.

Supplier confirmation reconciliation

Read supplier emails and acknowledgements, match them to PO lines and highlight gaps between confirmed and requested dates.

Touches: EKKO/EKPO, EKES confirmations, confirmation control keys, supplier emails and EDI ORDRSP

Outcome: Planners see real supply dates and chase the right suppliers first.

Shortage war room briefing

For a constrained component, produce a briefing with demand by customer, open supply, alternative sources and substitute parts.

Touches: Stock (MARD), open POs, BOM where-used (STPO), source list (EORD), alternative items

Outcome: Faster, better-informed allocation decisions in shortage meetings.

Scenario summaries for S&OP

Summarise differences between IBP scenarios or versions for executives in plain language, with the key figures that drive the gap.

Touches: IBP versions and scenarios, key figures, planning levels

Outcome: S&OP meetings focus on decisions rather than reading spreadsheets.

APO to IBP or PP/DS transition support

Document current APO planning logic, heuristics and custom macros so the replacement design captures what actually matters.

Touches: APO planning books, macros, heuristics, CIF integration models

Outcome: Fewer surprises when APO logic is replaced.

Reference architecture

Agents read planning outputs and parameters from IBP, APO or S/4HANA and context from purchasing, production and supplier communications. They write nothing to the plan; they draft actions for planners.

  1. 1

    Planning data access

    IBP via its OData APIs and data extraction interfaces; APO via RFC and BAPIs; MRP data via MD04-equivalent BAPIs or CDS views in S/4HANA.

  2. 2

    ERP context

    Purchasing, inventory, production order and confirmation data from ECC or S/4HANA through standard APIs.

  3. 3

    External context

    Supplier emails and portal data, MES order status and machine availability, indexed with retrieval.

  4. 4

    Private model and agent logic

    An open-weight model with tools for comparing plan versions, ranking exceptions and drafting messages, running on-prem or in private cloud.

  5. 5

    Planner workbench

    Agent output delivered as a ranked list in a web view, Teams or email, with links back to the SAP transaction or IBP view.

Integration notes for your ERP team

  • IBP exposes planning data through OData services and supports outbound extraction; use read-only communication users scoped to the planning area.
  • On ECC, BAPI_MATERIAL_STOCK_REQ_LIST returns stock/requirements data comparable to MD04 for agent analysis.
  • MRP Live in S/4HANA writes results that are accessible through CDS views; prefer them over raw table reads.
  • Supplier confirmations in EKES depend on confirmation control keys; check how consistently they are used before trusting them.
  • Store plan snapshots daily if your system does not version them, so the agent can explain changes over time.
  • Keep the solver in charge: agents should never overwrite planning parameters without planner approval.

Deployment options

Beside IBP

Companies already on IBP that want explanation and cross-system context.

Agents read IBP data and add ERP and supplier context; forecasting stays in IBP.

Beside MRP on ECC or S/4HANA

Companies planning with classic MRP or MRP Live without APO or IBP.

Agents triage MRP exceptions and parameter drift, often the fastest value.

During APO replacement

APO customers moving to IBP or embedded PP/DS.

Agents document current logic and support planners through the transition.

Compliance and data control

How the architecture supports your obligations. Certification and accountability stay with your organisation; the design keeps the evidence straightforward.

ITAR / EAR

Program-specific demand and part data stays on-prem when the model runs there, supporting the customer's export control obligations.

Supplier contract confidentiality

Supplier prices and terms are retrieved only for authorised users and are not sent to external services.

SOX

Agents propose; planners firm orders and change parameters through normal SAP authorisations and change logs.

Customer data agreements

Customer forecasts shared under NDA are kept within the private environment and filtered by authorisation.

How an engagement runs

Phase 1 . 1-2 weeks

Planning process review

  • -Exception volume analysis
  • -Planner time study
  • -Data source map

Phase 2 . 2-3 weeks

Data access and snapshots

  • -IBP, APO or MRP data access
  • -Daily plan snapshots
  • -Supplier communication indexing

Phase 3 . 4-6 weeks

Agent pilot

  • -Exception triage agent
  • -Plan change explainer
  • -Parameter drift worklist

Phase 4 . 3-4 weeks

Scale

  • -Rollout to more planners
  • -S&OP summaries
  • -Governance and monitoring

Questions to ask any vendor, including us

A short list that separates real SAP IBP AI work from a chatbot demo.

  1. What does IBP already do for our problem, and have we configured it properly?
  2. Does the agent ever change planning parameters or firm orders by itself?
  3. How does it read IBP, APO and MRP data, and what licences does that need?
  4. Can it explain a plan change by comparing versions, and how is that verified?
  5. How does it use supplier emails and portal data?
  6. What happens to the agent when we replace APO?

Frequently asked questions

Does SAP IBP already use AI?

Yes. IBP for demand includes statistical and machine learning forecasting methods, demand sensing and forecast error analysis, and SAP is adding Joule capabilities to IBP. For forecast accuracy problems, configuring and tuning IBP's own algorithms is usually the right first step. An external AI layer adds plain-language explanation, cross-system context and exception triage rather than a better forecast.

Can an LLM do supply planning?

Not reliably as the solver. Planning involves constrained optimisation over many items, resources and periods, which is what MRP, PP/DS and IBP's supply algorithms are built for. Language models are good at explaining results, finding inconsistent inputs, reading unstructured supplier communication and drafting actions. Keep the solver for the math and the model for the explanation.

What is happening to SAP APO?

SAP SCM 7.0, which contains APO, has support aligned with the 2027 end of mainstream maintenance for SAP Business Suite 7, and SAP positions IBP and embedded PP/DS in S/4HANA as successors. Check SAP's current maintenance announcements for your exact release and extended options. Many APO customers are now choosing between IBP, embedded PP/DS and third-party planning tools.

Which planning exceptions should AI handle first?

Start with exceptions that affect customer deliveries: reschedule-in messages on components for orders due in the next few weeks, and shortages with no confirmed supply. These carry the most value and are easiest to verify. Leave long-horizon reschedule-out messages and low-value items for later, since they rarely change decisions.

Can AI fix our planning master data?

It can find the problems and propose corrections, which is the hard part. Comparing planned delivery times with actual receipts and production times with confirmations produces a ranked list of materials whose parameters no longer reflect reality. A planner or master data owner then approves changes through normal SAP processes and change logs.

Do we need IBP to use planning agents?

No. Many companies plan with classic MRP on ECC or MRP Live on S/4HANA, and agents work well there because MRP exception lists are long and parameter drift is common. If you have IBP, agents read its key figures and alerts as well. The agent design is the same; only the data access differs.

How do planners interact with the agent?

Usually through a daily ranked list delivered in a web view, Teams or email, with links back to MD04, the PO or the IBP planning view, plus a chat interface for follow-up questions. Planners still act in SAP. The agent saves the time spent finding and understanding exceptions, which is where most of the day goes.

Talk it through with an engineer who knows SAP IBP

Bring one real question your team cannot answer from the ERP today. We will map the data path, the model, and where it runs, and tell you honestly if AI is the wrong tool for it.

Try it here, free

SAP MD04 Exception Messages and MRP Elements Reference

Open full tool

A searchable lookup of MD04 element abbreviations, key exception messages and the MRP transactions you use to act on them.

Get ERP alerts and new tools

Support deadlines, release changes and new free tools for the ERP you run. A couple of emails a month at most.

Free. Unsubscribe with one click from any email.

ArchRay builder
Design the on-prem AI stack: model, GPUs, RAG pipeline, guardrails
See memory, speed and cost as you swap parts, then export the diagram. Free, in your browser.
Open the builder

Keep exploring