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 descriptionType / EDT / enumMandatoryReferencesIn public entities
AccountingStatusStatus of the line: None, Completed, Draft, Canceled, Partly distributed, Finalized or Fully distributed.Enum
SourceDocumentLineAccountingStatus (enum)
NoNone
CreatedByThe user who created the record. System field.String (20)
CreatedBy
NoNone
CreatedDateTimeThe date and time when the record was created. System field.UtcDateTime
CreatedDateTime
NoNone
DraftVersionVersion number of the draft record.low confidenceInteger
RecVersion
NoNone
ExchangeRateDateAccounting date held on the line.Date
AccountingDate
NoNone
IsFinalYes or No flag. The metadata does not state what it marks as final.low confidenceEnum
NoYes (enum)
NoNone
ModifiedByThe user who last changed the record. System field.String (20)
ModifiedBy
NoNone
ModifiedDateTimeThe date and time when the record was last changed. System field.UtcDateTime
ModifiedDateTime
NoNone
ParentSourceDocumentLineRecord ID of the parent source document line.Int64
SourceDocumentLineRecId
NoNone
PartitionA system field for the data partition. In most environments every record has the same value. System field.Int64
Partition
NoNone
RecIdA unique number that the system gives to every record. Other tables often use it to point to this record. System field.Int64
RecId
NoNone
RecVersionA system number that changes each time the record is updated. It is used to detect conflicting updates. System field.Integer
RecVersion
NoNone
SourceDocumentHeaderRecord ID of the source document header history record that the line belongs to.Int64
SourceDocumentHeaderRecId
YesSourceDocumentHeaderHistory.RecIdNone
SourceImplementationRecIdRecord ID of the record that implements the source line.low confidenceInt64
RefRecId
NoNone
SourceRelationTypeTable ID of the table that the line refers to.Integer
RefTableId
YesNone
StateContainerStored state data of the line, kept as a container.Container
SourceDocumentLineStateContainer
NoNone
SysRowVersionA system row version number that is used for change tracking. System field.Int64
SysRowVersion
NoNone
TableIdA system number that identifies the table. System field.Integer
TableId
NoNone
TermQuantityQuantity on the line.Real
Qty
NoNone
TypeEnumNameName of the enum that holds the source document type.String
EnumName
YesNone
TypeEnumValueNumeric value of the source document type within that enum.Integer
SourceDocumentTypeEnumValue
YesNone

Indexes (1)

Relations (1)

Each relation joins SourceDocumentLineHistory to another table on the fields shown.

  • SourceDocumentHeaderHistory → SourceDocumentHeaderHistory

    Join on SourceDocumentHeader = SourceDocumentHeaderHistory.RecId

    Many 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.

Email sales@drdynamics.co.uk