Skip to the content.

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

Enginatics

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

The Solution

Technical Architecture (High Level)

Primary Tables

Logical Relationships

  1. The report combines two branches with union all. The first reads GL_BALANCES joined to GL_LEDGERS and GL_CODE_COMBINATIONS_KFV, and the second reads GL_JE_LINES joined to GL_JE_HEADERS, GL_LEDGERS and GL_CODE_COMBINATIONS_KFV.
  2. 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.
  3. Journal sources and categories are matched to their identifiers through GL_JE_SOURCES_VL and GL_JE_CATEGORIES_VL.
  4. Budget and encumbrance restrictions are applied as subqueries on GL_BUDGET_VERSIONS and GL_ENCUMBRANCE_TYPES.
  5. The combined rows are aggregated by ledger, account and segment, and the result is ordered by the account.

Parameters & Filtering

Performance & Optimization

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.


© Enginatics GmbH