> 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/trace-demand-top-down.md). Agents can also search and read this documentation through its [MCP server](https://kb.theloops.io/~gitbook/mcp).

# Trace Demand Top Down

Summarizes the MRP top-down requirement chain from one planned part through GetNodes and gross requirements, with dependent demand per component. Bounded read-only walk. Returns weakest link and next step.

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

## Overview

In IFS Cloud the command MRP Part Information - Top Down (MRPPartInformationTopDown on list TbwMrpPartSupplyDemandAll in client MrpOpenSupplyAndDemandOrders) opens the tree GrossRequirementsTree of client MrpPartInformation. Each node is an MrpPart. Child nodes come from the function GetNodes, which returns the MRP parts whose demand has the current part as parent (MRP\_TOP\_DOWN\_NODE\_FILTER.PARENT\_PART\_NO = :PartNo).

The IFS Cloud integration reads MRP part information and open supply/demand data to trace requirements top-down.

## How it works

{% stepper %}
{% step %}
Resolve Mrp Part Context to confirm MRP rows in the scenario.
{% endstep %}

{% step %}
Get Mrp Part Plan Header for root on hand, safety stock, run date, shortage flags. Warn if MrpRunDate is older than 7 days.
{% endstep %}

{% step %}
Get Part Gross Requirements. Group root demand by MrpSource and sum DemandQty, list supply lines.
{% endstep %}

{% step %}
Get Top Down Component Nodes for the root. Breadth-first until depth or node limit. Track visited keys to avoid cycles.
{% endstep %}

{% step %}
For each component, Get Component Dependent Demand with ParentPartNo = tree parent.
{% endstep %}

{% step %}
Weak-link: component is WEAK if NegativeProjOnHand or LateOrderComponent. Weakest link is the WEAK component with earliest dependent-demand RequiredDate. If none, SUPPORTED.
{% endstep %}
{% endstepper %}

## Key capabilities

* Resolves the MRP context (ActivitySeq, MrpPlanningScenario) for a part from MRP Open Supply and Demand Orders rows.
* Reads the root part plan header (BegOnhand, SafetyStock, LowLevel, MrpRunDate).
* Summarizes the root gross requirements by source (customer order, forecast, dependent, MRP planned).
* Walks the component tree with the same server function the IFS tree uses (GetNodes), depth and node bounded.
* Links each component's dependent demand to its parent through ParentPartNo, ParentDate, ParentQty.
* Flags components with negative projected on hand, late, early or removable orders.
* Identifies the weakest link (earliest shortage on the critical path).
* Handles project MRP context (ActivitySeq > 0) by passing the activity sequence through unchanged.

## Requirements

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

| Component | Projection                           |
| --------- | ------------------------------------ |
| MRP       | MrpOpenSupplyAndDemandOrdersHandling |
| MRP       | MrpPartInformationHandling           |

## Version compatibility

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

## Known limitations

* Read-only: does not create, update, or delete IFS Cloud data.
* Requires projection-level security. Permission errors halt the run.
