Table
WHSWarehouseOrderSourceDocument
Warehouse order source document
Links a warehouse order to the document it came from, such as a purchase order, transfer order, sales order or production order. It holds the source order number and the source type. It also links to the warehouse order header and the source document details. The table has no defined key in the metadata.
- Table name
WHSWarehouseOrderSourceDocument- Module
Inventory- Table group
Miscellaneous- Table type
Regular- Data per company
Yes- Configuration key
WHSandTMS- Primary index
None- Replacement key
None- Key fields
None- Model
WarehouseExecutionWorkloadBackoffice
Fields (13)
| Field and description | Type / EDT / enum | Mandatory | References | In public entities |
|---|---|---|---|---|
CreatedByThe user who created the record. System field. | String (20)CreatedBy | No | 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 | |
ModifiedByThe user who last changed the record. System field. | String (20)ModifiedBy | No | None | |
ModifiedDateTimeThe date and time when the record was last changed. System field. | UtcDateTimeModifiedDateTime | No | None | |
PartitionA system field for the data partition. In most environments every record has the same value. System field. | Int64Partition | No | 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 | |
SourceDocumentDetailsThe source document details record linked to this entry. | Int64WHSSourceDocumentDetailsRecId | No | WHSSourceDocumentDetails.RecId | None |
SourceDocumentOrderNumberThe number of the source order, such as a transfer, purchase or sales order. | String (20)WHSOrderNum | Yes | InventTransferTable.TransferIdPurchTable.PurchIdSalesTable.SalesId | None |
SourceTypeThe kind of source document: purchase order, transfer order, sales order, production order or transfer order receipt. | EnumWHSWarehouseOrderSourceDocumentType (enum) | Yes | None | |
TableIdA system number that identifies the table. System field. | IntegerTableId | No | None | |
WarehouseOrderNumberThe warehouse order that this source document is linked to. | String (20)WHSWarehouseOrderNumber | Yes | WHSWarehouseOrderHeader.OrderNumber | None |
Indexes (2)
WarehouseOrderSourceDocumentIdxSourceDocumentOrderNumber,SourceType,WarehouseOrderNumberUnique, alternate key.
WarehouseOrderNumberSourceTypeIdxWarehouseOrderNumber,SourceTypeNot unique.
Relations (5)
Each relation joins WHSWarehouseOrderSourceDocument to another table on the fields shown.
WHSWarehouseOrderHeader→WHSWarehouseOrderHeaderJoin on
WarehouseOrderNumber = WHSWarehouseOrderHeader.OrderNumberMany WHSWarehouseOrderSourceDocument records → exactly one WHSWarehouseOrderHeader record
PurchTable→PurchTableJoin on
SourceType = WHSWarehouseOrderSourceDocumentType::PurchaseOrder,SourceDocumentOrderNumber = PurchTable.PurchIdMany WHSWarehouseOrderSourceDocument records → zero or one PurchTable record
SalesTable→SalesTableJoin on
SourceType = WHSWarehouseOrderSourceDocumentType::SalesOrder,SourceDocumentOrderNumber = SalesTable.SalesIdMany WHSWarehouseOrderSourceDocument records → zero or one SalesTable record
InventTransferTable→InventTransferTableJoin on
SourceType = WHSWarehouseOrderSourceDocumentType::TransferOrder,SourceDocumentOrderNumber = InventTransferTable.TransferIdMany WHSWarehouseOrderSourceDocument records → zero or one InventTransferTable record
SourceDocumentDetails→WHSSourceDocumentDetailsJoin on
SourceDocumentDetails = WHSSourceDocumentDetails.RecIdOne or more WHSWarehouseOrderSourceDocument records → zero or one WHSSourceDocumentDetails record
Get this data out
No public entity reads from WHSWarehouseOrderSourceDocument. Its data is only reachable through the application, a custom entity or a database export.
Need help with WHSWarehouseOrderSourceDocument in a report, an integration or a migration? Talk to Dr Dynamics.