Table
GlobalJournalDocument
Global journal document
Document within a global journal, keyed by journal, company, document type and document number. It holds the voucher, accounting date, currency, exchange rates, posting and approval details. It links to GlobalJournal, AccountingEvent and the document type settings.
- Table name
GlobalJournalDocument- Module
Cross-module and platform- Table group
WorksheetHeader- Table type
Regular- Data per company
No- Configuration key
LedgerBasic- Primary index
GlobalJournalDocumentIdx- Replacement key
None- Key fields
GlobalJournal, Company, DocumentType, DocumentNumber- Model
GlobalJournalCore
Fields (37)
| Field and description | Type / EDT / enum | Mandatory | References | In public entities |
|---|---|---|---|---|
GlobalJournalPoints to the parent journal in GlobalJournal. | Int64GlobalJournalRecId | Yes | GlobalJournal.RecId | None |
CompanyCompany (legal entity) of the document. Relates to DataArea. | StringSelectableDataArea | Yes | None | |
DocumentTypeType of document: ledger adjustment, free text invoice or order invoice. | EnumDocumentType (enum) | Yes | None | |
DocumentNumberNumber of the document, and part of the key. | String (50)DocumentNumLarge | Yes | None | |
AccountingDateAccounting date of the document. | DateTransDate | No | None | |
AccountingEventPoints to the accounting event in AccountingEvent. | Int64AccountingEventRecId | No | AccountingEvent.RecId | None |
ApprovalStatusApproval status: none, requested, approved or rejected. | EnumDocumentLifecycleApprovalStatus (enum) | No | None | |
ApprovedByID of the user who approved the document. | StringUserId | 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 | |
CreatedTransactionIdA system number for the database transaction that created the record. System field. | Int64CreatedTransactionId | No | None | |
CurrencyCodeCurrency of the document. Points to Currency. | String (3)CurrencyCode | Yes | Currency.CurrencyCode | None |
DocumentDateDate of the document. | DateDocumentDate | Yes | None | |
DocumentNumberSeriesNumber sequence used for the document number. Points to NumberSequenceTable. | Int64RefRecId | No | NumberSequenceTable.RecId | None |
DocumentTypeSettingPoints to the settings in GlobalJournalDocumentTypeSettings. | Int64GlobalJournalDocumentTypeSettingsRecId | No | GlobalJournalDocumentTypeSettings.RecId | None |
ExchangeRateExchange rate of the document. | RealExchRate | No | None | |
ExchangeRateTriangulationSecondary exchange rate, used for triangulation. | RealExchrateSecondary | No | None | |
IntercompanyYes/no flag that shows the document is intercompany. | EnumNoYes (enum) | No | None | |
LedgerSystem record ID of the ledger. | Int64LedgerRecId | Yes | 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 | |
PostedYes/no flag that shows whether the document is posted. | EnumNoYes (enum) | No | None | |
PostedDateTimeDate and time the document was posted. | UtcDateTimeGlobalJournalPostedDateTime | No | None | |
PostingLayerPosting layer, such as current, operations or tax. | EnumCurrentOperationsTax (enum) | 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 | |
ReleaseDateDate and time of release. | UtcDateTimePostReleaseDate | No | None | |
ReleaseDateCommentComment about the release date. | String (60)ReleaseDateComment | No | None | |
ReportingExchangeRateExchange rate for the reporting currency. | RealExchRate | No | None | |
ReportingExchangeRateTriangulationSecondary exchange rate for the reporting currency, used for triangulation. | RealExchrateSecondary | No | None | |
ReverseDateDate on which the entry is reversed. | DateTransDate | No | None | |
ReverseEntryYes/no flag that shows the entry is a reversing entry. | EnumNoYes (enum) | 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 | |
VoucherVoucher number of the document. | String (20)Voucher | No | None | |
VoucherSeriesNumber sequence used for the voucher. Points to NumberSequenceTable. | Int64RefRecId | No | NumberSequenceTable.RecId | None |
Indexes (6)
GlobalJournalDocumentIdxPrimary indexGlobalJournal,Company,DocumentType,DocumentNumberUnique, alternate key.
AccountingEventIdxAccountingEvent,AccountingDate,Voucher,Ledger,CompanyNot unique.
ApprovalStatusIdxNot unique.
ReleaseDateIdxNot unique.
JournalStatusIdxGlobalJournal,DocumentTypeSetting,ApprovalStatus,PostedNot unique.
ImportIdxGlobalJournal,Company,DocumentNumber,DocumentTypeNot unique.
Relations (7)
Each relation joins GlobalJournalDocument to another table on the fields shown.
GlobalJournal→GlobalJournalJoin on
GlobalJournal = GlobalJournal.RecIdMany GlobalJournalDocument records → zero or one GlobalJournal record
AccountingEvent→AccountingEventJoin on
AccountingEvent = AccountingEvent.RecIdMany GlobalJournalDocument records → zero or one AccountingEvent record
DataArea→DataAreaJoin on
Company = DataArea.idMany GlobalJournalDocument records → zero or one DataArea record
Currency→CurrencyJoin on
CurrencyCode = Currency.CurrencyCodeMany GlobalJournalDocument records → zero or one Currency record
GlobalJournalDocumentTypeSettings→GlobalJournalDocumentTypeSettingsJoin on
DocumentTypeSetting = GlobalJournalDocumentTypeSettings.RecIdMany GlobalJournalDocument records → exactly one GlobalJournalDocumentTypeSettings record
VoucherSeries→NumberSequenceTableJoin on
VoucherSeries = NumberSequenceTable.RecIdMany GlobalJournalDocument records → zero or one NumberSequenceTable record
DocumentNumberSeries→NumberSequenceTableJoin on
DocumentNumberSeries = NumberSequenceTable.RecIdMany GlobalJournalDocument records → zero or one NumberSequenceTable record
Get this data out
No public entity reads from GlobalJournalDocument. Its data is only reachable through the application, a custom entity or a database export.
Need help with GlobalJournalDocument in a report, an integration or a migration? Talk to Dr Dynamics.