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 description | Type / EDT / enum | Mandatory | References | In public entities |
|---|---|---|---|---|
PartitionA system field for the data partition. In most environments every record has the same value. System field. | Int64Partition | No | None | |
LedgerPoints to the ledger that the entry belongs to. | Int64RefRecId | No | Ledger.RecId | None |
AccountingDateAccounting date of the journal entry. | DateTransDate | Yes | None | |
SubledgerVoucherVoucher number from the subledger. | String (20)Voucher | No | None | |
JournalNumberNumber that identifies the journal. | String (20)GeneralJournalEntryJournalNumber | Yes | None | |
AccountingEventSystem record ID of the accounting event linked to the entry. | Int64AccountingEventRecId | No | None | |
AcknowledgementDateTransaction date of the entry. | DateAcknowledgementDate | No | None | |
ArchiveServiceJobIdUnique ID (GUID) of the archive job. The name suggests it identifies the job that archived the row.low confidence | Guid | No | None | |
BudgetSourceLedgerEntryPostedSystem record ID of a posted ledger entry used as a budget source.low confidence | Int64RefRecId | 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 | TransactionLog.createdTransactionId | None |
DocumentDateDate shown on the source document. | DateDocumentDate | No | None | |
DocumentNumberNumber of the source document. | String (50)DocumentNumLarge | No | None | |
FiscalCalendarPeriodPoints to the fiscal calendar period of the entry. | Int64FiscalCalendarPeriodRecId | No | FiscalCalendarPeriod.RecId | None |
FiscalCalendarYearPoints to the fiscal calendar year of the entry. | Int64FiscalCalendarYearRecId | No | FiscalCalendarYear.RecId | None |
JournalCategoryTransaction type of the entry, for example Transfer, Sales order or Project. | EnumLedgerTransType (enum) | Yes | None | |
LedgerEntryJournalPoints to the matching ledger entry journal history record. | Int64RefRecId | No | LedgerEntryJournalHistory.RecId | None |
LedgerPostingJournalID of the posting journal related to the entry. | String (20)LedgerPostingJournalId | No | LedgerPostingJournal.LedgerPostingJournalId | None |
LedgerPostingJournalDataAreaIdCompany (legal entity) of the ledger posting journal. | StringCompanyId | No | None | |
PostingLayerPosting layer of the entry, such as Current, Operations or Tax, or a custom layer. | 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 | |
SubledgerJournalEntryIdentifier of the related subledger journal entry. | Int64SubledgerJournalEntryIdentifier | No | None | |
SubledgerVoucherDataAreaIdCompany (legal entity) of the subledger voucher. | StringCompanyId | No | None | |
TableIdA system number that identifies the table. System field. | IntegerTableId | No | None | |
TransferIdIdentifier of the subledger journal transfer. | Int64SubledgerJournalTransferId | No | None |
Indexes (1)
LedgerAccDateVoucherJourNumIdxPrimary indexPartition,Ledger,AccountingDate,SubledgerVoucher,JournalNumberUnique.
Relations (8)
Each relation joins GeneralJournalEntryHistory to another table on the fields shown.
FiscalCalendarPeriod→FiscalCalendarPeriodJoin on
FiscalCalendarPeriod = FiscalCalendarPeriod.RecIdMany GeneralJournalEntryHistory records → zero or one FiscalCalendarPeriod record
FiscalCalendarYear→FiscalCalendarYearJoin on
FiscalCalendarYear = FiscalCalendarYear.RecIdMany GeneralJournalEntryHistory records → zero or one FiscalCalendarYear record
Ledger→LedgerJoin on
Ledger = Ledger.RecIdMany GeneralJournalEntryHistory records → zero or one Ledger record
TransactionLog→TransactionLogJoin on
createdTransactionId = TransactionLog.createdTransactionIdMany GeneralJournalEntryHistory records → zero or one TransactionLog record
LedgerEntryJournal→LedgerEntryJournalHistoryJoin on
LedgerEntryJournal = LedgerEntryJournalHistory.RecIdMany GeneralJournalEntryHistory records → zero or one LedgerEntryJournalHistory record
LedgerPostingJournal→LedgerPostingJournalJoin on
LedgerPostingJournal = LedgerPostingJournal.LedgerPostingJournalIdMany GeneralJournalEntryHistory records → zero or one LedgerPostingJournal record
DataArea→DataAreaJoin on
LedgerPostingJournalDataAreaId = DataArea.id,DataArea.isVirtual = nullMany GeneralJournalEntryHistory records → zero or one DataArea record
SubledgerVoucherDataAreaId→DataAreaJoin on
SubledgerVoucherDataAreaId = DataArea.id,DataArea.isVirtual = nullMany 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.