Table
InventReportDimHistory
Dimension history for documents
Keeps a history of inventory dimensions and quantities for documents. Each row ties a document number and lot ID to a log type and an inventory dimension. The document types include sales confirmations, packing slips, invoices, purchase receipts and production journals.
- Table name
InventReportDimHistory- Module
Inventory- Table group
Transaction- Table type
Regular- Data per company
Yes- Configuration key
LogisticsBasic- Primary index
TypeTransIdRefIdx- Replacement key
None- Key fields
TransRefId, InventTransId, TransactionLogType, InventDimId- Model
Foundation
Fields (12)
| Field and description | Type / EDT / enum | Mandatory | References | In public entities |
|---|---|---|---|---|
TransRefIdNumber of the document that the history row belongs to. | String (20)InventTransRefId | Yes | None | |
InventTransIdLot ID of the document line that the history row belongs to. | String (20)InventTransId | Yes | None | |
TransactionLogTypeType of document the history row was recorded for, such as sales invoice or purchase order. | EnumInventReportDimHistoryLogType (enum) | No | None | |
InventDimIdInventory dimension number. Points to the inventory dimensions table. | String (20)InventDimId | Yes | InventDim.inventDimId | None |
CreatedDateTimeThe date and time when the record was created. System field. | UtcDateTimeCreatedDateTime | No | None | |
DataAreaIdThe company (legal entity) that the record belongs to. System field. | String (4)DataAreaId | No | None | |
PartitionA system field for the data partition. In most environments every record has the same value. System field. | Int64Partition | No | None | |
QtyQuantity recorded for this dimension on the document. | RealInventQty | Yes | None | |
RecIdA unique number that the system gives to every record. Other tables often use it to point to this record. System field. | Int64RecId | No | None | |
RecVersionA system number that changes each time the record is updated. It is used to detect conflicting updates. System field. | IntegerRecVersion | No | None | |
SysRowVersionA system row version number that is used for change tracking. System field. | Int64SysRowVersion | No | None | |
TableIdA system number that identifies the table. System field. | IntegerTableId | No | None |
Indexes (1)
TypeTransIdRefIdxPrimary indexTransRefId,InventTransId,TransactionLogType,InventDimIdUnique, alternate key.
Relations (11)
Each relation joins InventReportDimHistory to another table on the fields shown.
CustConfirmTrans→CustConfirmTransJoin on
TransactionLogType = InventReportDimHistoryLogType::SalesConfirm,InventTransId = CustConfirmTrans.InventTransId,TransRefId = CustConfirmTrans.ConfirmIdMany InventReportDimHistory records → zero or one CustConfirmTrans record
CustInvoiceTrans→CustInvoiceTransJoin on
TransactionLogType = InventReportDimHistoryLogType::SalesInvoice,InventTransId = CustInvoiceTrans.InventTransId,TransRefId = CustInvoiceTrans.InvoiceIdMany InventReportDimHistory records → zero or one CustInvoiceTrans record
CustPackingSlipTrans→CustPackingSlipTransJoin on
TransactionLogType = InventReportDimHistoryLogType::SalesPackingSlip,InventTransId = CustPackingSlipTrans.InventTransId,TransRefId = CustPackingSlipTrans.PackingSlipIdMany InventReportDimHistory records → zero or one CustPackingSlipTrans record
CustQuotationConfirmTrans→CustQuotationConfirmTransJoin on
TransactionLogType = InventReportDimHistoryLogType::SalesQuotation,InventTransId = CustQuotationConfirmTrans.InventTransId,TransRefId = CustQuotationConfirmTrans.QuotationConfirmIdMany InventReportDimHistory records → zero or one CustQuotationConfirmTrans record
CustQuotationTrans→CustQuotationTransJoin on
TransactionLogType = InventReportDimHistoryLogType::SalesQuotation,InventTransId = CustQuotationTrans.InventTransId,TransRefId = CustQuotationTrans.QuotationIdMany InventReportDimHistory records → zero or one CustQuotationTrans record
InventDim→InventDimJoin on
InventDimId = InventDim.inventDimIdMany InventReportDimHistory records → exactly one InventDim record
ProdJournalBOM→ProdJournalBOMJoin on
TransactionLogType = InventReportDimHistoryLogType::ProdJournalBOM,InventTransId = ProdJournalBOM.InventTransId,TransRefId = ProdJournalBOM.InventTransChildRefIdMany InventReportDimHistory records → zero or one ProdJournalBOM record
ProdJournalProd→ProdJournalProdJoin on
TransactionLogType = InventReportDimHistoryLogType::ProdJournalProd,InventTransId = ProdJournalProd.InventTransId,TransRefId = ProdJournalProd.InventTransChildRefIdMany InventReportDimHistory records → zero or one ProdJournalProd record
PurchLineHistory→PurchLineHistoryJoin on
TransactionLogType = InventReportDimHistoryLogType::PurchPurchaseOrder,InventTransId = PurchLineHistory.InventTransIdMany InventReportDimHistory records → zero or one PurchLineHistory record
VendInvoiceTrans→VendInvoiceTransJoin on
TransactionLogType = InventReportDimHistoryLogType::PurchInvoice,InventTransId = VendInvoiceTrans.InventTransId,TransRefId = VendInvoiceTrans.InternalInvoiceIdMany InventReportDimHistory records → zero or one VendInvoiceTrans record
VendReceiptsListTrans→VendReceiptsListTransJoin on
TransactionLogType = InventReportDimHistoryLogType::PurchReceiptList,InventTransId = VendReceiptsListTrans.InventTransId,TransRefId = VendReceiptsListTrans.ReceiptsListIdMany InventReportDimHistory records → zero or one VendReceiptsListTrans record
Get this data out
No public entity reads from InventReportDimHistory. Its data is only reachable through the application, a custom entity or a database export.
Need help with InventReportDimHistory in a report, an integration or a migration? Talk to Dr Dynamics.