Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

README.md

layout default
title GL Code Combinations | Oracle EBS SQL Report
description Parameter 'Show Misclassified Accounts' can be used to identify code combinations, which have a different account type than their flexfield value setup…
keywords Oracle EBS, Oracle E-Business Suite, SQL report, Blitz Report, Enginatics, Code, Combinations, gl_summary_templates, gl_code_combinations_kfv, fnd_flex_values
permalink /GL%20Code%20Combinations/

GL Code Combinations – Oracle EBS SQL Report

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

Overview

Parameter 'Show Misclassified Accounts' can be used to identify code combinations, which have a different account type than their flexfield value setup. There is an Oracle note explaining the implications of correcting these: R12: Troubleshooting Misclassified Accounts in General Ledger (KB706390) https://support.oracle.com/support/?kmContentId=872162

Report Parameters

Chart of Accounts, Ledger, Show Balance and Posted Date, Account Type, Show Misclassified Accounts, Child Accounts Only, Segment1 like, Segment1 From, Segment1 To, Segment2 like, Segment2 From, Segment2 To, Segment3 like, Segment3 From, Segment3 To, Segment4 like, Segment4 From, Segment4 To, Segment5 like, Segment5 From, Segment5 To

Oracle EBS Tables Used

gl_summary_templates, gl_code_combinations_kfv, fnd_flex_values, fnd_segment_attribute_values, fnd_id_flex_structures_vl, fnd_id_flex_segments, gl_balances, gl_ledgers, gl_periods, gl_je_headers, gl_je_lines

Report Categories

Enginatics

Related Reports

GL Account Analysis, GL Account Analysis (Distributions), GL Account Distribution Analysis, GL Account Analysis 11g, GL Balance, GL Balance by Account Hierarchy

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 Code Combinations 31-May-2025 130542.xlsx
Blitz Report™ XML Import GL_Code_Combinations.xml
Full SQL on Enginatics www.enginatics.com/reports/gl-code-combinations/

GL Code Combinations - Case Study & Technical Analysis

Executive Summary

The GL Code Combinations report is a master data management tool designed to audit, analyze, and maintain the Chart of Accounts structure. It lists valid accounting flexfield combinations, their attributes (such as account type and enabled status), and helps identify misclassified accounts or setup inconsistencies. This report is critical for maintaining the integrity of the financial reporting structure and ensuring that data entry adheres to corporate governance standards.

Business Use Cases

  • Master Data Governance: Ensures all created account combinations adhere to corporate naming conventions and validation rules, preventing the proliferation of invalid or duplicate accounts.
  • Misclassification Audit: Identifies accounts with incorrect types (e.g., an Asset account incorrectly flagged as an Expense), which can severely distort financial statements and trial balances.
  • Cleanup Initiatives: Assists in identifying disabled, end-dated, or unused code combinations to streamline the chart of accounts and improve system performance.
  • Cross-Validation Rule Testing: Verifies that existing combinations comply with newly defined cross-validation rules (CVRs) and security rules.
  • Revaluation Setup: Validates that revaluation tracking is enabled for the correct foreign currency accounts.

Technical Analysis

Core Tables

  • GL_CODE_COMBINATIONS (often aliased as GCC): The central table storing every unique combination of segment values used in the system.
  • FND_FLEX_VALUES: Stores the definitions and attributes of individual segment values.
  • FND_ID_FLEX_STRUCTURES_VL: Provides metadata about the Chart of Accounts structure.

Key Joins & Logic

  • Segment Validation: The report iterates through GL_CODE_COMBINATIONS. It joins to FND_FLEX_VALUES for each segment to retrieve descriptions and attributes.
  • Misclassification Logic: A critical feature is the detection of misclassified accounts. The logic typically compares the ACCOUNT_TYPE on the GL_CODE_COMBINATIONS record (which is stamped upon creation) against the COMPILED_VALUE_ATTRIBUTE1 (Account Type) of the natural account segment value in FND_FLEX_VALUES. If they differ (e.g., the natural account is now an 'Asset' but the combination remains 'Expense'), it flags the record for correction.
  • Flexfield Hierarchy: The query dynamically handles the number of segments defined in the user's Chart of Accounts (COA) structure.

Key Parameters

  • Chart of Accounts: The specific accounting structure to analyze.
  • Account Type: Filter to view only Assets, Liabilities, Expenses, Revenue, or Equity.
  • Show Misclassified Accounts: A boolean flag to trigger the logic that identifies discrepancies between segment attributes and combination attributes.
  • Segment Ranges: Allows filtering by specific companies, cost centers, or natural accounts.

Useful Links

© 2026 Enginatics