Table
GeneralJournalEntry
General journal entry
Holds the header of a general journal entry, with dates, document number, voucher and posting layer. It links to the ledger, the fiscal calendar year and period, the ledger entry and posting journals, and the budget source. The account lines for each entry are stored in a separate table.
- Table name
GeneralJournalEntry- Module
General ledger- Table group
TransactionHeader- Table type
Regular- Data per company
No- Configuration key
LedgerBasic- Primary index
None- Replacement key
None- Key fields
None- Model
GeneralLedger
Fields (27)
| Field and description | Type / EDT / enum | Mandatory | References | In public entities |
|---|---|---|---|---|
AccountingDateAccounting date of the entry. | DateTransDate | Yes | GeneralJournalEntryBiEntityGeneralJournalEntryCDREntityLedgerTransSettlementV2Entityand 4 more | |
AccountingEventRecord ID of the accounting event linked to the entry. | Int64AccountingEventRecId | No | GeneralJournalEntryBiEntity | |
AcknowledgementDateTransaction date of the entry. | DateAcknowledgementDate | No | GeneralJournalEntryBiEntityGeneralJournalEntryCDREntity | |
BudgetSourceLedgerEntryPostedPoints to the budget source record linked to the posted ledger entry. | Int64RefRecId | No | BudgetSource.RecId | GeneralJournalEntryBiEntityGeneralJournalEntryCDREntity |
CreatedByThe user who created the record. System field. | String (20)CreatedBy | No | GeneralJournalEntryBiEntityGeneralJournalEntryCDREntity | |
CreatedDateTimeThe date and time when the record was created. System field. | UtcDateTimeCreatedDateTime | No | GeneralJournalEntryBiEntityGeneralJournalEntryCDREntity | |
CreatedTransactionIdA system number for the database transaction that created the record. System field. | Int64CreatedTransactionId | No | TransactionLog.createdTransactionId | GeneralJournalEntryBiEntityGeneralJournalEntryCDREntity |
DocumentDateDate shown on the source document. | DateDocumentDate | No | GeneralJournalEntryBiEntityGeneralJournalEntryCDREntityLedgerTransSettlementV2Entityand 2 more | |
DocumentNumberNumber of the source document, up to 50 characters. | String (50)DocumentNumLarge | No | GeneralJournalEntryBiEntityGeneralJournalEntryCDREntityLedgerTransSettlementV2Entityand 2 more | |
FiscalCalendarPeriodPoints to the fiscal calendar period of the entry. | Int64FiscalCalendarPeriodRecId | No | FiscalCalendarPeriod.RecId | GeneralJournalEntryBiEntityGeneralJournalEntryCDREntity |
FiscalCalendarYearPoints to the fiscal calendar year of the entry. | Int64FiscalCalendarYearRecId | No | FiscalCalendarYear.RecId | GeneralJournalEntryBiEntityGeneralJournalEntryCDREntity |
JournalCategoryTransaction type of the journal entry, such as sales order, purchase order or inventory. | EnumLedgerTransType (enum) | Yes | GeneralJournalEntryBiEntityGeneralJournalEntryCDREntity | |
JournalNumberNumber that identifies the journal entry. | String (20)GeneralJournalEntryJournalNumber | Yes | GeneralJournalEntryBiEntityGeneralJournalEntryCDREntityLedgerTransSettlementV2Entityand 2 more | |
LedgerPoints to the ledger that the entry belongs to. | Int64RefRecId | No | Ledger.RecId | GeneralJournalEntryBiEntityGeneralJournalEntryCDREntityLedgerTransSettlementV2Entityand 2 more |
LedgerEntryJournalPoints to a ledger entry journal record. | Int64RefRecId | No | LedgerEntryJournal.RecId | GeneralJournalEntryBiEntityGeneralJournalEntryCDREntity |
LedgerPostingJournalID of the posting journal linked to the entry. | String (20)LedgerPostingJournalId | No | LedgerPostingJournal.LedgerPostingJournalId | GeneralJournalEntryBiEntityGeneralJournalEntryCDREntity |
LedgerPostingJournalDataAreaIdCompany that the posting journal belongs to. | StringCompanyId | No | GeneralJournalEntryBiEntityGeneralJournalEntryCDREntity | |
PartitionA system field for the data partition. In most environments every record has the same value. System field. | Int64Partition | No | None | |
PostingLayerPosting layer of the entry, such as current, operations or tax. | EnumCurrentOperationsTax (enum) | No | GeneralJournalEntryBiEntityGeneralJournalEntryCDREntityLedgerTransSettlementV2Entityand 2 more | |
RecIdA unique number that the system gives to every record. Other tables often use it to point to this record. System field. | Int64RecId | No | GeneralJournalEntryBiEntityGeneralJournalEntryCDREntity | |
RecVersionA system number that changes each time the record is updated. It is used to detect conflicting updates. System field. | IntegerRecVersion | No | GeneralJournalEntryBiEntityGeneralJournalEntryCDREntity | |
SubledgerJournalEntryIdentifier of the related subledger journal entry. | Int64SubledgerJournalEntryIdentifier | No | GeneralJournalEntryBiEntityGeneralJournalEntryCDREntity | |
SubledgerVoucherVoucher number from the subledger. | String (20)Voucher | No | GeneralJournalEntryBiEntityGeneralJournalEntryCDREntityInflationAdjJournalEntityand 4 more | |
SubledgerVoucherDataAreaIdCompany that the subledger voucher belongs to. | StringCompanyId | No | GeneralJournalEntryBiEntityGeneralJournalEntryCDREntity | |
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 | |
TransferIdIdentifier of the subledger journal transfer. | Int64SubledgerJournalTransferId | No | GeneralJournalEntryBiEntityGeneralJournalEntryCDREntity |
Indexes (15)
JournalNumberLedgerIdxJournalNumber,FiscalCalendarYear,LedgerUnique.
TransferIdxNot unique.
LedgerAccountingDateIdxLedger,AccountingDate,JournalNumber,FiscalCalendarPeriod,PostingLayer,FiscalCalendarYearNot unique.
PostingLayerLedger,PostingLayer,AccountingDate,JournalNumber,SubledgerVoucherNot unique.
CreatedTransactionIdxcreatedTransactionId,Ledger,AccountingDate,SubledgerVoucherNot unique.
ColumnStoreIdxLedger,Partition,RecId,AccountingDate,PostingLayerNot unique.
LedgerSubledgerVoucherIdxLedger,AccountingDate,JournalNumber,SubledgerVoucherNot unique.
SubledgerToGeneralLedgerTransferIdxTransferId,Ledger,JournalNumber,PostingLayerNot unique.
FiscalPeriodLedgerIdxFiscalCalendarPeriod,Ledger,AccountingDateNot unique.
AccountingEventIdxAccountingEvent,Ledger,SubledgerVoucher,Partition,AccountingDate,SubledgerVoucherDataAreaId,RecIdNot unique.
BudgetSourceIdxNot unique.
LedgerEntryJournalIdxLedgerEntryJournal,BudgetSourceLedgerEntryPostedNot unique.
LedgerVoucherIdxNot unique.
LedgerAccountDateFiscPeriodIdxLedger,AccountingDate,FiscalCalendarPeriodNot unique.
SubledgerVoucherAccountingDateIdxSubledgerVoucher,SubledgerVoucherDataAreaId,AccountingDateNot unique.
Relations (11)
Each relation joins GeneralJournalEntry to another table on the fields shown.
FiscalCalendarPeriod→FiscalCalendarPeriodJoin on
FiscalCalendarPeriod = FiscalCalendarPeriod.RecIdMany GeneralJournalEntry records → zero or one FiscalCalendarPeriod record
FiscalCalendarYear→FiscalCalendarYearJoin on
FiscalCalendarYear = FiscalCalendarYear.RecIdMany GeneralJournalEntry records → zero or one FiscalCalendarYear record
Ledger→LedgerJoin on
Ledger = Ledger.RecIdMany GeneralJournalEntry records → zero or one Ledger record
TransactionLog→TransactionLogJoin on
createdTransactionId = TransactionLog.createdTransactionIdMany GeneralJournalEntry records → zero or one TransactionLog record
LedgerEntryJournal→LedgerEntryJournalJoin on
LedgerEntryJournal = LedgerEntryJournal.RecIdMany GeneralJournalEntry records → zero or one LedgerEntryJournal record
LedgerPostingJournal→LedgerPostingJournalJoin on
LedgerPostingJournal = LedgerPostingJournal.LedgerPostingJournalIdMany GeneralJournalEntry records → zero or one LedgerPostingJournal record
DataArea→DataAreaJoin on
LedgerPostingJournalDataAreaId = DataArea.id,DataArea.isVirtual = nullMany GeneralJournalEntry records → zero or one DataArea record
SubledgerVoucherDataAreaId→DataAreaJoin on
SubledgerVoucherDataAreaId = DataArea.id,DataArea.isVirtual = nullMany GeneralJournalEntry records → zero or one DataArea record
CustExchRateAdjustment→CustExchRateAdjustmentJoin on
createdTransactionId = CustExchRateAdjustment.createdTransactionIdMany GeneralJournalEntry records → zero or one CustExchRateAdjustment record
BudgetSource→BudgetSourceJoin on
BudgetSourceLedgerEntryPosted = BudgetSource.RecIdMany GeneralJournalEntry records → zero or one BudgetSource record
VendExchRateAdjustment→VendExchRateAdjustmentJoin on
createdTransactionId = VendExchRateAdjustment.createdTransactionIdMany GeneralJournalEntry records → zero or one VendExchRateAdjustment record
Get this data out
Tables are not exposed directly. These public entities read from GeneralJournalEntry; use one of them in Power BI, Power Platform or a data management project.
GeneralJournalEntryBiEntity· 24 fields from this tableGeneralJournalEntryCDREntity· 23 fields from this tableInflationAdjJournalEntity· 2 fields from this tableLedgerTransSettlementV2Entity· 8 fields from this tableLedgerTransSettlementEnhancedEntity· 7 fields from this tableLedgerTransSettlementEntity· 8 fields from this table
Need help with GeneralJournalEntry in a report, an integration or a migration? Talk to Dr Dynamics.