GL Account Distribution Analysis – 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
Detailed GL transaction report with one line per distribution including all segments and subledger data, with amounts in both transaction currency and ledger currency. The report includes VAT tax codes and rates for AR and AP transactions.
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, Period, Period From, Period To, Posted Date From, Posted Date To, Journal Source, Journal Category, Batch, Journal, Journal Line, Tax Rate Code, Account Type, Hierarchy Segment, Hierarchy Name, Concatenated Segments, GL_SEGMENT1, GL_SEGMENT1 From, GL_SEGMENT1 To, GL_SEGMENT2, GL_SEGMENT2 From, GL_SEGMENT2 To, GL_SEGMENT3, GL_SEGMENT3 From, GL_SEGMENT3 To, GL_SEGMENT4, GL_SEGMENT4 From, GL_SEGMENT4 To, GL_SEGMENT5, GL_SEGMENT5 From, GL_SEGMENT5 To, GL_SEGMENT6, GL_SEGMENT6 From, GL_SEGMENT6 To, GL_SEGMENT7, GL_SEGMENT7 From, GL_SEGMENT7 To, GL_SEGMENT8, GL_SEGMENT8 From, GL_SEGMENT8 To, GL_SEGMENT9, GL_SEGMENT9 From, GL_SEGMENT9 To, GL_SEGMENT10, GL_SEGMENT10 From, GL_SEGMENT10 To, Status, Revaluation Currency, Revaluation Conversion Type, Balance Type, Budget Name, Encumbrance Type, Exclude Zero Amount Lines, Show Segments with Descriptions, Show Open/Close Balances, Show Sub Ledger Contra Accounts, Journal Line DFF Display, Invoice DFF Display, Relative Period, Relative Period From, Relative Period To
Oracle EBS Tables Used
fnd_flex_value_norm_hierarchy, gl_code_combinations_kfv, gl_je_categories_vl, zx_lines, xla_event_types_tl, gl_daily_conversion_types, gl_budget_versions, gl_encumbrance_types, fa_distribution_history, ap_invoice_payments_all, ap_invoices_all, ap_payment_schedules_all, ar_payment_schedules_all, mtl_sales_orders, ra_rules, ra_customer_trx_lines_all, ap_suppliers, hz_cust_accounts, hz_parties, oe_order_lines_all, per_jobs_vl, hr_all_positions_f_tl, hr_all_organization_units_vl, mtl_generic_dispositions, cst_cost_updates, mtl_cycle_count_headers, mtl_physical_inventories, okc_k_headers_all_b, po_requisition_headers_all, wip_entities, mtl_txn_request_headers, hz_cust_site_uses_all, ap_supplier_sites_all, fnd_application_vl, fnd_id_flex_segments, fnd_flex_values, gl_ledgers, gl_periods, gl_je_batches, gl_je_headers, gl_je_lines, gl_je_sources_vl, gl_import_references, xla_ae_lines, xla_ae_headers, xla_events, xla_transaction_entities, xla_distribution_links, gl_daily_rates, zx_rates_b, fa_adjustments, fa_additions_b, ap_batches_all, ap_payment_hist_dists, ap_checks_all, ce_bank_acct_uses_all, ce_bank_accounts, ce_bank_branches_v, ap_invoice_distributions_all, ap_invoice_lines_all, po_distributions_all, po_headers_all, po_releases_all, po_line_locations_all, financials_system_params_all, po_lines_all, hr_operating_units, po_req_distributions_all, ra_customer_trx_all, ra_cust_trx_line_gl_dist_all, ra_batch_sources_all, ra_batches_all, jtf_rs_salesreps, jtf_rs_resource_extns_vl, ar_adjustments_all, ar_cash_receipts_all, ar_cash_receipt_history_all, ar_batches_all, pa_projects_all, pa_tasks, pa_draft_revenues_all, pa_agreements_all, pa_expenditure_items_all, pa_expenditures_all, pa_expenditure_types, per_all_people_f, pay_assignment_actions, per_all_assignments_f, rcv_receiving_sub_ledger, rcv_transactions, rcv_shipment_headers, rcv_shipment_lines, wip_transactions, bom_departments, bom_resources, gmf_xla_extract_headers, mtl_material_transactions, mtl_system_items_vl, mtl_parameters, mtl_transaction_types, mtl_txn_source_types, oe_order_headers_all, gl_balances, fnd_lookup_values_vl
Report Categories
Related Reports
GL Account Analysis, GL Account Analysis 11g, GL Account Analysis (Drilldown) (with inventory and WIP)
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_Account_Distribution_Analysis.xml |
| SQL Source | GL Account Distribution Analysis.sql |
| Full Report on Enginatics | www.enginatics.com/reports/gl-account-distribution-analysis/ |
Case Study & Technical Analysis: GL Account Distribution Analysis
Executive Summary
The GL Account Distribution Analysis report produces a detailed General Ledger listing with one line per journal distribution. Each line carries every account segment, the subledger document that created it, and the amounts in transaction currency and ledger currency. For AR and AP transactions it also shows the VAT tax rate code and rate. Financial controllers, period-close teams and auditors use it to trace a ledger balance back to its originating invoice, receipt, payment or inventory transaction. The report runs in Excel through Blitz Report.
Business Challenge
- Period-end tracing: Accountants need to see which subledger documents make up an account balance, which the standard journal views do not link directly.
- Audit evidence: Auditors ask for every distribution behind an account, including the source, batch, journal and accounting event.
- Multi-currency reporting: Foreign currency transactions must be reported in transaction currency and functional currency, optionally revalued at a chosen rate.
- VAT reporting: Tax rate codes and rates on AR and AP lines must be visible beside the accounted amounts.
The Solution
- Journal detail: Journal headers, lines, batches and sources are combined with subledger accounting lines, so every posted line shows its subledger origin.
- Subledger attribution: Invoice, payment, receipt, purchase order, receiving, inventory, work in process, project and payroll references are resolved through accounting event links.
- Balance lines: When balances are requested, opening and closing balance rows are added per account and period, so the listing reconciles to the ledger.
- Hierarchy selection: Accounts can be selected through a value hierarchy on one segment, and segments can be shown with their descriptions.
Technical Architecture (High Level)
Primary Tables
GL_LEDGERS,GL_PERIODS,GL_JE_BATCHES,GL_JE_HEADERS,GL_JE_LINESandGL_JE_SOURCES_VL: the ledger, periods and the journal hierarchy with its source.GL_CODE_COMBINATIONS_KFV: the account combination and its concatenated segments.GL_BALANCES: the opening and closing balances used for balance rows.XLA_AE_HEADERS,XLA_AE_LINES,XLA_EVENTS,XLA_TRANSACTION_ENTITIESandXLA_DISTRIBUTION_LINKS: the subledger accounting events and their distribution links.GL_IMPORT_REFERENCES: the link from journal lines to subledger accounting lines.AP_INVOICES_ALL,AP_INVOICE_DISTRIBUTIONS_ALL,AP_INVOICE_PAYMENTS_ALL,AP_CHECKS_ALLandAP_SUPPLIERS: AP invoice, payment and supplier data.RA_CUSTOMER_TRX_ALL,RA_CUSTOMER_TRX_LINES_ALL,RA_CUST_TRX_LINE_GL_DIST_ALLandAR_CASH_RECEIPTS_ALL: AR transactions, lines, receivable distributions and receipts.ZX_LINESandZX_RATES_B: tax lines and rates.PO_HEADERS_ALL,PO_LINES_ALL,PO_DISTRIBUTIONS_ALLandRCV_TRANSACTIONS: purchasing and receiving sources.MTL_MATERIAL_TRANSACTIONSandWIP_TRANSACTIONS: inventory and work in process sources.GL_DAILY_RATESandGL_DAILY_CONVERSION_TYPES: rates used for the revaluation currency.
Logical Relationships
GL_LEDGERSjoins toGL_PERIODSby period set, then toGL_JE_HEADERSby ledger and period name, andGL_JE_LINESjoins to its header and batch.- Each journal line joins to
GL_CODE_COMBINATIONS_KFV, and throughGL_IMPORT_REFERENCESto theXLA_AE_LINESrows it created. - The accounting lines join to their headers and events, and
XLA_DISTRIBUTION_LINKSconnects them to the source distribution. - The source distribution is matched to subledger tables by application ID, so each source is resolved only for its own application.
- The result is combined with opening and closing balance rows, and ordered by ledger, account, period, batch, journal and line.
Parameters & Filtering
- Ledger and Period (or Period From and Period To): choose the ledger and accounting periods.
- Posted Date From and Posted Date To: bound the posting date of the journal.
- Journal Source, Journal Category, Batch, Journal and Journal Line: narrow the listing to one source, category or journal.
- GL_SEGMENT1 to GL_SEGMENT10 with their From and To values: filter each account segment by value or range.
- Hierarchy Segment and Hierarchy Name: restrict accounts to a value hierarchy on one segment.
- Balance Type, Budget Name and Encumbrance Type: choose actual, budget or encumbrance data.
- Revaluation Currency and Revaluation Conversion Type: revalue amounts at a chosen rate on the conversion date.
Performance & Optimization
- The hierarchy is expanded with a hierarchical
CONNECT BYlimited to leaf nodes, so the segment range is built once and reused. - The code combinations are materialized in a common table expression, which avoids repeated lookups from each journal line.
- The subledger joins use
DECODEandCOALESCEon application ID and distribution type, so each source is joined only for the matching record type. - The period joins restrict the journal rows before the subledger joins are evaluated.
FAQ
Q: How can I trace a journal line to its invoice or receipt? A: The line links through the accounting event to the subledger, and the invoice, customer transaction, cash receipt, purchase order and receiving columns show the source document.
Q: Why does the report show opening and closing balance rows? A: When balances are requested, the report adds opening and closing balance rows per account and period, taken from the balances table, so the listing ties to the ledger.
Q: Which VAT information is included for AR and AP lines? A: The tax rate code and tax rate of each line are shown, taken from the tax lines of the transaction or from the AP invoice line.
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