FGLEDG
Prefix: EGtransactionDivision-levelThe 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
Fields
10 fields · 5 key
| Key | Field | Alias | Description | Type | Length | Flags |
|---|---|---|---|---|---|---|
| Key | EGCONO | CONO | Company | numeric | ||
| Key | EGDIVI | DIVI | Division the voucher posted in | alphanumeric | ||
| Key | EGYEA4 | YEA4 | Fiscal year | numeric | ||
| Key | EGVSER | VSER | Voucher number series | alphanumeric | ||
| Key | EGVONO | VONO | Voucher number | numeric | ||
| EGJRNO | JRNO | Journal number | numeric | |||
| EGACDT | ACDT | Accounting date | numeric | |||
| EGAIT1 | AIT1 | Accounting dimension 1 — the account; dimensions 2–7 carry the configurable analysis slices | alphanumeric | |||
| EGACAM | ACAM | Amount in local currency, signed | numeric | |||
| EGCUAM | CUAM | Amount in transaction currency, signed | numeric |
Field provenance: hand-curated.
Boilerplate SQL
Starting point for reading FGLEDGon 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.
-- ============================================================
-- 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 Infor Data Lake-landed M3 data. Dates are numeric YYYYMMDD (0 = none, mapped to NULL); status ladders decoded inline where verified. 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; dimensions 2–7 carry the configurable analysis slices",
f.EGACAM AS "Amount in local currency, signed",
f.EGCUAM AS "Amount in transaction currency, signed"
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;6 parameters not filled: <catalog>, <schema>, <company>, <DIVI>, <DATE_FROM>, <DATE_TO>
Relationships
1-hop neighbors — click a table to navigate there. CSYTAB decode edges are highlighted; they’re the joins newcomers most often get wrong.