get_unhedged_demand โ Unhedged Demand
For each item, how much open sales-order demand is NOT covered by current stock plus open purchase orders.
This is a Named SQL Query (SAP
/SQLQueries) โ dynamic
aggregate SQL returning per-query rows, not a fixed Service Layer entity.Unhedged-demand report โ for each item, how much open sales-order demand is NOT covered by
current stock plus open purchase orders. Returns one row per exposed item with open_so_qty
(summed across open sales orders), on_hand_qty (stock on hand), open_po_qty (on open
purchase orders), and unhedged_gap (open_so โ on_hand โ open_po, floored at 0), largest gap
first. Only items with a positive gap appear โ a fully covered item is omitted.
Try these prompts
- “show me unhedged demand”
- “what am I short of?”
- “which items have unhedged demand?”
- “where will I run out against open orders?”
ื ืกื ืื ืืขืืจืืช
- “ืืฆื ืืืงืืฉ ืื ืืืืกื”
- “ืืื ืื ื ืขืืื ืืืืืช ืืกืจ?”
- “ืืืื ืืืืืจ ืื ืืืืื ืืื ืืืื ืืช ืคืชืืืืช?”
Arguments
No arguments.
Example result
Two items are exposed. I002 โ 120 ordered, 80 on hand, 20 on open POs, gap 20. I001 โ 90 ordered, 40 on hand, 30 on open POs, gap 20.
Result columns
| Column | Type | Meaning |
|---|---|---|
item_code | text | The item’s SAP code. |
item_name | text | The item’s name. |
open_so_qty | number | Quantity committed on open sales orders โ the demand side. |
on_hand_qty | number | Quantity in stock, summed across warehouses. |
open_po_qty | number | Quantity on open purchase orders โ the inbound cover. |
unhedged_gap | number | open_so_qty minus on_hand_qty minus open_po_qty, floored at 0. Only rows above 0 are returned. |
Charts
- bar: x=item_name, y=unhedged_gap, title=“Unhedged demand by item”
- bar: x=item_name, y=open_so_qty,on_hand_qty,open_po_qty, title=“Demand against stock and inbound”
Related
get_stock_coverageโ how long stock lasts at the recent sales rate (a demand-rate view).report_inventory_valuationโ the money value of on-hand stock.get_order_backlogโ open-order demand against stock, without netting POs.