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

# Prioritize Operation Scrap Review

Rank operations with scrap exceptions.

| Business area                           | Action type                                |
| --------------------------------------- | ------------------------------------------ |
| Manufacturing and Supply Chain Planning | Updates IFS Cloud data after user approval |

## Overview

Scrap is reported per operation in IFS Cloud (QtyScrapped on the shop-order operation and scrap transactions in Operation History), but supervisors rarely have a ranked view of which operations deserve a review first. This skill screens a bounded set of operations (one site plus a work center, department, part or date window), computes scrap indicators per operation, compares them with the work-center baseline, checks whether a Material Review Board (MRB) case already exists, and returns a ranked review list with the evidence behind each rank.

Read-only scrap prioritization.

## How it works

{% stepper %}
{% step %}
Screen: ShopOrderOperations filter.
{% endstep %}

{% step %}
Baseline: Historical scrap rates.
{% endstep %}

{% step %}
History: OperationHistorySet scrap rows.
{% endstep %}

{% step %}
MRB: MRBExists and CalculateMrbQty.
{% endstep %}

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

## Key capabilities

* Screen a bounded set of operations by site, work center, department, production line, part and date window.
* Compute scrap rate = QtyScrapped / (QtyComplete + QtyScrapped) and scrap share of RevisedQtyDue.
* Compare each operation with the work-center (and optional part) baseline over a lookback window.
* Detect scrap bursts, repeated resources and employees from Operation History transactions.
* Flag operations where IncreaseLotsizeOnScrapDb hides scrap by enlarging the order.
* Show whether an MRB case already exists (MRBExists, MrbNumber) and the MRB-eligible quantity.
* Return a ranked list with rank reason, evidence and recommended next step.

{% hint style="info" %}
This skill keeps a human in the loop. It previews every change and updates IFS Cloud only after a user approves it.
{% endhint %}

## Requirements

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

| Component | Projection                  |
| --------- | --------------------------- |
| SHPORD    | ShopOrderOperationsHandling |
| MFGSTD    | OperationHistoryHandling    |

## Version compatibility

| Projection                  | Supported IFS Cloud releases |
| --------------------------- | ---------------------------- |
| ShopOrderOperationsHandling | 24R2, 25R1, 25R2, 26R1, 26R2 |
| OperationHistoryHandling    | 24R2, 25R1, 25R2, 26R1, 26R2 |

## Known limitations

* Write paths require explicit user confirmation or authorization where configured.
