Skip to content
M3 Reference

FGLEDG

Prefix: EGtransactionDivision-level

The general ledger — one row per voucher line, with the accounting date, accounting-dimension string, and amounts; the voucher is identified by division, fiscal year, voucher series, and voucher number, and carries one or more lines below that key; every subledger posting lands here

Module: FinanceCompany-partitioned (CONO)
What the badges mean
Prefix: MM
Prefix: the table’s 2-character physical-column prefix (e.g. MM on MITMAS) — every field alias on the table carries it. Join by matching aliases across tables, not full column names (see the quirks guide).
master
Data class: what the table holds — master data, balances, transaction documents, code/reference tables, or history.
Shared across companies
The table carries no CONO — rows aren’t partitioned per company (see the quirks guide).
Division-level
The table carries DIVI — rows are scoped below company to a division, one layer more granular than CONO alone (see the quirks guide).
In field listings, K marks a primary-key field.
Used in the library
KPI definitions

Fields

16 fields · 5 key

16 fields.

Table fields: key flag, field name, column alias, description, data type, length, and decode flags. 16 fields.
KeyFieldAliasDescriptionTypeLengthFlags
KeyEGCONOCONOCompanynumeric
KeyEGDIVIDIVIDivision the voucher posted inalphanumeric
KeyEGYEA4YEA4Fiscal yearnumeric
KeyEGVSERVSERVoucher number seriesalphanumeric
KeyEGVONOVONOVoucher numbernumeric
EGJRNOJRNOJournal numbernumeric
EGACDTACDTAccounting datenumeric
EGAIT1AIT1Accounting dimension 1 — the account, first of the seven accounting dimensions; dimensions 2–7 below carry the configurable analysis slicesalphanumeric
EGACAMACAMAmount in local currency, signednumeric
EGCUAMCUAMAmount in transaction currency, signednumeric
EGAIT2AIT2Accounting dimension 2 — one of the six configurable analysis slices alongside the account (AIT1)alphanumeric
EGAIT3AIT3Accounting dimension 3 — configurable analysis slicealphanumeric
EGAIT4AIT4Accounting dimension 4 — configurable analysis slicealphanumeric
EGAIT5AIT5Accounting dimension 5 — configurable analysis slicealphanumeric
EGAIT6AIT6Accounting dimension 6 — configurable analysis slicealphanumeric
EGAIT7AIT7Accounting dimension 7 — configurable analysis slicealphanumeric

Field provenance: hand-curated.

Boilerplate SQL

Starting point for reading FGLEDG on Databricks — numeric YYYYMMDD dates are wrapped to NULL, verified status ladders are decoded, and the CONO anchor is in place. Set your Unity Catalog location, company, and filter values below; they’re substituted into the SQL and the copy button.

Query parameters

6 parameters not filled: <catalog>, <schema>, <company>, <DIVI>, <DATE_FROM>, <DATE_TO>

-- ============================================================
-- Table  : FGLEDG — The general ledger — one row per voucher line, with the accounting date, accounting-dimension string, and amounts; the voucher is identified by division, fiscal year, voucher series, and voucher number, and carries one or more lines below that key; every subledger posting lands here
-- Purpose: Column-selected read of FGLEDG — auto-generated from field metadata
-- Grain  : Transaction-grain — finer than company (CONO) + EGDIVI + EGYEA4 + EGVSER + EGVONO; the full row key is not yet cataloged (see the table description)
-- Notes  : Auto-generated skeleton for a prefixed physical M3 schema or a landing schema normalized to the prefixed names in this catalog. Raw Data Lake property names vary with the published object: map them through Data Catalog before running this SQL. Dates are numeric YYYYMMDD (0 = none, mapped to NULL); all curated status values are decoded inline. Audit columns (RGDT/RGTM/LMDT/CHNO/CHID) omitted — see the quirks guide.
-- ============================================================
SELECT
  f.EGCONO AS "Company",
  f.EGDIVI AS "Division the voucher posted in",
  f.EGYEA4 AS "Fiscal year",
  f.EGVSER AS "Voucher number series",
  f.EGVONO AS "Voucher number",
  f.EGJRNO AS "Journal number",
  CASE WHEN f.EGACDT = 0 THEN NULL ELSE TO_DATE(CAST(CAST(f.EGACDT AS BIGINT) AS STRING), 'yyyyMMdd') END AS "Accounting date",  -- YYYYMMDD, 0 → NULL
  f.EGAIT1 AS "Accounting dimension 1 — the account, first of the seven accounting dimensions; dimensions 2–7 below carry the configurable analysis slices",
  f.EGACAM AS "Amount in local currency, signed",
  f.EGCUAM AS "Amount in transaction currency, signed",
  f.EGAIT2 AS "Accounting dimension 2 — one of the six configurable analysis slices alongside the account (AIT1)",
  f.EGAIT3 AS "Accounting dimension 3 — configurable analysis slice",
  f.EGAIT4 AS "Accounting dimension 4 — configurable analysis slice",
  f.EGAIT5 AS "Accounting dimension 5 — configurable analysis slice",
  f.EGAIT6 AS "Accounting dimension 6 — configurable analysis slice",
  f.EGAIT7 AS "Accounting dimension 7 — configurable analysis slice"
FROM <catalog>.<schema>.FGLEDG f
WHERE
  f.EGCONO = <company>
  -- AND f.EGDIVI = '<DIVI>'
  -- AND f.EGACDT >= <DATE_FROM>  -- yyyyMMdd numeric
  -- AND f.EGACDT <= <DATE_TO>  -- yyyyMMdd numeric
ORDER BY f.EGYEA4;

Verified September 2026

Relationships

Diagram of 1-hop neighbors — join details below. CSYTAB decode edges are highlighted; they’re the joins newcomers most often get wrong.

Join details

  • FSLEDGFGLEDGforeign key · N:M
    -- Uses this catalog's prefixed M3 column names; map raw Data Lake properties through Data Catalog first. ON FSLEDG.ESVONO = FGLEDG.EGVONO AND FSLEDG.ESDIVI = FGLEDG.EGDIVI AND FSLEDG.ESYEA4 = FGLEDG.EGYEA4 AND FSLEDG.ESVSER = FGLEDG.EGVSER AND FSLEDG.ESCONO = FGLEDG.EGCONO
  • FPLEDGFGLEDGforeign key · N:M
    -- Uses this catalog's prefixed M3 column names; map raw Data Lake properties through Data Catalog first. ON FPLEDG.EPVONO = FGLEDG.EGVONO AND FPLEDG.EPDIVI = FGLEDG.EGDIVI AND FPLEDG.EPYEA4 = FGLEDG.EGYEA4 AND FPLEDG.EPVSER = FGLEDG.EGVSER AND FPLEDG.EPCONO = FGLEDG.EGCONO

Programs That Use This Table

More Finance tables

Maintained by Summit Analytics, a supply chain analytics practice. The tools and references are free — the consulting is selective.

Part of the Summit Analytics reference library.

Work with the practice

Not affiliated with or endorsed by Infor. Infor, Infor M3, and Infor CloudSuite are trademarks of Infor and/or its affiliates.