The loop
Run MRP → read the exceptions → inspect the records → check the info records, goods-receipt history and policy → fix → re-run MRP → release the due orders → submit twice → read the debrief.
All challenges and every certification for $9 a month. And learn to build, buy and guide AI agents for supply chain: https://www.skool.com/supplychain
You sit at a plant's ERP terminal with a command line and nothing else. MRP (material requirements planning) is about to order the wrong things because the material master holds wrong lead times, units, safety stocks, lot sizes or vendors. Find the bad records, fix them without touching the good ones, re-run MRP and release only the purchase orders that are really due. Every command counts, and every PO you release goes straight to the vendor.
Type each command at the prompt and press Enter, or click it under Quick commands. This order gets a passing run.
Each contract is one planning session at one plant, with 5 to 7 materials, 4 to 8 vendors and an MRP horizon of usually 8 weeks starting in week 41. Three to five fields in the master data are wrong; you don't know which.
Run MRP → read the exceptions → inspect the records → check the info records, goods-receipt history and policy → fix → re-run MRP → release the due orders → submit twice → read the debrief.
Master data (material and vendor records, info records), how MRP turns lead times, safety stock, lot sizes, MOQ and units into purchase orders, exception messages, and why bad data silently creates wrong orders.
The exception list is a clue, not the answer. Some errors raise no exception at all, some odd-looking records are correct, and a 'fix' to good data counts as a new error. A PO released with bad data is a real commitment that can't be undone.
A black terminal fills the left. A side panel on the right shows the session, quick commands and an exception code cheat sheet. The submit bar sits at the bottom.
Commands are not case-sensitive. <id> is a material number or a vendor number as shown by list. The last column says whether the command counts towards your par.
| Command | Also accepted | What it does | Par |
|---|---|---|---|
| help help set help release | ? | The command list, or details for set and release (help po works too). | help is free; ? counts |
| list materials list vendors list po | ls | One-line overview of every material (ABC, unit, lead time, safety stock, MOQ, lot size, vendor, stock), every vendor (city, VAT ID, status), or every order: open POs, POs you released and planned orders from the last MRP run, marked DUE NOW or with their release week. | Counts |
| show mat <id> | display | The material master record: type, ABC class, procurement, base unit and unit of issue, planned delivery time, safety stock, lot size, MOQ, rounding, fixed vendor, price, stock and average weekly demand. Also: show material, show mm, or just show <id>. | Counts |
| show vendor <id> | - | The vendor record: city, VAT ID, status (ACTIVE or BLOCKED with the reason), created date, payment terms and which materials use it as fixed vendor. Also: show supplier. | Counts |
| show info <id> | - | Purchasing info records for a material: each vendor's order unit (for example "BOX = 10 EA"), minimum quantity, quoted lead time, net price and a note. Also: show inforecord, show quote. | Counts |
| show history <id> | - | Goods receipts of past orders with the real number of days each took, and the average, minimum and maximum actual lead time. Also: show hist, show receipts, show gr. | Counts |
| show plan <id> | - | The MRP list for one material after a run: demand, receipts, planned orders and projected stock per week, then each planned order with DUE NOW or its release week. Also: show mrp, show md04. | Counts |
| show policy | - | The plant's planning policy: the rules that say what the right value of each field is. | Counts |
| set <mat> <field> <value> | change | Change one field of a material (see the field table below). Each change creates a numbered change document. If MRP has run, its results become out of date. | Counts |
| block vendor <id> | - | Set a purchasing block on a vendor. Warns you if it is still the fixed vendor of a material. | Counts |
| unblock vendor <id> | - | Remove a purchasing block. | Counts |
| run mrp | mrp | Plan every material over the horizon and count planned orders and exception messages. Typing just mrp does the same. | Counts |
| exceptions | ex | The exception messages from the last MRP run, one line per problem with its code and the record it points to. | Counts |
| release po <number> | - | Turn a planned order from the last MRP run into a real purchase order sent to the vendor. release order <number> and release <number> work too. | Counts |
| undo | - | Revert your last master-data change (fields or vendor blocks). Repeat to go further back. | Counts |
| submit | - | Show a summary (changes, POs released, open exceptions). Type submit again straight away to lock the run; any other command cancels. | First counts, the confirming one is free |
| history | - | Your last 20 commands, numbered. | Free |
| clear | - | Clear the screen (cls works too). Nothing is undone. | Free |
Use set <material> <field> <value>. The screen label is how show mat and the change message name the field. Numbers may contain commas and are rounded to whole numbers. Setting the value a field already has prints "No change" (and still counts).
| Type this | Screen label | Allowed values | What it does | Where to check the right value |
|---|---|---|---|---|
| leadtime also lead_time, lt, plifz | Planned deliv. time | Whole days, 0 to 365 | Days from ordering to delivery. MRP turns it into whole weeks, rounded up, and orders that many weeks before the need. | Quoted lead time in show info, real days in show history (policy PL-01). |
| safety_stock also safetystock, ss, safety | Safety stock | A whole number, 0 or more | The stock MRP keeps in reserve. It plans an order whenever projected stock would fall below it. | ABC class and Avg demand in show mat (policy PL-02). |
| uom also unit, base_unit | Base unit | EA, BOX, PAK, KG, G, L, ML, M, ROL, PAL, SET | The base unit every quantity in the record is counted in. If it is a vendor pack (BOX) while the plant issues single pieces (EA), every PO is off by the pack size. | Unit of issue in show mat, pack size in show info (policy PL-03). |
| moq also min_qty, minimum | Min. order qty | A whole number, 0 or more | Minimum order quantity. Every planned order is raised to at least this. | MIN QTY of the fixed vendor in show info (policy PL-04). |
| lot_size also lotsize, lot | Lot-size procedure | EX (lot-for-lot), FX (fixed lot), WB (weekly lot) | How MRP sizes an order: lot-for-lot, fixed lot or weekly lot (see below). | show info notes and the briefing. Lot-for-lot (EX) is the safe default unless the data gives a reason. |
| lot_qty also lotqty, fixed_lot | Fixed lot qty | A whole number, 0 or more | The fixed lot size, only used when the lot-size procedure is FX. Orders are whole multiples of it. | show info. Only matters with FX. |
| rounding also round, rounding_value | Rounding value | A whole number, 0 or more | Orders are rounded up to a multiple of this. 0 means no rounding. | The fixed vendor's info record (policy PL-04). |
| vendor also supplier, fixed_vendor | Fixed vendor | An existing vendor id | The fixed vendor every PO for this material goes to. It must exist and must not be blocked. | list vendors and show vendor for status and VAT ID; show info for vendors that quote this material (policy PL-05). |
The lot-size procedure decides how big each planned order is. MOQ and rounding are applied after it.
Orders exactly the gap between projected stock and safety stock in the week it opens. The default, and right for most materials.
Orders whole multiples of the fixed lot qty. A huge fixed lot on a slow item buys months of stock (watch for E26).
Orders the gap plus next week's demand, so one order covers two weeks.
MRP runs the same steps for every material, week by week over the horizon. Each step uses one field, so one wrong field gives one wrong order.
Every code the exceptions command can show, what it means and how to deal with it. Red codes point at a wrong record; amber codes are about planned orders (due now, or far too big), shown in yellow in the terminal.
| Code | Message | What it means | What to do |
|---|---|---|---|
| E10 | Release date in the past | A planned order should already have been released to arrive in time. | Fix the material's data first, re-run MRP, then release po <number>. It will arrive late, so release it now. |
| E15 | Release due this week | A planned order must be released this week to arrive in time. | Same as E10: fix, re-run, release. |
| E26 | Excess | One planned order covers more than 12 weeks of average demand. | Usually a wrong MOQ, fixed lot or rounding value. Compare with show info. |
| E52 | Planned delivery time is 0 days | An externally procured material has no lead time, so MRP thinks it arrives instantly. | Set leadtime from show info and show history. |
| E58 | A-class material without safety stock | An A item has 0 safety stock, against policy PL-02. | Set safety_stock to about 2 weeks of Avg demand (show mat). |
| E61 | Base unit differs from unit of issue | The material is counted in one unit (for example BOX or KG) but issued in another (EA or G). | Set uom to the unit of issue. Pack sizes belong in the info record. |
| E69 | No valid source of supply | The fixed vendor does not exist. | Set vendor to an active vendor that quotes this material in show info. |
| E70 | Fixed vendor is blocked | The fixed vendor has a purchasing block (the reason is shown). | Switch vendor to an active one from show info. Don't unblock a vendor that was blocked for a reason. |
| E71 | Vendors share VAT ID | Two active vendor records have the same VAT ID: probably one company entered twice. | Block the duplicate record and move its materials to the record you keep (policy PL-05). |
release po <number> sends a planned order to the vendor with the quantity, unit and vendor in the record at that moment. The terminal checks a few things first.
| Situation | What the terminal says | What to do |
|---|---|---|
| MRP never run | E: No MRP results. Run MRP first. | run mrp |
| You changed data after the last run | E: Master data changed since the last MRP run... | run mrp again so the order uses the new data. |
| The number isn't in the last run | E: Planned order ... not found | list po for the current numbers. |
| Fixed vendor blocked or missing | E: Release rejected... | Fix the vendor, re-run MRP, release. |
| An in-house material | E: ... is an in-house planned order | Leave it. Production scheduling handles it. |
| Released before its release week | W: Released early... | Counts as an early release (minus 10 on the supply plan). Only release DUE NOW orders. |
| Released already | PO ... is already released. | Nothing to do. |
| All good | PO ... released to vendor ... Output sent (EDI). | Done. It shows as "released by you" in list po. |
Type show policy in your contract. Every current contract uses these six rules:
The game is played by typing. The buttons are shortcuts.
Your score out of 100 is a weighted mix of four parts, checked at submit against the correct master data, which you never see. These are the default weights, used by every current contract.
| Part | Weight | What counts |
|---|---|---|
| Master data errors fixed | 35% | Share of the contract's hidden master-data errors that hold the right value when you submit. For numbers, a value inside the accepted range around the right one counts. |
| No harmful edits or POs | 20% | Starts at 100. Loses 25 points for every field or vendor block that was correct and that you left changed, and 30 points for every harmful PO (wrong vendor, or more than 1.5 times the right quantity in real units). |
| Due purchase orders released correctly | 30% | Share of the orders that were really due (what MRP shows as due once the data is right) that you released to the right vendor with 75% to 150% of the right quantity. Minus 10 per early release, 10 per too-small release and 20 per harmful release. |
| Command efficiency | 15% | 100 while your commands stay within par, falling towards a floor of 20 as you go over. That is then multiplied by your progress (errors fixed plus due orders released, as a share of all of them), so a short session that fixes nothing scores 0. |