Postman collection
Suppliers Read

pixiDispoGetOpenSupplierOrders

Returns open supplier order lines and order lines with status ANG, with open quantity and estimated delivery date, paged by line key.

Collects open purchase quantities for disposition (replenishment planning) from two sources and returns them as one list.

Type 1200 – supplier order lines (pixi.SupplierOrderLine):

  • Only lines whose supplier order has a status with IsOrderedConfirmed = 1 (ordered or confirmed).
  • Only lines with an open quantity other than 0. The open quantity is Qty - DeliveredQty - UndeliveredQty, with missing values counted as 0.
  • EstimatedDeliveryDate is the line's estimated delivery date, or '0' if none is set.
  • SupplOrderNR is the internal number of the supplier order. SupplOrderDate is the creation date of the line.

Type 2200 – order lines with status ANG (Orderlines):

  • Only lines with Status = 'ANG' and a quantity other than 0.
  • Qty and QtyOrdered are the line quantity. QtyReceived and QtyNotDelivered are always 0.
  • EstimatedDeliveryDate is today plus the supplier's DefaultDeliveryDays. If the supplier has no value, 1 day is used.
  • SupplOrderNR is the order number. SupplOrderDate is the creation date of the line.

For both types, item data (SupplNr, ItemNrInt, ItemNrSuppl) comes from Items via a left join. ItemNrSuppl falls back to ItemNrInt when the item has no supplier item number.

Paging: only lines whose key is greater than SOrderlineKeyStart are returned. The combined list is sorted by SOrderlineKey in ascending order and limited to RowCount rows. To get the next page, pass the last SOrderlineKey you received as the new SOrderlineKeyStart.

All dates are returned as text in the format dd.mm.yyyy.

Notes

  • All tables are read with NOLOCK, so the result can include uncommitted data.
  • SOrderlineKey comes from two different key spaces: SupplierOrderLine.Id for type 1200 and Orderlines.OrderlineKey for type 2200. The same key value can therefore appear in both types.
    • Paging uses a single threshold for both sources.
    • If a page ends in the middle of such a duplicate key, the remaining row with that key is skipped on the next page.
    • Always evaluate Type together with SOrderlineKey.
  • The two sources are combined with UNION, so rows that are completely identical are returned only once.
  • If RowCount is NULL, 10000 is used.
  • EstimatedDeliveryDate for type 2200 is calculated from the current server date at the time of the call.

Tables used

SupplierOrderLine · Read SupplierOrder · Read SupplierOrderStatus · Read Items · Read Orderlines · Read Suppliers · Read
SQL object:
dbo.pipiDispoGetOpenSupplierOrders
Updated at 2026-10-30