Table

GeneralJournalEntryHistory

GeneralJournalEntryHistory

Stores a history copy of general journal entry headers. Its key is made of partition, ledger, accounting date, subledger voucher and journal number. Each row holds dates, document number, fiscal period and year, voucher, posting layer and the related ledger posting journal. It also has an archive job ID.

Table name
GeneralJournalEntryHistory
Module
General ledger
Table group
TransactionHeader
Table type
Regular
Data per company
No
Configuration key
LedgerBasic
Primary index
LedgerAccDateVoucherJourNumIdx
Replacement key
None
Key fields
Partition, Ledger, AccountingDate, SubledgerVoucher, JournalNumber
Model
GeneralLedger

Fields (27)

Field and descriptionType / EDT / enumMandatoryReferencesIn public entities
PartitionA system field for the data partition. In most environments every record has the same value. System field.Int64
Partition
NoNone
LedgerPoints to the ledger that the entry belongs to.Int64
RefRecId
NoLedger.RecIdNone
AccountingDateAccounting date of the journal entry.Date
TransDate
YesNone
SubledgerVoucherVoucher number from the subledger.String (20)
Voucher
NoNone
JournalNumberNumber that identifies the journal.String (20)
GeneralJournalEntryJournalNumber
YesNone
AccountingEventSystem record ID of the accounting event linked to the entry.Int64
AccountingEventRecId
NoNone
AcknowledgementDateTransaction date of the entry.Date
AcknowledgementDate
NoNone
ArchiveServiceJobIdUnique ID (GUID) of the archive job. The name suggests it identifies the job that archived the row.low confidenceGuidNoNone
BudgetSourceLedgerEntryPostedSystem record ID of a posted ledger entry used as a budget source.low confidenceInt64
RefRecId
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
CreatedTransactionIdA system number for the database transaction that created the record. System field.Int64
CreatedTransactionId
NoTransactionLog.createdTransactionIdNone
DocumentDateDate shown on the source document.Date
DocumentDate
NoNone
DocumentNumberNumber of the source document.String (50)
DocumentNumLarge
NoNone
FiscalCalendarPeriodPoints to the fiscal calendar period of the entry.Int64
FiscalCalendarPeriodRecId
NoFiscalCalendarPeriod.RecIdNone
FiscalCalendarYearPoints to the fiscal calendar year of the entry.Int64
FiscalCalendarYearRecId
NoFiscalCalendarYear.RecIdNone
JournalCategoryTransaction type of the entry, for example Transfer, Sales order or Project.Enum
LedgerTransType (enum)
YesNone
LedgerEntryJournalPoints to the matching ledger entry journal history record.Int64
RefRecId
NoLedgerEntryJournalHistory.RecIdNone
LedgerPostingJournalID of the posting journal related to the entry.String (20)
LedgerPostingJournalId
NoLedgerPostingJournal.LedgerPostingJournalIdNone
LedgerPostingJournalDataAreaIdCompany (legal entity) of the ledger posting journal.String
CompanyId
NoNone
PostingLayerPosting layer of the entry, such as Current, Operations or Tax, or a custom layer.Enum
CurrentOperationsTax (enum)
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
SubledgerJournalEntryIdentifier of the related subledger journal entry.Int64
SubledgerJournalEntryIdentifier
NoNone
SubledgerVoucherDataAreaIdCompany (legal entity) of the subledger voucher.String
CompanyId
NoNone
TableIdA system number that identifies the table. System field.Integer
TableId
NoNone
TransferIdIdentifier of the subledger journal transfer.Int64
SubledgerJournalTransferId
NoNone

Indexes (1)

Relations (8)

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

  • FiscalCalendarPeriod → FiscalCalendarPeriod

    Join on FiscalCalendarPeriod = FiscalCalendarPeriod.RecId

    Many GeneralJournalEntryHistory records → zero or one FiscalCalendarPeriod record

  • FiscalCalendarYear → FiscalCalendarYear

    Join on FiscalCalendarYear = FiscalCalendarYear.RecId

    Many GeneralJournalEntryHistory records → zero or one FiscalCalendarYear record

  • Ledger → Ledger

    Join on Ledger = Ledger.RecId

    Many GeneralJournalEntryHistory records → zero or one Ledger record

  • TransactionLog → TransactionLog

    Join on createdTransactionId = TransactionLog.createdTransactionId

    Many GeneralJournalEntryHistory records → zero or one TransactionLog record

  • LedgerEntryJournal → LedgerEntryJournalHistory

    Join on LedgerEntryJournal = LedgerEntryJournalHistory.RecId

    Many GeneralJournalEntryHistory records → zero or one LedgerEntryJournalHistory record

  • LedgerPostingJournal → LedgerPostingJournal

    Join on LedgerPostingJournal = LedgerPostingJournal.LedgerPostingJournalId

    Many GeneralJournalEntryHistory records → zero or one LedgerPostingJournal record

  • DataArea → DataArea

    Join on LedgerPostingJournalDataAreaId = DataArea.id, DataArea.isVirtual = null

    Many GeneralJournalEntryHistory records → zero or one DataArea record

  • SubledgerVoucherDataAreaId → DataArea

    Join on SubledgerVoucherDataAreaId = DataArea.id, DataArea.isVirtual = null

    Many GeneralJournalEntryHistory records → zero or one DataArea record

Get this data out

No public entity reads from GeneralJournalEntryHistory. Its data is only reachable through the application, a custom entity or a database export.

Need help with GeneralJournalEntryHistory in a report, an integration or a migration? Talk to Dr Dynamics.

Email sales@drdynamics.co.uk