Table
SourceDocumentLine
Source document line
Holds the lines of source documents. Each line points to a source document header and can point to a parent line. It records the accounting status, accounting date, quantity and a link to the underlying source record.
- Table name
SourceDocumentLine- 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 |
|---|---|---|---|---|
AccountingStatusThe accounting status of the line, such as draft, completed, partly distributed or cancelled. | EnumSourceDocumentLineAccountingStatus (enum) | No | SourceDocumentLineBiEntitySourceDocumentLineCDREntity | |
CreatedByThe user who created the record. System field. | String (20)CreatedBy | No | SourceDocumentLineBiEntity | |
CreatedDateTimeThe date and time when the record was created. System field. | UtcDateTimeCreatedDateTime | No | SourceDocumentLineBiEntitySourceDocumentLineCDREntitySourceDocumentLineCDREntity | |
DraftVersionPurpose not clear from the metadata.low confidence | IntegerRecVersion | No | SourceDocumentLineBiEntitySourceDocumentLineCDREntity | |
ExchangeRateDateThe accounting date of the line. | DateAccountingDate | No | SourceDocumentLineBiEntitySourceDocumentLineCDREntity | |
IsFinalPurpose not clear from the metadata.low confidence | EnumNoYes (enum) | No | SourceDocumentLineBiEntitySourceDocumentLineCDREntity | |
ModifiedByThe user who last changed the record. System field. | String (20)ModifiedBy | No | SourceDocumentLineBiEntity | |
ModifiedDateTimeThe date and time when the record was last changed. System field. | UtcDateTimeModifiedDateTime | No | SourceDocumentLineBiEntitySourceDocumentLineCDREntity | |
ParentSourceDocumentLineThe parent source document line, if this line sits under another one. | Int64SourceDocumentLineRecId | No | SourceDocumentLine.RecId | SourceDocumentLineBiEntitySourceDocumentLineCDREntity |
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 | SourceDocumentLineBiEntitySourceDocumentLineCDREntity | |
RecVersionA system number that changes each time the record is updated. It is used to detect conflicting updates. System field. | IntegerRecVersion | No | SourceDocumentLineBiEntity | |
SourceDocumentHeaderThe source document header that this line belongs to. | Int64SourceDocumentHeaderRecId | Yes | SourceDocumentHeader.RecId | SourceDocumentLineBiEntitySourceDocumentLineCDREntity |
SourceImplementationRecIdSystem record ID of the underlying source record. | Int64RefRecId | No | SourceDocumentLineBiEntitySourceDocumentLineCDREntity | |
SourceRelationTypeID of the table that holds the underlying source record. | IntegerRefTableId | Yes | SourceDocumentLineBiEntitySourceDocumentLineCDREntity | |
StateContainerStored state data for the line, kept in a container field. | ContainerSourceDocumentLineStateContainer | No | SourceDocumentLineBiEntitySourceDocumentLineCDREntity | |
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 | |
TermQuantityThe quantity on the line. | RealQty | No | SourceDocumentLineBiEntitySourceDocumentLineCDREntity | |
TypeEnumNameName of the enum that defines the source document type. | StringEnumName | Yes | SourceDocumentLineBiEntitySourceDocumentLineCDREntity | |
TypeEnumValueThe value of the source document type within its enum. | IntegerSourceDocumentTypeEnumValue | Yes | SourceDocumentLineBiEntitySourceDocumentLineCDREntity |
Indexes (6)
ParentSourceDocumentLineIdxParentSourceDocumentLine,SourceDocumentHeader,AccountingStatusNot unique.
SourceDocumentHeaderIdxSourceDocumentHeader,ParentSourceDocumentLineNot unique.
SourceDocumentHeaderTypeEnumIdxTypeEnumName,TypeEnumValue,SourceDocumentHeaderNot unique.
SourceDocumentHeaderRelationTypeIdxSourceDocumentHeader,SourceRelationTypeNot unique.
SourceRelationAccountingStatusIdxSourceRelationType,AccountingStatus,RecIdNot unique.
SourceImplementationIdxSourceRelationType,SourceImplementationRecIdNot unique.
Relations (3)
Each relation joins SourceDocumentLine to another table on the fields shown.
ParentSourceDocumentLine→SourceDocumentLineJoin on
ParentSourceDocumentLine = SourceDocumentLine.RecIdMany SourceDocumentLine records → zero or one SourceDocumentLine record
SourceDocumentHeader→SourceDocumentHeaderJoin on
SourceDocumentHeader = SourceDocumentHeader.RecIdMany SourceDocumentLine records → exactly one SourceDocumentHeader record
VendInvoiceInfoLine→VendInvoiceInfoLineJoin on
RecId = VendInvoiceInfoLine.SourceDocumentLineCardinality not set in the metadata.
Get this data out
Tables are not exposed directly. These public entities read from SourceDocumentLine; use one of them in Power BI, Power Platform or a data management project.
SourceDocumentLineBiEntity· 18 fields from this tableSourceDocumentLineCDREntity· 16 fields from this table
Need help with SourceDocumentLine in a report, an integration or a migration? Talk to Dr Dynamics.