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

# Activate Ready Supplier Agreement

Verifies one supplier agreement is ready for activation, previews the change, and after explicit approval runs the Activate state event with ETag control.

| Business area            | Action type                                |
| ------------------------ | ------------------------------------------ |
| Procurement and Sourcing | Updates IFS Cloud data after user approval |

## Overview

A supplier agreement (SupplierAgreement, based on LU SupplierBlanket) can only be used for automatic sourcing and order pricing when it is Active. On the Supplier Agreement page the Active command (ActiveCommand) is enabled when Objstate is Negotiate, Closed or Planned.

IFS Cloud reads and activates supplier agreements through SupplierAgreementHandling.

## How it works

{% stepper %}
{% step %}
Get Supplier Agreement: resolve BlanketOrder or search by vendor.
{% endstep %}

{% step %}
Get Agreement Setup Details: periods, sites, part line summary.
{% endstep %}

{% step %}
Check Agreement Activation Readiness: blockers and warnings. Call with userapproved=yes to obtain approvaltoken after preview.
{% endstep %}

{% step %}
Activate Supplier Agreement only after user yes and valid approvaltoken + etag.
{% endstep %}

{% step %}
Verify Supplier Agreement State: success only if Active.
{% endstep %}
{% endstepper %}

## Key capabilities

* Resolve one supplier agreement by BlanketOrder (or by SupplierAgreementId / supplier, then confirm one record).
* Evaluate the IFS command gate (Objstate in Negotiate, Closed, Planned).
* Check server-side prerequisites in advance: periods registered, assortment Active, lines present, Local agreement has a site.
* Warn about period coverage (no period covering today) and hierarchy UoM risks.
* Present a clear preview (current state → Active, key figures) and require explicit approval.
* Execute the Activate state event as a bound OData action with ETag concurrency control.
* Read back and confirm the new state. Surface IFS info/warning messages (approved supplier list).
* Refuse bulk and out-of-scope state changes.

{% 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                |
| -------------------- | ------------------------- |
| PURCH (SRM OPTIONAL) | SupplierAgreementHandling |

## Version compatibility

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

## Known limitations

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