> 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/inventory-warehousing-and-replenishment/attach-reservation-to-handling-unit.md). Agents can also search and read this documentation through its [MCP server](https://kb.theloops.io/~gitbook/mcp).

# Attach Reservation to Handling Unit

Validates and attaches shipment reservations to a handling unit using the IFS identify-parts assistant flow. Write bounded by explicit approval.

| Business area                             | Action type                                |
| ----------------------------------------- | ------------------------------------------ |
| Inventory, Warehousing, and Replenishment | Updates IFS Cloud data after user approval |

## Overview

After stock is reserved and picked for a shipment, the packer records which reserved stock records (location, lot, serial, source HU) are physically inside which shipment handling unit. In IFS Cloud this is the "Attach Reservations" command on the Shipment Line Handling Unit detail page (ShipmentLineHandlUnitDetail\_AttachReservationsCommand).

IFS Cloud runs ShipmentHandlingUnitStructureHandling attach assistant actions.

## How it works

{% stepper %}
{% step %}
Get Shipment Line Hu Context.
{% endstep %}

{% step %}
Validate Attach Gate.
{% endstep %}

{% step %}
Preview Attach Reservation.
{% endstep %}

{% step %}
After user approval, Attach Reservation To Handling Unit.
{% endstep %}

{% step %}
Verify Attached Reservations.
{% endstep %}
{% endstepper %}

## Key capabilities

* Read the shipment line HU node with all quantity evidence.
* Check gates mirrored from the IFS client: shipment Preliminary, ReservedQtyLeftToAttach > 0, HU LoadedConsolShpmntId empty.
* Check that the target HU belongs to the same shipment.
* Build the assistant session (ShipmentSourceVirtualSet) and list reservation stock rows with RemainingQtyToAttach.
* Propose an allocation across reservation rows (single row first, then FIFO by row order) without exceeding the open quantity.
* Warn about the shipment-location rule (reservations on a shipment location must be on the HU's location, no mixing of shipment locations).
* Execute only after explicit approval, for one line and one HU.
* Read back attached reservations and the remaining open quantity.

{% 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                            |
| --------- | ------------------------------------- |
| SHPMNT    | ShipmentHandlingUnitStructureHandling |

## Version compatibility

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

## Known limitations

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