MITLOC
Prefix: MLbalanceThe location-level balance — one row per item, warehouse, location, lot, and receipt, holding the physical on-hand at the finest grain M3 tracks stock; warehouse-level figures in MITBAL are the roll-up of these rows
What the badges mean
- Prefix: MM
- Prefix: the table’s 2-character physical-column prefix (e.g.
MMonMITMAS) — every field alias on the table carries it. Join by matching aliases across tables, not full column names (see the quirks guide). - master
- Data class: what the table holds — master data, balances, transaction documents, code/reference tables, or history.
- Shared across companies
- The table carries no
CONO— rows aren’t partitioned per company (see the quirks guide). - Division-level
- The table carries
DIVI— rows are scoped below company to a division, one layer more granular thanCONOalone (see the quirks guide).
Parent & satellites
MITLOC is a satellite of MITBAL — many rows here per MITBAL row; join on WHLO + ITNO plus the CONO (exact ON clause under Join details below).
Fields
8 fields · 6 key
8 fields.
| Key | Field | Alias | Description | Type | Length | Flags |
|---|---|---|---|---|---|---|
| Key | MLCONO | CONO | Company | numeric | ||
| Key | MLWHLO | WHLO | Warehouse | alphanumeric | ||
| Key | MLITNO | ITNO | Item number | alphanumeric | ||
| Key | MLWHSL | WHSL | Stock location within the warehouse | alphanumeric | ||
| Key | MLBANO | BANO | Lot (batch) number — blank for non-lot-controlled items | alphanumeric | ||
| Key | MLREPN | REPN | Receiving number distinguishing receipts of the same item and lot in the same location | numeric | ||
| MLSTQT | STQT | On-hand balance at this location/lot grain, in the basic unit | numeric | |||
| MLALQT | ALQT | Allocated quantity at this location/lot grain | numeric |
Field provenance: hand-curated.
Boilerplate SQL
Starting point for reading MITLOC on Databricks — numeric YYYYMMDD dates are wrapped to NULL, verified status ladders are decoded, and the CONO anchor is in place. Set your Unity Catalog location, company, and filter values below; they’re substituted into the SQL and the copy button.
7 parameters not filled: <catalog>, <schema>, <company>, <WHLO>, <ITNO>, <WHSL>, <BANO>
-- ============================================================
-- Table : MITLOC — The location-level balance — one row per item, warehouse, location, lot, and receipt, holding the physical on-hand at the finest grain M3 tracks stock; warehouse-level figures in MITBAL are the roll-up of these rows
-- Purpose: Column-selected read of MITLOC — auto-generated from field metadata
-- Grain : One row per company (CONO) + MLWHLO + MLITNO + MLWHSL + MLBANO + MLREPN
-- Notes : Auto-generated skeleton for a prefixed physical M3 schema or a landing schema normalized to the prefixed names in this catalog. Raw Data Lake property names vary with the published object: map them through Data Catalog before running this SQL. Dates are numeric YYYYMMDD (0 = none, mapped to NULL); all curated status values are decoded inline. Audit columns (RGDT/RGTM/LMDT/CHNO/CHID) omitted — see the quirks guide.
-- ============================================================
SELECT
il.MLCONO AS "Company",
il.MLWHLO AS "Warehouse",
il.MLITNO AS "Item number",
il.MLWHSL AS "Stock location within the warehouse",
il.MLBANO AS "Lot (batch) number — blank for non-lot-controlled items",
il.MLREPN AS "Receiving number distinguishing receipts of the same item and lot in the same location",
il.MLSTQT AS "On-hand balance at this location/lot grain, in the basic unit",
il.MLALQT AS "Allocated quantity at this location/lot grain"
FROM <catalog>.<schema>.MITLOC il
WHERE
il.MLCONO = <company>
-- AND il.MLWHLO = '<WHLO>'
-- AND il.MLITNO = '<ITNO>'
-- AND il.MLWHSL = '<WHSL>'
-- AND il.MLBANO = '<BANO>'
ORDER BY il.MLWHLO;Verified September 2026
Relationships
Diagram of 1-hop neighbors — join details below. CSYTAB decode edges are highlighted; they’re the joins newcomers most often get wrong.
Join details
-- Uses this catalog's prefixed M3 column names; map raw Data Lake properties through Data Catalog first. ON MITLOC.MLITNO = MITMAS.MMITNO AND MITLOC.MLCONO = MITMAS.MMCONO-- Uses this catalog's prefixed M3 column names; map raw Data Lake properties through Data Catalog first. ON MITLOC.MLWHLO = MITWHL.MWWHLO AND MITLOC.MLCONO = MITWHL.MWCONO-- Uses this catalog's prefixed M3 column names; map raw Data Lake properties through Data Catalog first. ON MITLOC.MLWHLO = MITBAL.MBWHLO AND MITLOC.MLITNO = MITBAL.MBITNO AND MITLOC.MLCONO = MITBAL.MBCONO-- Uses this catalog's prefixed M3 column names; map raw Data Lake properties through Data Catalog first. ON MITLOC.MLBANO = MILOMA.LMBANO AND MITLOC.MLITNO = MILOMA.LMITNO AND MITLOC.MLCONO = MILOMA.LMCONO
Programs That Use This Table
- MMS060 — Balance identity display — the inquiry over the MITLOC location-level balancesPrimary sourceInteractive
- MMS850MI — Stock movement API — moves stock between locations programmatically, writing the MITLOC balances and their MITTRA transactionsPrimary sourceAPI
- MWS068 — Balance identity toolbox — the working view over the MITLOC balance identities (item, location, lot, receipt)Primary sourceInteractive
More Inventory & Warehouse tables
- MITTRAThe stock transaction ledger — one row per inventory movement (receipt, issue, transfer, adjustment) with its transaction type, quantity, date, and the order reference that caused it
- MITWHLThe warehouse master — one row per warehouse with its name, facility, and warehouse type; the WHLO every balance and movement carries resolves here
- MILOMAThe lot master — one row per item and lot (batch) number, carrying the lot's identity and life-cycle dates; location balances and allocations reference it by BANO
- MITALOAllocations — one row per item, location, and lot allocated to a specific order line, connecting demand (the order reference) to the exact stock that will fill it; the bridge between order lines and MITLOC balances
- MITBALThe item/warehouse record — one row per item and warehouse, pairing planning policy (safety stock, reorder point, lead time, main supplier) with the warehouse-level on-hand and allocated balances