> 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/detect-supplier-agreement-expiry-risk.md). Agents can also search and read this documentation through its [MCP server](https://kb.theloops.io/~gitbook/mcp).

# Detect Supplier Agreement Expiry Risk

Assesses one supplier agreement for expiry and renewal risk from periods and review dates. Read-only.

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

## Overview

An IFS supplier agreement (SupplierBlanket) has no single "valid to" field. Its validity is defined by agreement periods (SuppBlkPeriod: StartDate, EndDate, MaximumAmount, CurrentAmount) and it carries a review date (BlanketReviewDate).

Reads supplier agreement periods and renewal indicators.

## How it works

{% stepper %}
{% step %}
Header: SupplierAgreementHandling SupplierAgreementSet.
{% endstep %}

{% step %}
Periods: SupplierAgreementPeriodArray.
{% endstep %}

{% step %}
Parts: SupplierAgreementPartArray.
{% endstep %}

{% step %}
Follow-up: SupplierAgreementsHandling filter by vendor.
{% endstep %}

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

## Key capabilities

* Reads agreement header state, supplier, site, review date, creation date and lobby expiry fields.
* Lists all agreement periods and derives the effective expiry date (max EndDate, open-ended if any EndDate is null).
* Detects gaps: today or the horizon not covered by any period (Is\_Within\_Valid\_Period logic).
* Applies the IFS lobby rule (BlanketDate <= SysDate15) as a review-date signal.
* Measures business impact: number of part lines, last order update, last price update.
* Checks for a renewal request (RequestsExist) and for follow-up agreements with the same supplier.
* Returns a risk level with days-to-expiry, evidence and a recommended next action.
* Read-only.

## Requirements

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

| Component | Projection                 |
| --------- | -------------------------- |
| PURCH     | SupplierAgreementHandling  |
| PURCH     | SupplierAgreementsHandling |

## Version compatibility

| Projection                 | Supported IFS Cloud releases |
| -------------------------- | ---------------------------- |
| SupplierAgreementHandling  | 24R2, 25R1, 25R2, 26R1, 26R2 |
| SupplierAgreementsHandling | 24R2, 25R1, 25R2, 26R1, 26R2 |

## Known limitations

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