/SCWM/AQUA
transactionGUID keyAvailable quants — the stock that warehouse task creation can actually consume, with the bin, handling unit, product, stock type, batch, owner, and entitled party all resolved onto one row
Available quantity, not on-hand: stock already committed to open warehouse tasks is excluded, so AQUA and the LIME quantities do not tie out row for row
The practical stock table for analytics: it carries the stock identity columns /SCWM/QUAN keeps inside unexpanded includes. Described as available quants deliberately — the "fixed bins" description circulating in third-party table dumps is wrong. There is no GUID_HU column: the handling unit is carried as the readable HUIDENT, which is how this reference joins it to the HU header.
What the badges mean
- master
- Data class: what the table holds — master data, transaction documents, configuration, an organizational object, or a language-striped text companion.
- Semantic key
- Every non-client key column is readable business data —
LGNUMplus a bin, task, or order number. Joins run on the columns you can see (see the quirks guide). - GUID key
- Every non-client key column is a GUID —
RAW(16)on the /SCWM, /SCDL, /LIME, and /SCMB tables, and theCHAR(22)compressed form on the product master. Join the raw column; a hex rendering is for reading only, and the two encodings need converting between (see the quirks guide). - Mixed key
- The key mixes readable and GUID columns in either direction — a product GUID inside an otherwise-readable bin key, or a readable status type inside an otherwise-GUID key. Check which side of a join you are on (see the quirks guide).
- DOCCAT: PDO
- A /SCDL delivery table holds several document categories in one table — inbound and outbound requests, the inbound delivery, the outbound delivery order, and the final outbound delivery — discriminated by
DOCCAT. The chips list the categories this table carries; anchor the one you mean or documents of every kind come back together (see the quirks guide). - Embedded S/4HANA only
- Deployment: shown only when a table does not exist in both embedded S/4HANA EWM and decentralized EWM. No table in this wave is deployment-specific, so the badge stays absent until one is.
Structural facts — how the table is keyed, not a trap by itself
Join & extract hazards — verify before you rely on this
Fields
18 fields · 3 key
18 fields.
| # | Field | Description | Type | Flags |
|---|---|---|---|---|
| 1 | MANDT | Client | CLNT(3) | Key |
| 2 | GUID_PARENT | GUID of the parent node (a bin or a handling unit) the available quant sits under | RAW(16) | Key |
| 3 | GUID_STOCK | Stock GUID — joins to the quant attribute rows | RAW(16) | Key |
| 4 | LGNUM | EWM warehouse number | CHAR(4) | |
| 5 | LGTYP | Storage type of the quant's location | CHAR(4) | |
| 6 | LGPLA | Storage bin the quant sits in | CHAR(18) | |
| 7 | HUIDENT | External handling-unit identification the stock sits in — the readable join to the HU header | CHAR(20) | |
| 8 | MATID | Product GUID (RAW16 form) | RAW(16) | |
| 9 | CAT | Stock type or category, such as unrestricted versus blocked | CHAR(2) | |
| 10 | DOCCAT | Document category for document-related stock | CHAR(3) | |
| 11 | STOCK_USAGE | Stock usage classification | CHAR(1) | |
| 12 | OWNER | Stock owner (business partner) | CHAR(10) | |
| 13 | ENTITLED | Party entitled to dispose of the stock | CHAR(10) | |
| 14 | CHARG | Batch number in its readable form | CHAR(10) | |
| 15 | QUAN | Available quantity usable for warehouse task creation | QUAN(31,14) | |
| 16 | UNIT | Base unit of the available quantity | UNIT(3) | |
| 17 | VFDAT | Shelf-life expiration or best-before date | DATS(8) | |
| 18 | WDATU | Goods receipt date and time | DEC(15) | UTCFilter date |
Field provenance: hand-curated. 3 key fields.
Boilerplate SQL
Starting point for reading the replicated copy of /SCWM/AQUAon Databricks — the client anchor is already in place, the namespaced name is rendered as the underscore bronze name replication targets conventionally land it under, and any RAW16 GUID column selects a hex rendering alongside the raw value. Set your Unity Catalog location, schema, and filter values below; they’re substituted into the SQL and the copy button.
7 parameters not filled: <catalog>, <schema>, <client>, <GUID_PARENT>, <GUID_STOCK>, <TS_FROM>, <TS_TO>
-- ============================================================
-- Table : /SCWM/AQUA — Available quants — the stock that warehouse task creation can actually consume, with the bin, handling unit, product, stock type, batch, owner, and entitled party all resolved onto one row
-- Purpose: Column-selected read of /SCWM/AQUA — auto-generated from field metadata
-- Grain : One row per client + GUID_PARENT + GUID_STOCK
-- Caution: Available quantity, not on-hand: stock already committed to open warehouse tasks is excluded, so AQUA and the LIME quantities do not tie out row for row
-- Notes : Auto-generated skeleton for SAP EWM data replicated into your lakehouse — it reads the replicated copy, not the SAP database. Source table /SCWM/AQUA; slashes aren't legal in unquoted Databricks identifiers, so replication targets conventionally land it as scwm_aqua — adjust to your landing convention (see quirks #namespace-slashes). RAW16 GUID columns are joined raw; the hex aliases are for display only (#guid-keys). Timestamps flagged UTC are DEC(15) yyyymmddhhmmss values in UTC, not warehouse local time (#utc-timestamps).
-- ============================================================
SELECT
t.MANDT AS "Client",
t.GUID_PARENT AS "GUID of the parent node (a bin or a handling unit) the available quant sits under",
lower(hex(t.GUID_PARENT)) AS "GUID of the parent node (a bin or a handling unit) the available quant sits under (hex)", -- display rendering of the RAW16 GUID — join on the raw column; see quirks guide #guid-keys
t.GUID_STOCK AS "Stock GUID — joins to the quant attribute rows",
lower(hex(t.GUID_STOCK)) AS "Stock GUID — joins to the quant attribute rows (hex)", -- display rendering of the RAW16 GUID — join on the raw column; see quirks guide #guid-keys
t.LGNUM AS "EWM warehouse number",
t.LGTYP AS "Storage type of the quant's location",
t.LGPLA AS "Storage bin the quant sits in",
t.HUIDENT AS "External handling-unit identification the stock sits in — the readable join to the HU header",
t.MATID AS "Product GUID (RAW16 form)",
lower(hex(t.MATID)) AS "Product GUID (RAW16 form) (hex)", -- display rendering of the RAW16 GUID — join on the raw column; see quirks guide #guid-keys
t.CAT AS "Stock type or category, such as unrestricted versus blocked",
t.DOCCAT AS "Document category for document-related stock",
t.STOCK_USAGE AS "Stock usage classification",
t.OWNER AS "Stock owner (business partner)",
t.ENTITLED AS "Party entitled to dispose of the stock",
t.CHARG AS "Batch number in its readable form",
t.QUAN AS "Available quantity usable for warehouse task creation",
t.UNIT AS "Base unit of the available quantity",
t.VFDAT AS "Shelf-life expiration or best-before date",
t.WDATU AS "Goods receipt date and time" -- UTC
FROM <catalog>.<schema>.scwm_aqua t
WHERE
t.MANDT = '<client>' -- client filter — drop on single-client systems
-- AND t.GUID_PARENT = unhex('<GUID_PARENT>') -- pass the 32-character hex form
-- AND t.GUID_STOCK = unhex('<GUID_STOCK>') -- pass the 32-character hex form
-- AND t.WDATU >= <TS_FROM> -- UTC yyyymmddhhmmss — convert warehouse-local dates first (#utc-timestamps)
-- AND t.WDATU <= <TS_TO>
ORDER BY t.GUID_PARENT;Verified August 2026
Landing conventions differ — see namespaced names in a lakehouse.
Relationships
Diagram of 1-hop neighbors — join details below. GUID joins and text-table joins are highlighted; they’re the joins newcomers most often get wrong.
Join details
ON scwm_aqua.MANDT = scwm_quan.MANDT AND scwm_aqua.GUID_STOCK = scwm_quan.GUID_STOCK AND scwm_aqua.GUID_PARENT = scwm_quan.GUID_PARENT -- RAW16 GUID equality — join raw; hex is for display/conformance onlyON scwm_aqua.MANDT = scwm_huhdr.MANDT AND scwm_aqua.HUIDENT = scwm_huhdr.HUIDENT AND scwm_aqua.LGNUM = scwm_huhdr.LGNUMON scwm_aqua.MANDT = scwm_lagp.MANDT AND scwm_aqua.LGPLA = scwm_lagp.LGPLA AND scwm_aqua.LGNUM = scwm_lagp.LGNUMON scwm_aqua.MANDT = sapapo_matkey.MANDT AND scwm_aqua.MATID = sapapo_matkey.MATID -- the /SCWM side is RAW(16) and MATKEY keys the CHAR 22 compressed form — convert before comparing; this is not a raw equalitythe /SCWM side is RAW(16) and MATKEY keys the CHAR 22 compressed form — convert before comparing; this is not a raw equality
Transaction codes that touch this table
Curated: the EWM transactions an analyst would trace back to these rows, and how each one touches them.
R read · W write · R/W read + write
- /SCWM/ADGIPost an unplanned goods issue — take stock out of the warehouse without a delivery behind itRead/write accessCreatestock-hu
- /SCWM/ADPRODCreate an ad-hoc warehouse task for a product — move stock without a delivery or a wave asking for itRead accessCreatestock-hu
- /SCWM/DIFF_ANALYZERThe difference analyzer — review, approve, and clear the differences a count produced against book stockRead accessReportphysical-inventory
- /SCWM/LS03Display a storage bin — the bin's type, section, capacity, block indicators, and the stock currently sitting in itRead accessDisplaystorage-bins
- /SCWM/MONThe warehouse monitor — the single screen operations works from, with drill-downs across tasks, orders, stock, handling units, deliveries, and resourcesRead accessList / Monitorwarehouse-tasks
- /SCWM/PACKGeneral packing — build, repack, and unpack handling units at a work centerRead accessChangestock-hu
- /SCWM/PI_CREATECreate physical inventory documents — raise the counting work for a set of bins, handling units, or productsRead accessCreatephysical-inventory
- /SCWM/POSTPosting change — change a stock attribute in place (stock type, owner, entitled party, batch) without moving the goodsRead/write accessCreatestock-hu
- /SCWM/TO_CONFConfirm a warehouse task — the transaction that records work as done and moves the row out of the open-task tableWrite accessChangewarehouse-tasks
- /SCWM/TODLV_OCreate warehouse tasks for an outbound delivery order — the picking work behind a shipmentRead accessCreatewarehouse-tasks
More Stock & Handling Units tables
- /SCWM/HUHDRHandling unit header — one row per HU with its external number, packaging material, current storage type and bin, weights, volumes, and the entitled party whose stock it holds
- /SCWM/QUANQuant attributes — the descriptive side of a stock item (units, weight, volume, goods-receipt time, shelf life, country of origin, and the document reference for special stock), keyed by the stock GUID
- /LIME/NQUANThe LIME stock quantities table — the physical quantity of a stock item hanging on one node of the location/handling-unit tree, one row per stock GUID per node per unit of measure
- /LIME/NTREEThe LIME tree structure — one row per node of the location and handling-unit hierarchy stock hangs on, with its object type, its parent node, and the nested-set interval bookkeeping the engine walks the tree with