Skip to the content.

GL Balance by Account Hierarchy – Oracle EBS SQL Report

Oracle E-Business Suite SQL report from the Enginatics Library powered by Blitz Report™.

Overview

Summary GL report including one line per GL account. This report has multiple collapsible/expandable summary levels based on the GL account hierarchy, with starting balance, total amount per month, ending total and YTD balance. Parameter ‘Additional Segment’ can be used to include additional segments e.g. cost center or balancing segment.

Report Parameters

Ledger, Ledger Category, Period, Show Full Year, Hierarchy Segment, Additional Segment1, Additional Segment2, Additional Segment3, Sort by Additional Segment, Hierarchy Name, Show Account Type, Account Type, Show Child Account Level, Summary Template only, Revaluation Currency, Revaluation Conversion Type, Balance Type, Budget Name, Encumbrance Type, Exclude Inactive

Oracle EBS Tables Used

gl_daily_conversion_types, gl_daily_rates, gl_ledgers, gl_period_statuses, gl_balances, fnd_id_flex_segments, gl_code_combinations, fnd_flex_values, fnd_flex_value_norm_hierarchy, table, fnd_segment_attribute_values, gl_summary_templates, fnd_lookup_values_vl

Report Categories

Enginatics, R12 only

Running This SQL Without Blitz Report

Some Oracle EBS SQL reports in this library require functions from the utility package xxen_util. Install it before running the SQL directly against your Oracle EBS database.

Download & Import Options

Resource Link
Excel Example Output GL Balance by Account Hierarchy 12-Nov-2020 012923.xlsx
Blitz Report™ XML Import GL_Balance_by_Account_Hierarchy.xml
Full SQL on Enginatics www.enginatics.com/reports/gl-balance-by-account-hierarchy/

GL Balance by Account Hierarchy - Case Study & Technical Analysis

Executive Summary

The GL Balance by Account Hierarchy report is a sophisticated financial reporting solution that leverages Oracle General Ledger’s parent-child account relationships. It presents balances in a hierarchical format, allowing users to drill down from high-level summary accounts to detailed child accounts. This report is vital for producing financial statements (like Balance Sheets and Income Statements) directly from the system, respecting the defined rollup structures.

Business Challenge

Organizations define complex account hierarchies to structure their financial reporting. However, extracting data that respects these hierarchies can be challenging:

Solution

The GL Balance by Account Hierarchy report dynamically traverses the defined Flexfield Value Set Hierarchies to present a structured view of GL balances.

Key Features:

Technical Architecture

The report relies on the recursive relationships defined in the Application Object Library (AOL) flexfield tables to build the hierarchy and join it with GL balances.

Key Tables and Views

Core Logic

  1. Hierarchy Traversal: The query uses hierarchical SQL (e.g., CONNECT BY) or recursive joins on FND_FLEX_VALUE_NORM_HIERARCHY to establish the parent-child tree structure.
  2. Balance Assignment: Detail balances from GL_BALANCES are assigned to the lowest level (child) nodes in the tree.
  3. Aggregation: Balances are rolled up the tree, summing child balances to populate parent nodes.
  4. Filtering: The report filters by Ledger, Period, and the specific Hierarchy Name selected by the user.

Business Impact


© 2026 Enginatics