> 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/sales-and-customer-orders/diagnose-unmatched-self-billing-delivery.md). Agents can also search and read this documentation through its [MCP server](https://kb.theloops.io/~gitbook/mcp).

# Diagnose Unmatched Self Billing Delivery

Explains why one self-billing customer order delivery is unmatched using unmatched list, line setup, deliveries, incoming SBI messages and deviation flags. Read-only.

| Business area             | Action type |
| ------------------------- | ----------- |
| Sales and Customer Orders | Read-only   |

## Overview

With self-billing customers, the customer, not the supplier, issues the invoice. IFS keeps each delivery of a self-billing order line "unmatched" until enough quantity is matched by a customer self-billing invoice (SBI).

IFS Cloud reads self-billing deliveries and related AR messages for diagnostics.

## How it works

{% stepper %}
{% step %}
Get Unmatched Delivery.
{% endstep %}

{% step %}
Get Order Line Self Billing Setup and Get Delivery Invoicing Status.
{% endstep %}

{% step %}
If not in unmatched list, explain exclusion rules.
{% endstep %}

{% step %}
Find Incoming Self Billing Lines, Find Preliminary Self Billing Matches, Check Line Deviation Flags.
{% endstep %}

{% step %}
Classify cause and recommend next action.
{% endstep %}
{% endstepper %}

## Key capabilities

* Confirm that the delivery is in the IFS unmatched self-billing population and read the unmatched quantity (CustomerQty = quantity to invoice minus confirmed SBI quantity).
* Explain the inclusion rules of UNMATCHED\_SBI\_DELIVERIES\_UIV and, if the delivery is not listed, which rule excludes it.
* Read the order line's self-billing set-up (self-billing flag, invoicing block, state, price, customer PO).
* Read delivery invoicing quantities and cancellation flag.
* Find incoming customer self-billing message lines for the order or delivery note and their error messages.
* Find preliminary customer self-billing invoices that already match part of the delivery.
* Read IFS price and quantity deviation flags for the line.
* Classify the cause (awaiting customer SBI, message error, price deviation, quantity deviation, partially matched, excluded) with aging and recommend the next action, never write.

## Requirements

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

| Component | Projection                                         |
| --------- | -------------------------------------------------- |
| ORDER     | UnmatchedSelfBillingDeliveriesHandling             |
| ORDER     | CustomerOrderLinesHandling                         |
| ORDER     | CustomerOrderDeliveriesHandling                    |
| ORDER     | IncomingSelfBillingInvoiceHandling                 |
| ORDER     | CustomerSelfBillingInvoiceHandling                 |
| ORDER     | SelfBilledCustomerOrderLinesWithDeviationsHandling |

## Version compatibility

| Projection                                         | Supported IFS Cloud releases |
| -------------------------------------------------- | ---------------------------- |
| UnmatchedSelfBillingDeliveriesHandling             | 24R2, 25R1, 25R2, 26R1, 26R2 |
| CustomerOrderLinesHandling                         | 24R2, 25R1, 25R2, 26R1, 26R2 |
| CustomerOrderDeliveriesHandling                    | 24R2, 25R1, 25R2, 26R1, 26R2 |
| IncomingSelfBillingInvoiceHandling                 | 24R2, 25R1, 25R2, 26R1, 26R2 |
| CustomerSelfBillingInvoiceHandling                 | 24R2, 25R1, 25R2, 26R1, 26R2 |
| SelfBilledCustomerOrderLinesWithDeviationsHandling | 24R2, 25R1, 25R2, 26R1, 26R2 |

## Known limitations

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