> For the complete documentation index, see [llms.txt](https://kb.theloops.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://kb.theloops.io/agentstudio/skills-library/manufacturing-and-supply-chain-planning/detect-forecast-consumption-anomaly.md). Agents can also search and read this documentation through its [MCP server](https://kb.theloops.io/~gitbook/mcp).

# Detect Forecast Consumption Anomaly

Detects forecast consumption anomalies in aggregated material planning scenarios by comparing period forecast series with supply/demand lines and MRP action messages. Read-only.

| Business area                           | Action type |
| --------------------------------------- | ----------- |
| Manufacturing and Supply Chain Planning | Read-only   |

## Overview

When forecast consumption is misconfigured or demand shifts, plans silently over- or under-supply: demand exceeds forecast but does not consume it, forecast stays unconsumed in past periods, or forecast is consumed by more than the actual demand. IFS Cloud aggregates MRP/MS scenario results per part and period template in Aggregated Material Planning Scenarios (client AggregatedMaterialPlanningScenarios), with Forecast, UnconsumedForecast, ActualDemand, supply and projected on hand per period.

The IFS Cloud integration reads aggregated material planning scenario data and MRP messages.

## How it works

{% stepper %}
{% step %}
Scope: MrpPartSummaryByPeriodSet PeriodNo eq 1.
{% endstep %}

{% step %}
Series: MrpPartSummaryByPeriodSet by part.
{% endstep %}

{% step %}
Lines: MrpPartSupplyDemands in period window.
{% endstep %}

{% step %}
Messages: MrpPartActionSet for part.
{% endstep %}

{% step %}
Return structured results and any escalation guidance.
{% endstep %}
{% endstepper %}

## Key capabilities

* Reads aggregated per-period forecast, unconsumed forecast, demand, supply and projected on hand for a bounded scope.
* Checks aggregation freshness (AggregatedDate) and warns when stale.
* Computes consumed forecast and demand-to-forecast ratio per period.
* Applies explicit anomaly rules (consumption gap, demand above forecast, unforecast demand, consumed above demand, unconsumed past forecast, over-consumption).
* Ranks anomalies by quantity impact.
* Drills into the period's open supply and demand lines with the same filter as the IFS command.
* Correlates forecast-related MRP action messages (DemandForecast, ConsumptionOutsideWindow, ForecastConsumedForecast, ConsumedFcstRemaining, FcstQtyRemaining, ActualDemandRemaining).
* Recommends one next step per anomaly.

## Requirements

The following IFS Cloud components and projections must be available, with permission sets that grant access to each projection.

| Component | Projection                                  |
| --------- | ------------------------------------------- |
| MRPSIM    | AggregatedMaterialPlanningScenariosHandling |
| MRP       | MrpOpenSupplyAndDemandOrdersHandling        |
| MRPSIM    | MrpActionProposalsHandling                  |

## Version compatibility

| Projection                                  | Supported IFS Cloud releases |
| ------------------------------------------- | ---------------------------- |
| AggregatedMaterialPlanningScenariosHandling | 26R1, 26R2                   |
| MrpOpenSupplyAndDemandOrdersHandling        | 24R2, 25R1, 25R2, 26R1, 26R2 |
| MrpActionProposalsHandling                  | 24R2, 25R1, 25R2, 26R1, 26R2 |

## Known limitations

* Read-only: does not create, update, or delete IFS Cloud data.
