InventJournalTrans
worksheet lineInventory journal line — one row per item movement in a journal, with quantity, cost, counted figures, and the dimension combination it posts against
InventOnHand and Counted are the expected/counted pair on counting journals. TransDate is a plain date, not a datetime.
What the badges mean
- main
- Table group: how F&O categorizes the table's role — main entity, group/header, transaction, worksheet header, worksheet line, reference, parameter, or framework.
- Shared across companies
- The table carries no
DataAreaId— rows aren’t partitioned per company, so a query never needs (and can’t use) a company filter here (see the quirks guide). - Date-effective
- The table carries a
ValidFrom/ValidToeffectivity window — a join without a date filter multiplies every key by its history (see the quirks guide).
Header & line
InventJournalTrans lines join back to their header InventJournalTable — and the DataAreaId — so a line never fans out across companies.
Fields
22 fields · 2 key
22 fields.
| Key | Field | EDT | Description | Type | Length | Flags |
|---|---|---|---|---|---|---|
| Key | JournalId | InventJournalId | The journal this line belongs to | string | ||
| Key | LineNum | LineNum | Line number within the journal | real | ||
| TransDate | Posting date of the line — the primary analysis date (a plain date, not a datetime) | date | ||||
| ItemId | ItemId | Item the line moves, adjusts, or counts | string | |||
| InventDimId | InventDimId | Inventory-dimension combination the line posts against; join to InventDim to resolve site / warehouse / batch | string | |||
| JournalType | Journal type copied down from the header, so lines can be filtered without a join | enum | ||||
| Qty | Quantity posted by the line, signed (negative for issues) | real | ||||
| CostAmount | Cost amount of the line in company currency | real | ||||
| CostPrice | Unit cost price used for the line | real | ||||
| PriceUnit | Number of units the cost price applies to (price per 1, 100, 1000…) | real | ||||
| CostMarkup | Charge amount added on top of the cost price | real | ||||
| SalesAmount | Sales amount for the line, where the journal type carries one | real | ||||
| InventOnHand | Expected on-hand quantity at counting time — compare with Counted for count variance | real | ||||
| Counted | Quantity actually counted on a counting journal line | real | ||||
| CountingReasonCode | Reason code recorded for the count difference | string | ||||
| Voucher | Ledger voucher the line posted under | string | ||||
| InventTransId | InventTransId | Transaction reference linking the line to its InventTransOrigin and inventory transactions | string | |||
| ToInventDimId | InventDimId | Destination dimension combination on transfer journal lines (from-side lives in InventDimId) | string | |||
| ToInventTransId | InventTransId | Transaction reference of the destination side of a transfer line | string | |||
| DefaultDimension | RecId | RecId of the line's financial-dimension value set in DimensionAttributeValueSet | int64 | |||
| ReleaseDate | Date a blocked line is released for posting; unset rows carry the 1900-01-01 sentinel | date | ||||
| Unit | Unit of measure the line quantity is entered in | string |
Field provenance: hand-curated.
Boilerplate SQL
Starting point for reading InventJournalTrans on Databricks — enums are decoded, 1900-01-01 dates are wrapped to NULL, and the DataAreaId anchor is in place. Set your Unity Catalog location, company, and filter values below; they’re substituted into the SQL and the copy button.
5 parameters not filled: <catalog>, <schema>, <company>, <DATE_FROM>, <DATE_TO>
-- ============================================================
-- Table : InventJournalTrans Inventory journal line — one row per item movement in a journal, with quantity, cost, counted figures, and the dimension combination it posts against
-- Purpose: Column-selected read of InventJournalTrans — auto-generated from field metadata
-- Grain : One row per company (dataareaid) + JournalId + LineNum
-- Notes : Auto-generated skeleton for Synapse Link / Fabric Link-landed F&O data (lowercase column names). Enums decoded inline where verified; datetimes stored in UTC; 1900-01-01 dates are sentinels mapped to NULL. System/audit columns omitted — see the quirks guide.
-- ============================================================
SELECT
i.journalid AS "The journal this line belongs to",
i.linenum AS "Line number within the journal",
i.transdate AS "Posting date of the line — the primary analysis date (a plain date, not a datetime)",
i.itemid AS "Item the line moves, adjusts, or counts",
i.inventdimid AS "Inventory-dimension combination the line posts against; join to InventDim to resolve site / warehouse / batch",
i.journaltype AS "Journal type copied down from the header, so lines can be filtered without a join", -- enum: decode i.journaltype via GlobalOptionsetMetadata join — see quirks guide #enums
i.qty AS "Quantity posted by the line, signed (negative for issues)",
i.costamount AS "Cost amount of the line in company currency",
i.costprice AS "Unit cost price used for the line",
i.priceunit AS "Number of units the cost price applies to (price per 1, 100, 1000…)",
i.costmarkup AS "Charge amount added on top of the cost price",
i.salesamount AS "Sales amount for the line, where the journal type carries one",
i.inventonhand AS "Expected on-hand quantity at counting time — compare with Counted for count variance",
i.counted AS "Quantity actually counted on a counting journal line",
i.countingreasoncode AS "Reason code recorded for the count difference",
i.voucher AS "Ledger voucher the line posted under",
i.inventtransid AS "Transaction reference linking the line to its InventTransOrigin and inventory transactions",
i.toinventdimid AS "Destination dimension combination on transfer journal lines (from-side lives in InventDimId)",
i.toinventtransid AS "Transaction reference of the destination side of a transfer line",
i.defaultdimension AS "RecId of the line's financial-dimension value set in DimensionAttributeValueSet",
CASE WHEN CAST(i.releasedate AS DATE) = DATE '1900-01-01' THEN NULL ELSE CAST(i.releasedate AS DATE) END AS "Date a blocked line is released for posting; unset rows carry the 1900-01-01 sentinel", -- 1900-01-01 sentinel → NULL
i.unit AS "Unit of measure the line quantity is entered in"
FROM <catalog>.<schema>.inventjournaltrans i
-- Dimension expansion: uncomment to resolve site / warehouse / location / batch
-- LEFT JOIN <catalog>.<schema>.inventdim id ON id.inventdimid = i.inventdimid AND id.dataareaid = i.dataareaid
-- Resolve DimensionAttributeValueSet (via DefaultDimension): uncomment to join on its RecId surrogate key
-- LEFT JOIN <catalog>.<schema>.dimensionattributevalueset dim ON dim.recid = i.defaultdimension
WHERE
i.dataareaid = '<company>'
-- AND i.transdate >= '<DATE_FROM>' -- yyyy-MM-dd (UTC)
-- AND i.transdate <= '<DATE_TO>' -- yyyy-MM-dd (UTC)
ORDER BY i.journalid;Verified September 2026
Relationships
Diagram of 1-hop neighbors — join details below. RecId and InventDim edges are highlighted; they’re the joins newcomers most often get wrong.
Join details
ON inventjournaltable.journalid = inventjournaltrans.journalid AND inventjournaltable.dataareaid = inventjournaltrans.dataareaidON inventjournaltrans.itemid = inventtable.itemid AND inventjournaltrans.dataareaid = inventtable.dataareaidON inventjournaltrans.inventdimid = inventdim.inventdimid AND inventjournaltrans.dataareaid = inventdim.dataareaidON inventjournaltrans.defaultdimension = dimensionattributevalueset.recid
Data Entities That Expose This Table
More Inventory tables
- InventLocationWarehouse master — one row per warehouse (inventory location) with its site and type
- InventSiteSite master — one row per operational site, the top of the inventory dimension hierarchy that warehouses roll up to
- InventSumAggregated on-hand quantities by item and inventory dimension — physical, available, and posted balances
- InventTransThe inventory transaction ledger — every physical and financial stock movement, with issue/receipt status, quantities, dates, and links back to its source document
- InventTransOriginThe origin record every inventory transaction points to — resolves an InventTrans row back to the sales line, purchase line, or journal that created it
- WMSLocationWarehouse location (bin) master — one row per storage location within a warehouse, with its aisle/rack/level coordinates, zone, profile, and capacity limits