Skip to content

MRP Core columns

Every column of the MRP Core table, with the name it carries on a report and how it is set.

MRP Core (#TEMP_MRP_CORE) holds one row for each demand and each replenishment in the plan. The MRP reports read it through MRP Details, which adds order, customer, vendor and inventory columns; The MRP tables lists those. Each column below is shown by its name on a report, with the SQL column beneath it. A column with no report name is internal.

Planners mostly need the first three sections. The rest are for writing queries.

What the row is

Column Holds
MRP - Ord Type
(mrp_ord_type)
The kind of row: Customer (Demand), Customer Kit (Demand), Purchase (Replenishment), Production (Demand), Production (Replenishment), Shop Floor (Demand), Shop Floor (Replenishment), In-Transit (Demand), In-Transit (Replenish) or Forecast (Demand)
MRP Ord #
(mrp_ord_no)
The order number, the transfer number for an in-transit row, or FORECAST
(mrp_ord_line) The order line. On a shop floor demand row it is the operation sequence. Empty on POP, shop floor replenishment and forecast rows
MRP - Ord Dt
(mrp_ord_dt)
The date of the order: the order date, the POP entered date or the transfer's document date. Empty on forecast rows
MRP - Demand/Replenish Date
(mrp_trx_dt)
The date the row takes effect in the plan, from the date field and offset chosen in MRP Setup. The rows are totaled in this order. Each row also carries a few milliseconds of its own, so that two rows on one date always sort the same way
MRP - Qty Demand/Replenish
(mrp_trx_qty)
The quantity. Negative for demand, positive for replenishment
(mrp_demand_or_replenish_cd) D for demand, R for replenishment
(mrp_ord_source) OE customer order, PO purchase order, POP production order, SF shop floor order, TRN in-transit transfer, FC forecast
(ID) The row's number, given as the rows are inserted in order of item, date, and replenishment before demand. It supplies the milliseconds added to MRP - Demand/Replenish Date: three for each number

The two codes and ID have no report name, but MRP Details always carries mrp_ord_source and mrp_demand_or_replenish_cd, so a query can filter on them. A kit component row has the source OE, the same as the customer order line it belongs to.

Projected on-hand quantity

The running balance after the row, at three levels. Shortage calculation explains how it is totaled.

Column Level Use it to ask
MRP - New Qty On-Hand (All Loc)
(mrp_new_qty_i)
The item across all locations Is the company short, wherever the stock is?
MRP - New Qty On-Hand (Loc)
(mrp_new_qty_il)
The item at the row's location Is this location short? The shortage reports use this level
MRP - New Qty On-Hand (Group)
(mrp_new_qty_ilg)
The item across the row's location group Is this group of locations short? Equal to the location level when no groups are defined

Each balance is the starting quantity at its level plus the quantity of every row up to and including this one. The total starts again when the item changes, when the item or location changes, or when the item or location group changes, according to the level. A negative balance means the demand so far is more than the stock and replenishment so far at that level.

Read down the rows for one item and location and you see the stock build up and run down, and the order that takes it short. A demand row is short when its balance is below the minimum chosen under Default Item/Location Minimum Quantity: a negative balance with Zero, or a balance that can still be positive with Safety Stock or Reorder Level.

Ignoring replenishment

The same balance with every replenishment row counted as zero. It shows how long the stock on hand lasts if nothing more arrives. PULSE Dashboard fills these columns only when a report uses one of them.

Column Level
MRP - New Qty On-Hand (All Loc) - Ignore Replenish
(mrp_new_nr_qty_i)
The item across all locations
MRP - New Qty On-Hand (Loc) - Ignore Replenish
(mrp_new_nr_qty_il)
The item at the row's location
MRP - New Qty On-Hand (Group) - Ignore Replenish
(mrp_new_nr_qty_ilg)
The item across the row's location group

PULSE Dashboard fills all three when a report asks for any one of them, or for one of the Earliest Shortage Dt - Ignore Replenish columns. When no location groups are defined, the group column is not filled and reads zero; use the location column.

Availability flag

Column Holds
MRP - Avail?
(mrp_rec_avail)
On a demand row, Y when the row's MRP - New Qty On-Hand (Loc) is zero or more and N when it is negative. On a replenishment row, N when any demand row of the same order is negative. The test is against zero, whatever minimum is chosen in MRP Setup. PULSE Dashboard fills the column only when a report uses it

A replenishment row is matched to demand rows with the same order number and the same source. That gives three cases:

Replenishment row Its flag
Production (Replenishment) and Shop Floor (Replenishment) Y when every component row of the order has a balance of zero or more, N when the lowest of them is negative. One short component is enough to mark the order N
In-Transit (Replenish) Follows the In-Transit (Demand) rows of the same transfer
Purchase (Replenishment) Empty. A purchase order has no demand rows of its own

A Forecast (Demand) row is a demand row, so it carries its own Y or N.

The same flag is written to the open customer order line, the POP order and the shop floor order, as N when any of the order's demand rows is negative. A customer order is matched by order number and line number, so each line carries its own flag. Shop floor orders also carry MRP - Avail-P? and MRP - Avail-M?, which test the purchased and the manufactured components separately.

Starting quantity and minimum

Copied onto every row from Inventory Status, so each row carries what the balance started from and what it is tested against.

Column Holds
MRP Qty Avail (All Loc)
(mrp_qty_avail_i)
On hand less the lot and serial quantity on hold, for the item across all locations
MRP Qty Avail (Loc)
(mrp_qty_avail_il)
The same, at the row's location
MRP Qty Avail (Group)
(mrp_qty_avail_ilg)
The same, across the row's location group
Safety Stk
(safety_stk)
The safety stock of the item at the location
Reorder Lvl
(reorder_lvl)
The reorder level of the item at the location

Item and location

Column Holds
Item #
(item_no)
The item
Loc
(item_loc)
The location. For a component it is the location on the order's bill of material or material line
MRP Loc Group
(mrp_loc_group)
The location group named in Configure Location Grouping...; blank when the location has none
Item Pur or MFG
(pur_or_mfg)
P for a purchased item, M for a manufactured one

Order references

Column Holds
OE Ord #
(oe_ord_no)
The customer order, on a customer order row and on a purchase or POP order tied to one
Org Ord #
(org_ord_no)
The original order number, on POP and shop floor rows
Org Item #
(org_item_no)
The original item number, on POP and shop floor rows
Par Item #
(par_item_no)
The item whose order needs this component: the kit on a Customer Kit (Demand) row, the item being made on a Production (Demand) or Shop Floor (Demand) row. Empty on every other row, forecast rows included
Job #
(job_no)
The job number, where the order has one
Request Dt
(request_dt)
The requested date of the order line. Empty on shop floor, in-transit and forecast rows
Promise Dt
(promise_dt)
The promise date of the order line. Empty on shop floor, in-transit and forecast rows

Order numbers that MRP Details adds

MRP Core holds one order number, MRP Ord #, whatever the kind of order. The order numbers by type that the MRP reports show are not MRP Core columns. MRP Details works them out or joins them on:

Column Holds
PO Ord #
(po_ord_no)
MRP Ord #, on a purchase order row only
SF Ord #
(sf_ord_no)
MRP Ord #, on a shop floor row only
POP Ord #
(pp_ord_no)
The POP order number, from the POP order joined to a POP row
Kit Item #
(kit_item_no)
Par Item #, on a Customer Kit (Demand) row only

Customer, vendor and planner

Column Holds
Cust #
(cus_no)
The customer, on customer order rows and on POP rows tied to a customer
Cust Name
(cus_name)
The customer's name, on customer order rows
Ship to Name
(oehdr_ship_to_name)
The ship-to name from the customer order
Bill to Name
(bill_to_name)
The bill-to name from the customer order
Slspsn #
(slspsn_no)
The salesperson, on customer order rows
Vend #
(ap_vend_no)
The vendor, on purchase order rows
Vend Name
(vend_name)
The vendor's name, on purchase order rows
(byr_plnr) The buyer or planner code: PO Line - Byr Plnr on a purchase order row, POP Byr Plnr on a POP or shop floor row, on the demand rows as well as the replenishment row. Empty on customer order, in-transit and forecast rows

Columns written elsewhere

Three results of the calculation are stored on Inventory Status, one row per item and location, and reach the MRP reports from there.

Column Holds
Earliest Shortage Dt (All Loc)
(min_short_dt_i)
Earliest Shortage Dt (Loc)
(min_short_dt_il)
Earliest Shortage Dt (Group)
(min_short_dt_ilg)
The date of the first demand row whose balance at that level is below the minimum
Earliest Shortage Dt (All Loc) - Ignore Replenish
(nr_min_short_dt_i)
Earliest Shortage Dt (Loc) - Ignore Replenish
(nr_min_short_dt_il)
Earliest Shortage Dt (Group) - Ignore Replenish
(nr_min_short_dt_ilg)
The same, on the balance that ignores replenishment
MRP Net Qty O/H (All Loc)
(mrp_net_qty_oh_i)
MRP - Net Qty O/H (Loc)
(mrp_net_qty_oh_il)
MRP Net Qty O/H (Group)
(mrp_net_qty_oh_ilg)
The starting quantity plus every row: the balance at the end of the plan

The earliest shortage dates look at demand rows only, and the test is strictly below the minimum: a balance equal to the safety stock is not short. The minimum on each row is the safety stock or reorder level of that row's own item and location, at all three levels, so the all-locations and group dates compare a combined balance with one location's minimum. An item with no short demand row has no date. PULSE Dashboard fills each of the six dates only when a report uses it.

The net on-hand quantities are always filled. An item, location or group with no rows in the plan takes its starting quantity.

Settings that affect these columns

Notes for custom reports and SQL

Data types. The quantities, the balances, safety_stk and reorder_lvl are decimal(38, 4), and the dates are datetime. mrp_ord_no is varchar(8), mrp_ord_line is int, mrp_ord_source is varchar(3) and mrp_ord_type is varchar(40). mrp_demand_or_replenish_cd, mrp_ord_source, mrp_ord_type, mrp_ord_no and item_no are never null.

Which items are planned. The rows of Inventory Status (#OPT_InventoryStatus) with mrp_include_fg = 1 and stocked_fg = 'Y', the column form of Include in MRP? and a stocked item at that location.

Without location groups. When no location has a group name, mrp_new_qty_ilg is a copy of mrp_new_qty_il, and mrp_new_nr_qty_ilg stays 0.

Columns calculated on request. The - Ignore Replenish columns and MRP - Avail? are filled only when a report asks for them. Adding one to a custom report rebuilds the table with it.