> 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/procurement-and-sourcing/check-purchase-order-clause-readiness.md). Agents can also search and read this documentation through its [MCP server](https://kb.theloops.io/~gitbook/mcp).

# Check Purchase Order Clause Readiness

For one purchase order, predicts whether Procurement Clauses Generate will connect standard clauses, lists gaps, and recommends next steps. Read-only.

| Business area            | Action type |
| ------------------------ | ----------- |
| Procurement and Sourcing | Read-only   |

## Overview

IFS Cloud connects procurement clauses (contract-clause phrases from MpccomPhrase with ContractClause = TRUE) to purchase order lines through phrase connection rules (PhraseConnectionRule). On the Purchase Order page, Procurement Clauses > Generate (GenerateAllClausesCommand) calls the projection action GenerateAllClauses(OrderNo), which runs Connected\_Phrase\_API.Generate\_Clauses\_All\_Lines.

IFS Cloud reads purchase orders, phrase rules and phrases to assess clause generation readiness.

## How it works

{% stepper %}
{% step %}
Get Po Clause Header: gate: `Objstate` Planned or Released.
{% endstep %}

{% step %}
List Po Lines For Clauses: ignore Cancelled lines.
{% endstep %}

{% step %}
List Active Clause Rules: optionally narrow by contract and vendor.
{% endstep %}

{% step %}
Check Clause Phrase Coverage per PhraseId and promised delivery date.
{% endstep %}

{% step %}
List Connected Clauses for existing connections.
{% endstep %}
{% endstepper %}

## Key capabilities

* Read the purchase order header and apply the command gate (Objstate must be Planned or Released).
* List part and no-part order lines with site, part, project, activity, promised delivery date and status. Ignore Cancelled lines like IFS does.
* Read Active phrase connection rules and match them per line using IFS wildcard semantics.
* Check phrase revision effectivity (PhaseInDate, PhaseOutDate, ApprovalStatus = Active) on each line's promised delivery date.
* Check phrase text availability in the order LanguageCode.
* List clauses already connected to the order lines, separating user clauses from generated ones.
* Predict the IFS result code (GENERATED, NOLANG, NOREV) and give a verdict, per-line table and next step.

## Requirements

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

| Component | Projection                         |
| --------- | ---------------------------------- |
| PURCH     | PurchaseOrderHandling              |
| MPCCOM    | PhraseConnectionRulesHandling      |
| PURCH     | PhrasesHandling                    |
| MPCCOM    | PhraseConnectionsWhereUsedHandling |

## Version compatibility

| Projection                         | Supported IFS Cloud releases |
| ---------------------------------- | ---------------------------- |
| PurchaseOrderHandling              | 24R2, 25R1, 25R2, 26R1, 26R2 |
| PhraseConnectionRulesHandling      | 24R2, 25R1, 25R2, 26R1, 26R2 |
| PhrasesHandling                    | 24R2, 25R1, 25R2, 26R1, 26R2 |
| PhraseConnectionsWhereUsedHandling | 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.
