Table
SourceDocumentLineHistory
Source document line history
Holds history records for source document lines. Each record has a line status, an accounting date, a quantity and a saved state container. It points to the source document header history.
- Table name
SourceDocumentLineHistory- Module
Accounting foundation- Table group
TransactionLine- Table type
Regular- Data per company
No- Configuration key
LedgerBasic- Primary index
None- Replacement key
None- Key fields
None- Model
SourceDocumentation
Fields (21)
| Field and description | Type / EDT / enum | Mandatory | References | In public entities |
|---|---|---|---|---|
AccountingStatusStatus of the line: None, Completed, Draft, Canceled, Partly distributed, Finalized or Fully distributed. | EnumSourceDocumentLineAccountingStatus (enum) | No | None | |
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 | |
DraftVersionVersion number of the draft record.low confidence | IntegerRecVersion | No | None | |
ExchangeRateDateAccounting date held on the line. | DateAccountingDate | No | None | |
IsFinalYes or No flag. The metadata does not state what it marks as final.low confidence | EnumNoYes (enum) | 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 | |
ParentSourceDocumentLineRecord ID of the parent source document line. | Int64SourceDocumentLineRecId | 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 | |
SourceDocumentHeaderRecord ID of the source document header history record that the line belongs to. | Int64SourceDocumentHeaderRecId | Yes | SourceDocumentHeaderHistory.RecId | None |
SourceImplementationRecIdRecord ID of the record that implements the source line.low confidence | Int64RefRecId | No | None | |
SourceRelationTypeTable ID of the table that the line refers to. | IntegerRefTableId | Yes | None | |
StateContainerStored state data of the line, kept as a container. | ContainerSourceDocumentLineStateContainer | 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 | |
TermQuantityQuantity on the line. | RealQty | No | None | |
TypeEnumNameName of the enum that holds the source document type. | StringEnumName | Yes | None | |
TypeEnumValueNumeric value of the source document type within that enum. | IntegerSourceDocumentTypeEnumValue | Yes | None |
Indexes (1)
SourceDocumentHeaderIdxNot unique.
Relations (1)
Each relation joins SourceDocumentLineHistory to another table on the fields shown.
SourceDocumentHeaderHistory→SourceDocumentHeaderHistoryJoin on
SourceDocumentHeader = SourceDocumentHeaderHistory.RecIdMany SourceDocumentLineHistory records → exactly one SourceDocumentHeaderHistory record
Get this data out
No public entity reads from SourceDocumentLineHistory. Its data is only reachable through the application, a custom entity or a database export.
Need help with SourceDocumentLineHistory in a report, an integration or a migration? Talk to Dr Dynamics.