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 descriptionType / EDT / enumMandatoryReferencesIn public entities
AccountingDateAccounting date of the entry.Date
TransDate
YesGeneralJournalEntryBiEntityGeneralJournalEntryCDREntityLedgerTransSettlementV2Entityand 4 more
AccountingEventRecord ID of the accounting event linked to the entry.Int64
AccountingEventRecId
NoGeneralJournalEntryBiEntity
AcknowledgementDateTransaction date of the entry.Date
AcknowledgementDate
NoGeneralJournalEntryBiEntityGeneralJournalEntryCDREntity
BudgetSourceLedgerEntryPostedPoints to the budget source record linked to the posted ledger entry.Int64
RefRecId
NoBudgetSource.RecIdGeneralJournalEntryBiEntityGeneralJournalEntryCDREntity
CreatedByThe user who created the record. System field.String (20)
CreatedBy
NoGeneralJournalEntryBiEntityGeneralJournalEntryCDREntity
CreatedDateTimeThe date and time when the record was created. System field.UtcDateTime
CreatedDateTime
NoGeneralJournalEntryBiEntityGeneralJournalEntryCDREntity
CreatedTransactionIdA system number for the database transaction that created the record. System field.Int64
CreatedTransactionId
NoTransactionLog.createdTransactionIdGeneralJournalEntryBiEntityGeneralJournalEntryCDREntity
DocumentDateDate shown on the source document.Date
DocumentDate
NoGeneralJournalEntryBiEntityGeneralJournalEntryCDREntityLedgerTransSettlementV2Entityand 2 more
DocumentNumberNumber of the source document, up to 50 characters.String (50)
DocumentNumLarge
NoGeneralJournalEntryBiEntityGeneralJournalEntryCDREntityLedgerTransSettlementV2Entityand 2 more
FiscalCalendarPeriodPoints to the fiscal calendar period of the entry.Int64
FiscalCalendarPeriodRecId
NoFiscalCalendarPeriod.RecIdGeneralJournalEntryBiEntityGeneralJournalEntryCDREntity
FiscalCalendarYearPoints to the fiscal calendar year of the entry.Int64
FiscalCalendarYearRecId
NoFiscalCalendarYear.RecIdGeneralJournalEntryBiEntityGeneralJournalEntryCDREntity
JournalCategoryTransaction type of the journal entry, such as sales order, purchase order or inventory.Enum
LedgerTransType (enum)
YesGeneralJournalEntryBiEntityGeneralJournalEntryCDREntity
JournalNumberNumber that identifies the journal entry.String (20)
GeneralJournalEntryJournalNumber
YesGeneralJournalEntryBiEntityGeneralJournalEntryCDREntityLedgerTransSettlementV2Entityand 2 more
LedgerPoints to the ledger that the entry belongs to.Int64
RefRecId
NoLedger.RecIdGeneralJournalEntryBiEntityGeneralJournalEntryCDREntityLedgerTransSettlementV2Entityand 2 more
LedgerEntryJournalPoints to a ledger entry journal record.Int64
RefRecId
NoLedgerEntryJournal.RecIdGeneralJournalEntryBiEntityGeneralJournalEntryCDREntity
LedgerPostingJournalID of the posting journal linked to the entry.String (20)
LedgerPostingJournalId
NoLedgerPostingJournal.LedgerPostingJournalIdGeneralJournalEntryBiEntityGeneralJournalEntryCDREntity
LedgerPostingJournalDataAreaIdCompany that the posting journal belongs to.String
CompanyId
NoGeneralJournalEntryBiEntityGeneralJournalEntryCDREntity
PartitionA system field for the data partition. In most environments every record has the same value. System field.Int64
Partition
NoNone
PostingLayerPosting layer of the entry, such as current, operations or tax.Enum
CurrentOperationsTax (enum)
NoGeneralJournalEntryBiEntityGeneralJournalEntryCDREntityLedgerTransSettlementV2Entityand 2 more
RecIdA unique number that the system gives to every record. Other tables often use it to point to this record. System field.Int64
RecId
NoGeneralJournalEntryBiEntityGeneralJournalEntryCDREntity
RecVersionA system number that changes each time the record is updated. It is used to detect conflicting updates. System field.Integer
RecVersion
NoGeneralJournalEntryBiEntityGeneralJournalEntryCDREntity
SubledgerJournalEntryIdentifier of the related subledger journal entry.Int64
SubledgerJournalEntryIdentifier
NoGeneralJournalEntryBiEntityGeneralJournalEntryCDREntity
SubledgerVoucherVoucher number from the subledger.String (20)
Voucher
NoGeneralJournalEntryBiEntityGeneralJournalEntryCDREntityInflationAdjJournalEntityand 4 more
SubledgerVoucherDataAreaIdCompany that the subledger voucher belongs to.String
CompanyId
NoGeneralJournalEntryBiEntityGeneralJournalEntryCDREntity
SysRowVersionA system row version number that is used for change tracking. System field.Int64
SysRowVersion
NoNone
TableIdA system number that identifies the table. System field.Integer
TableId
NoNone
TransferIdIdentifier of the subledger journal transfer.Int64
SubledgerJournalTransferId
NoGeneralJournalEntryBiEntityGeneralJournalEntryCDREntity

Indexes (15)

Relations (11)

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

  • FiscalCalendarPeriod → FiscalCalendarPeriod

    Join on FiscalCalendarPeriod = FiscalCalendarPeriod.RecId

    Many GeneralJournalEntry records → zero or one FiscalCalendarPeriod record

  • FiscalCalendarYear → FiscalCalendarYear

    Join on FiscalCalendarYear = FiscalCalendarYear.RecId

    Many GeneralJournalEntry records → zero or one FiscalCalendarYear record

  • Ledger → Ledger

    Join on Ledger = Ledger.RecId

    Many GeneralJournalEntry records → zero or one Ledger record

  • TransactionLog → TransactionLog

    Join on createdTransactionId = TransactionLog.createdTransactionId

    Many GeneralJournalEntry records → zero or one TransactionLog record

  • LedgerEntryJournal → LedgerEntryJournal

    Join on LedgerEntryJournal = LedgerEntryJournal.RecId

    Many GeneralJournalEntry records → zero or one LedgerEntryJournal record

  • LedgerPostingJournal → LedgerPostingJournal

    Join on LedgerPostingJournal = LedgerPostingJournal.LedgerPostingJournalId

    Many GeneralJournalEntry records → zero or one LedgerPostingJournal record

  • DataArea → DataArea

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

    Many GeneralJournalEntry records → zero or one DataArea record

  • SubledgerVoucherDataAreaId → DataArea

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

    Many GeneralJournalEntry records → zero or one DataArea record

  • CustExchRateAdjustment → CustExchRateAdjustment

    Join on createdTransactionId = CustExchRateAdjustment.createdTransactionId

    Many GeneralJournalEntry records → zero or one CustExchRateAdjustment record

  • BudgetSource → BudgetSource

    Join on BudgetSourceLedgerEntryPosted = BudgetSource.RecId

    Many GeneralJournalEntry records → zero or one BudgetSource record

  • VendExchRateAdjustment → VendExchRateAdjustment

    Join on createdTransactionId = VendExchRateAdjustment.createdTransactionId

    Many 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.

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

Email sales@drdynamics.co.uk