Flat Forecast columns¶
The columns of the weekly table behind the BOM explosion, with the formula for each.
Flat Forecast (#FlatForecast) is the work table PULSE Dashboard fills when Fully Explode BOM is selected. It is of use to someone writing SQL or checking the explosion's arithmetic; none of its columns appears on a report. The table is built only with the license for the Material Requirements module, and like the other MRP tables it is dropped and rebuilt on every MRP refresh. BOM explosion explains the calculation in plain terms, and The MRP tables says which items get a row.
Columns that appear once¶
| Column | Holds |
|---|---|
include_fg |
The constant Y. Nothing reads it |
item_no |
The item |
item_loc |
The location. Present only with Forecasting Aggregation at Item and Location |
min_qty_on_hand |
The minimum from Forecasting Item/Location Minimum Quantity: 0, the safety stock or the reorder level. With Item, the safety stock is the total across the item's locations |
qty_on_hand |
The quantity on hand in Macola®: at the location, or across all locations with Item. Quantities on hold are not taken off, and locations left out of MRP are not left out here |
max_level |
The item's deepest bill-of-material level, from the Component Level table. 0 for an item that is a component of nothing |
Issued_000 |
The quantity invoiced in the current week. Filled, but not used in any formula |
That is six columns with Item and seven with Item and Location. At the default of 12 weeks the table is 126 or 127 columns wide.
Columns that repeat for each week¶
Each week adds ten columns. ### is the week number with leading zeros: _000 is the current week, _001 the next, up to Number of weeks to forecast: less one.
The weeks for orders run Sunday through Saturday, starting with the week that holds the User Date. The current week also takes every order dated before it. The weeks for BaseForecast_### start on the Production Week Start: day instead.
| Column | Holds | How it is set |
|---|---|---|
BaseForecast_### |
The sales forecast for the week | From the source chosen under Forecasting (Demand); 0 with Disabled. See Forecast demand |
CustomerDemand_### |
Open customer orders due in the week | Every open line except a quote, by the customer order Demand Date Field and offset |
ProductionDemand_### |
This item's use as a component on POP and shop floor orders in the week | The same quantities, dates and statuses as the Production (Demand) and Shop Floor (Demand) rows of the plan |
ComponentShortageDemand_### |
Demand passed down from parents that are short in the week | Starts at 0. Each parent adds its Shortage_### × qty_per_par once its own level is done |
Replenish_### |
Purchase, POP and shop floor replenishment due in the week | The same quantities, dates and statuses as the replenishment rows of the plan |
NetDemand_### |
The week's total demand | Level 0: CustomerDemand + BaseForecast. Level 1 and below: CustomerDemand + BaseForecast + ProductionDemand + ComponentShortageDemand |
NetForecast_### |
The quantity written to the plan as the week's Forecast (Demand) row | Level 0: BaseForecast. Level 1 and below: BaseForecast + ComponentShortageDemand. A week with 0 writes no row |
Shortage_### |
The amount the item is short in the week, which is passed down to its components | NetDemand − (carried in + Replenish − min_qty_on_hand), or 0 when that is negative |
AdjustedEndQty_### |
The quantity carried into the next week | carried in + Replenish − NetDemand, raised to min_qty_on_hand when it is below it |
EndQty_### |
The running balance with no floor applied | Week 0: qty_on_hand + Replenish − NetDemand. Later weeks: EndQty of the week before + Replenish − NetDemand. It can go negative and stay negative. Nothing else reads it |
Carried in is qty_on_hand in week 0 and AdjustedEndQty of the week before in every later week.
NetForecast_### is the only column that leaves the table. Shortage_### never reaches a report: it decides how much demand the components receive, and the running balance in MRP Core decides whether anything is short.
Where the order quantities come from¶
CustomerDemand_###, ProductionDemand_### and Replenish_### are filled once, when the table is created. Each order is totaled by item, location and date, and each date is then placed in its week.
| Column | Read from | Quantity | Counted when | Dated by |
|---|---|---|---|---|
CustomerDemand_### |
Open customer order lines | The line's open order quantity, pulse_ord_qty |
The line is not a quote | The customer order Demand Date Field, plus its offset |
ProductionDemand_### |
The components on each POP order's bill of material | (Ordered − reported) × quantity per | The order status is in the POP demand Include statuses and the order quantity is more than the quantity reported | The POP Demand Date Field, plus its offset |
ProductionDemand_### |
The material lines of shop floor orders | The material needed on a Generated or Unreleased order (status G or U); the material remaining on any other | The order status is in the shop floor replenishment Include statuses and the order quantity is more than the quantity completed | The shop floor Demand Date Field, plus its offset |
Replenish_### |
Purchase order lines | (Ordered − received) × the purchasing-to-stocking ratio | The header status is in Include statuses, the line status is not X, and the quantity ordered is more than the quantity received. A blanket order counts only when Include blanket orders is selected | The purchase order Replenishment Date Field, plus its offset, plus the item location's Doc to Stk Ld Tm in days |
Replenish_### |
POP orders | (Ordered − reported) × the manufacturing-to-stocking ratio | The order status is in the POP replenishment Include statuses and the order quantity is more than the quantity reported | The POP Replenishment Date Field, plus its offset |
Replenish_### |
Shop floor orders | (Ordered − completed) × the manufacturing-to-stocking ratio | The order status is in the shop floor replenishment Include statuses and the order quantity is more than the quantity completed | SF Due Dt |
Shop floor orders are read only when your Macola® company holds more shop floor orders than POP orders, as in the plan. When the Macola® Order Entry setup has its ship and bill posting code set to P, customer orders whose header status is 5 through 9 are left out, also as in the plan.
These are the rules of the shortage calculation with four differences:
- Customer orders are counted more widely. The plan takes lines that are available, backordered or short, and lines on hold when Include on-hold orders allows. The weekly table takes every line that is not a quote.
- POP component demand sits at the order's location. The plan places a Production (Demand) row at the component's location on the order's bill of material. The weekly table places the same quantity at the location of the POP order. The difference shows only with Item and Location.
- Every shop floor order type counts. The plan reads shop floor orders of type P only. The weekly table does not test the order type.
- Kits and in-transit transfers are not counted. The plan's Customer Kit (Demand) rows and its in-transit rows have no column here.
Why the carried quantity has a floor¶
AdjustedEndQty stops one short week from making every later week short as well.
Suppose WHEEL-ASSY has 10 on hand, a minimum of 4 and no replenishment due:
| Week | Carried in | Demand | Shortage | AdjustedEndQty |
EndQty |
|---|---|---|---|---|---|
| 0 | 10 | 8 | 8 − (10 − 4) = 2 | 4 | 2 |
| 1 | 4 | 6 | 6 − (4 − 4) = 6 | 4 | −4 |
| 2 | 4 | 3 | 3 | 4 | −7 |
| 3 | 4 | 2 | 2 | 4 | −9 |
Each week's shortage is the demand that week could not meet while keeping 4 on the shelf: 2, then 6, 3 and 2, which is 13 in all. Those are the quantities passed down to the tire and the rim.
Had the unfloored balance been carried forward instead, week 1 would have started from 2, week 2 from −4 and week 3 from −7. Measured against the minimum, the shortages would have been 2, 8, 11 and 13: the same missing wheels counted again every week, and the components asked for many times over. The floor counts each shortage once, in the week it happens.
The floor also leaves a later receipt to the week it arrives in. Had 9 wheel assemblies been due in week 2, that week would have had 4 + 9 − 4 = 9 to meet its demand of 3. It would not have been short, and 4 + 9 − 3 = 10 would have been carried into week 3. None of the 9 goes back to make up the 8 short in weeks 0 and 1, because that shortage was passed down to the components in those weeks. The unfloored balance treats the same receipt differently: EndQty would go from −4 to −4 + 9 − 3 = 2, with the receipt paying off the earlier weeks first.
A week, column by column¶
WHEEL-ASSY, a level 1 item, in week 2. Forecasting Aggregation is Item, the minimum is 4 and 10 are carried in. The item has not been short in weeks 0 and 1, so EndQty_001 is 10 as well. The parent BIKE-COMPLETE is short by 22 in the same week and uses 2 wheel assemblies each.
| Column | Value | From |
|---|---|---|
BaseForecast_002 |
0 | No forecast for this item |
CustomerDemand_002 |
0 | No customer orders for it |
ProductionDemand_002 |
6 | POP orders that consume 6 in the week |
ComponentShortageDemand_002 |
44 | 22 × 2 |
Replenish_002 |
0 | Nothing due |
NetDemand_002 |
50 | 0 + 0 + 6 + 44 |
NetForecast_002 |
44 | 0 + 44 |
Shortage_002 |
44 | 50 − (10 + 0 − 4) |
AdjustedEndQty_002 |
4 | 10 + 0 − 50 is below 4, so 4 |
EndQty_002 |
−40 | 10 + 0 − 50, with no floor |
A Forecast (Demand) row for 44 WHEEL-ASSY goes into the plan, and a shortage of 44 is passed down to each of its components.
Settings that shape the table¶
All of these are in MRP Setup except the last.
- Fully Explode BOM — the table is not built when this is cleared
- Forecasting (Demand) — the source of
BaseForecast_### - Forecasting Aggregation — one row for each item, or one for each item and location, and whether
item_locexists - Forecasting Item/Location Minimum Quantity —
min_qty_on_hand, used byShortage_###andAdjustedEndQty_### - Number of weeks to forecast: — how many sets of ten columns there are
- to be consumed at: — the date given to each
NetForecast_###quantity when it is written to the plan. It changes nothing in the table itself - The order groups — the date fields, offsets and status lists behind
CustomerDemand_###,ProductionDemand_###andReplenish_### - Production Week Start:, in Calendar Settings — the weeks of
BaseForecast_###and the date on each Forecast (Demand) row
Related¶
- BOM explosion — the calculation these columns serve
- Forecast demand — where
BaseForecast_###comes from - MRP Setup — the forecasting options that shape the table
- The MRP tables — Flat BOM and Component Level, which the table is built from
Notes for custom reports and SQL¶
Each week's NetForecast_### reaches MRP Details as a row with mrp_ord_source 'FC',
mrp_ord_type 'Forecast (Demand)' and mrp_ord_no 'FORECAST', its quantity written as a
negative number. A week whose NetForecast_### is 0 adds no row. Filtering a custom report on
mrp_ord_source = 'FC' shows the forecast demand alone.