GL Balance Drilldown – Oracle EBS SQL Report
Oracle E-Business Suite SQL report from the Enginatics Library powered by Blitz Report™. Oracle EBS module: General Ledger · all General Ledger reports
Overview
Shows GL balance details by code combination. Uses gl_balances for standard queries, gl_je_lines when filtering by journal source/category or using JED balance types.
Run this report in Excel in seconds: download Blitz Report™ free (your first 30 reports are free) or try it in the online demo.
Report Parameters
Ledger ID, Period Name, Balance Type, Currency Code, Translated Flag, Actual Flag, Budget Name, Encumbrance Type, Journal Source, Journal Category, Multiplier
Oracle EBS Tables Used
gl_balances, gl_ledgers, gl_code_combinations_kfv, gl_budget_versions, gl_encumbrance_types, xxen_report_temp_ids, gl_je_lines, gl_je_headers, gl_periods, gl_je_sources_vl, gl_je_categories_vl
Report Categories
Related Reports
GL Account Analysis, GL Account Distribution Analysis, GL Journals, GL Journals 11i, GL Account Analysis (Drilldown), GL Account Analysis 11g, GL Account Analysis (Drilldown) (with inventory and WIP), GL Journals (Drilldown) 11g, GL Journals (Drilldown)
Running This SQL Without Blitz Report
The SQL source can be run in any SQL client. Some Oracle EBS SQL reports in this library use functions from the utility package xxen_util – install it first. Blitz Report™ adds parameters, Excel output with pivots, scheduling and security on top.
Download & Import Options
| Resource | Link |
|---|---|
| Excel Example Output | Example |
| Blitz Report™ XML Import | GL_Balance_Drilldown.xml |
| SQL Source | GL Balance Drilldown.sql |
| Full Report on Enginatics | www.enginatics.com/reports/gl-balance-drilldown/ |
Case Study & Technical Analysis: GL Balance Drilldown
Executive Summary
The GL Balance Drilldown report shows General Ledger balances by code combination for a ledger and period, with opening balance, period debits and credits, net movement and closing balance. It is written for General Ledger accountants, financial reporting teams and consultants who need to see what makes up a balance, not only its total. Standard queries read the summary balances in GL_BALANCES, while queries filtered by journal source or category, or using the journal entry balance types, read journal lines instead.
Business Challenge
- Explaining a balance: Controllers must explain a closing balance by account, which requires the opening balance and the period movement for each combination.
- Analysing by source: Reviewers often need to know how much of a balance came from a given journal source or category, such as payables or manual journals.
- Choosing the right basis: Balances can be taken as year to date, first or last period of the fiscal year, a single period, or journal entry balances in posted or unposted state, each with different meaning.
The Solution
- Balance by account: The report returns, for each code combination, the opening balance, period debits, period credits, period net, and closing balance.
- Two sources, one layout: Standard balances come from
GL_BALANCES, and journal source or category filters, or the journal entry balance types, come fromGL_JE_LINES, with both feeding the same columns. - Balance type selection: The Balance Type parameter switches the period basis between year to date, first and last period of the fiscal year, a single period and the journal entry types.
- Currency and translation control: Currency code and translated flag parameters select the currency basis, including the statistical currency and the translation options.
Technical Architecture (High Level)
Primary Tables
GL_BALANCES: the summary balances by ledger, code combination, period, currency and balance type.GL_LEDGERS: the ledger, its chart of accounts, currency and period set.GL_CODE_COMBINATIONS_KFV: the account combinations with their concatenated segments.GL_JE_HEADERSandGL_JE_LINES: journal headers and lines, used when the source, category or journal entry balance type is selected.GL_JE_SOURCES_VLandGL_JE_CATEGORIES_VL: the translated journal source and category names.GL_PERIODS: the period dates, used for journal entry balances by effective date.GL_BUDGET_VERSIONSandGL_ENCUMBRANCE_TYPES: the budget and encumbrance selections.
Logical Relationships
- The report combines two branches with
union all. The first readsGL_BALANCESjoined toGL_LEDGERSandGL_CODE_COMBINATIONS_KFV, and the second readsGL_JE_LINESjoined toGL_JE_HEADERS,GL_LEDGERSandGL_CODE_COMBINATIONS_KFV. - The first branch runs only when no journal source or category is supplied and the balance type is not a journal entry type. The second branch runs only when one of those conditions is true.
- Journal sources and categories are matched to their identifiers through
GL_JE_SOURCES_VLandGL_JE_CATEGORIES_VL. - Budget and encumbrance restrictions are applied as subqueries on
GL_BUDGET_VERSIONSandGL_ENCUMBRANCE_TYPES. - The combined rows are aggregated by ledger, account and segment, and the result is ordered by the account.
Parameters & Filtering
- Ledger ID and Period Name: Identify the ledger and period whose balances are returned.
- Balance Type: Selects year to date, first or last fiscal period, a single period or the journal entry types.
- Currency Code and Translated Flag: Choose the currency basis of the balance, including the ledger currency and the statistical currency.
- Journal Source and Journal Category: When either is entered, the report reads journal lines instead of summary balances.
- Multiplier: Scales all amounts by the value entered, with the default being one.
Performance & Optimization
- Summary path by default: Standard queries read the summary
GL_BALANCEStable and avoid the journal tables unless a source, category or journal balance type is requested. - Non-summary accounts only: Only detail accounts are included, so summary parents do not double count.
- Flexfield security check: The security function is evaluated only when flexfield value security is in use, so the cost is incurred only where it applies.
FAQ
Q: How do I see the journals behind a GL balance in Excel? A: Use the drilldown formula in the drilldown column of the report, which opens the journals for that balance, or filter the report by journal source or category.
Q: Why does the report switch to journal lines for some balance types?
A: Journal source and category filters, and the journal entry balance types, cannot be answered from summary balances, so the report reads GL_JE_LINES for those cases.
Q: What is the difference between opening balance and period net? A: Opening balance is the beginning balance for the period, period net is the debit less credit movement in the period, and closing balance is the sum of the two.
Useful Links
- Blitz Report™ – World’s Fastest Oracle EBS Reporting Tool
- Oracle Discoverer Replacement – Import Worksheets into Blitz Report™
- Oracle EBS Reporting Toolkits by Blitz Report™
- Blitz Report™ FAQ & Community Q&A
- Supply Chain Hub by Blitz Report™
- Blitz Report™ Customer Case Studies
- Oracle EBS Reporting Blog
- Oracle EBS Reporting Resource Centre
© Enginatics GmbH