Table
PurchLineOrigin
Links a purchase order line to the source document line it came from. It is keyed by the line's lot ID and company. It has no label in the metadata.
- Table name
PurchLineOrigin- Module
Procurement and sourcing- Table group
WorksheetLine- Table type
Regular- Data per company
No- Configuration key
LogisticsBasic- Primary index
None- Replacement key
FK_PurchLine_PurchLineOrigin- Key fields
PurchLineInventTransId, PurchLineDataAreaId- Model
Foundation
Fields (8)
| Field and description | Type / EDT / enum | Mandatory | References | In public entities |
|---|---|---|---|---|
PurchLineInventTransIdLot ID of the purchase order line. | String (20)TradeInventTransId | Yes | PurchLine.InventTransId | None |
PurchLineDataAreaIdCompany of the purchase order line. | StringDataAreaId | Yes | PurchLine.dataAreaId | None |
OriginSourceDocumentLineSystem record ID of the source document line that the purchase line originates from. | Int64SourceDocumentLineRecId | No | SourceDocumentLine.RecId | 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 | |
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 (2)
FK_PurchLine_PurchLineOriginReplacement keyPurchLineInventTransId,PurchLineDataAreaIdUnique, alternate key.
FK_SourceDocumentLine_PurchLineOriginNot unique.
Relations (2)
Each relation joins PurchLineOrigin to another table on the fields shown.
PurchLine→PurchLineJoin on
PurchLineInventTransId = PurchLine.InventTransId,PurchLineDataAreaId = PurchLine.dataAreaIdZero or one PurchLineOrigin record → exactly one PurchLine record
SourceDocumentLine→SourceDocumentLineJoin on
OriginSourceDocumentLine = SourceDocumentLine.RecIdMany PurchLineOrigin records → zero or one SourceDocumentLine record
Get this data out
No public entity reads from PurchLineOrigin. Its data is only reachable through the application, a custom entity or a database export.
Need help with PurchLineOrigin in a report, an integration or a migration? Talk to Dr Dynamics.