Search Results GL_CODE_COMBINATIONS
Overview
The GL_CODE_COMBINATIONS table is the foundational data object for the chart of accounts within Oracle E-Business Suite General Ledger (GL). It stores every unique, valid account combination, known by its unique identifier, CODE_COMBINATION_ID (CCID). Each row represents a specific combination of segment values (e.g., Company, Department, Account) as defined by the organization's accounting flexfield structure. This table is central to all financial transactions across Oracle EBS, as the CCID is referenced by virtually all subledger and general ledger transaction lines to denote the account being debited or credited. Its integrity is paramount for accurate financial reporting.
Key Information Stored
The table's structure directly reflects the configured accounting flexfield. Its primary columns include the system-generated surrogate key, CODE_COMBINATION_ID, and the composite business key that enforces uniqueness for each account combination. As per the provided metadata, this unique key comprises:
- CHART_OF_ACCOUNTS_ID: Links to the specific chart of accounts structure.
- SEGMENT1 through SEGMENT30: Hold the actual values for each segment of the accounting flexfield. Only the number of segments defined in the flexfield structure are populated and used in the unique constraint.
- TEMPLATE_ID: A foreign key to GL_SUMMARY_TEMPLATES, indicating if the combination is a template account used for summary account generation.
- REVALUATION_ID: A foreign key to GL_REVALUATIONS, linking to revaluation setup information for the account.
Additional columns not listed in the excerpt but critical in practice include ENABLED_FLAG (to activate/inactivate the combination), DETAIL_POSTING_ALLOWED_FLAG, and various descriptive fields like DESCRIPTION.
Common Use Cases and Queries
The primary use case is validating and retrieving account combinations for transaction posting and reporting. A frequent query involves joining with the GL_SETS_OF_BOOKS or GL_LEDGERS table and the flexfield value tables (e.g., FND_FLEX_VALUES) to translate CCIDs into meaningful segment descriptions for reports. For example, a standard query to list active account combinations with descriptions is:
SELECT gcc.code_combination_id, gcc.segment1, gcc.segment2, gcc.segment3, gcc.description
FROM gl.gl_code_combinations gcc
WHERE gcc.enabled_flag = 'Y'
AND gcc.chart_of_accounts_id = :coa_id
ORDER BY gcc.segment1, gcc.segment2, gcc.segment3;
Another critical scenario is identifying the usage of a specific CCID across subledgers before disabling it, requiring joins to various distribution tables in AP, AR, FA, and GL. Administrators also query this table to audit and maintain the chart of accounts, ensuring no duplicate combinations exist.
Related Objects
GL_CODE_COMBINATIONS is one of the most referenced tables in Oracle EBS. The provided metadata highlights its foreign key relationship with GL_SUMMARY_TEMPLATES. Crucially, it is the foreign key target for numerous critical columns across application modules, as indicated by the extensive list of foreign keys from tables like AP_BANK_ACCOUNTS_ALL. Key dependent objects include:
- GL_JE_LINES: Every journal entry line stores a CODE_COMBINATION_ID.
- Subledger Distribution Tables: Such as AP_INVOICE_DISTRIBUTIONS_ALL, RA_CUST_TRX_LINE_GL_DIST_ALL, and FA_DISTRIBUTION_HISTORY.
- Setup Tables: GL_LEDGERS references the chart of accounts ID, which governs valid combinations.
- Key Views: GL_CODE_COMBINATIONS_KFV provides a flexfields-aware view of the data.
- APIs: The FND_FLEX_KEYVAL API is used for programmatic validation and creation of code combinations.
-
Table: GL_CODE_COMBINATIONS
12.1.1
owner:GL, object_type:TABLE, fnd_design_data:SQLGL.GL_CODE_COMBINATIONS, object_name:GL_CODE_COMBINATIONS, status:VALID, product: GL - General Ledger , description: Account combinations , implementation_dba_data: GL.GL_CODE_COMBINATIONS ,
-
Table: GL_CODE_COMBINATIONS
12.2.2
owner:GL, object_type:TABLE, fnd_design_data:SQLGL.GL_CODE_COMBINATIONS, object_name:GL_CODE_COMBINATIONS, status:VALID, product: GL - General Ledger , description: Account combinations , implementation_dba_data: GL.GL_CODE_COMBINATIONS ,
-
APPS.JA_JAINBOER_XMLP_PKG dependencies on GL_CODE_COMBINATIONS
12.1.1
-
APPS.WSMPINVL dependencies on GL_CODE_COMBINATIONS
12.1.1
-
APPS.PO_WF_PO_ACCRUAL_ACC dependencies on GL_CODE_COMBINATIONS
12.1.1
-
APPS.ZX_TAX_RECOVERY_PKG dependencies on GL_CODE_COMBINATIONS
12.1.1
-
APPS.FARX_RP dependencies on GL_CODE_COMBINATIONS
12.1.1
-
APPS.FA_GCCID_PKG dependencies on GL_CODE_COMBINATIONS
12.1.1
-
APPS.CSTPPCIT dependencies on GL_CODE_COMBINATIONS
12.1.1
-
APPS.AP_VENDOR_PUB_PKG dependencies on GL_CODE_COMBINATIONS
12.1.1
-
APPS.CST_UTILITY_PUB dependencies on GL_CODE_COMBINATIONS
12.1.1
-
APPS.GL_CODE_COMBINATIONS_PKG dependencies on GL_CODE_COMBINATIONS
12.1.1
-
APPS.PA_TRX_IMPORT dependencies on GL_CODE_COMBINATIONS
12.1.1
-
APPS.AP_MATCHING_PKG dependencies on GL_CODE_COMBINATIONS
12.1.1
-
APPS.FARX_RC dependencies on GL_CODE_COMBINATIONS
12.1.1
-
APPS.CE_JE_CREATION dependencies on GL_CODE_COMBINATIONS
12.1.1
-
APPS.FUN_TRX_ENTRY_UTIL dependencies on GL_CODE_COMBINATIONS
12.1.1
-
APPS.XLA_CONTROL_ACCOUNTS_PKG dependencies on GL_CODE_COMBINATIONS
12.1.1
-
APPS.PO_CREATE_REQUISITION_SV dependencies on GL_CODE_COMBINATIONS
12.1.1
-
APPS.FA_LEASE_PVT dependencies on GL_CODE_COMBINATIONS
12.1.1
-
APPS.PSB_WS_ACCT2 dependencies on GL_CODE_COMBINATIONS
12.1.1
-
APPS.CST_SLA_UPDATE_PKG dependencies on GL_CODE_COMBINATIONS
12.1.1
-
APPS.JAI_AP_MATCH_TAX_PKG dependencies on GL_CODE_COMBINATIONS
12.1.1
-
APPS.AP_CALC_WITHHOLDING_PKG dependencies on GL_CODE_COMBINATIONS
12.1.1
-
APPS.FV_PURGED_TREASURY_SYMBOLS dependencies on GL_CODE_COMBINATIONS
12.1.1
-
APPS.AP_OTHR_CHRG_MATCH_PKG dependencies on GL_CODE_COMBINATIONS
12.1.1
-
APPS.ARP_INSERT_LINE_COVER dependencies on GL_CODE_COMBINATIONS
12.1.1
-
APPS.JA_AU_CCID_PKG dependencies on GL_CODE_COMBINATIONS
12.1.1
-
APPS.FV_FACTS1_PKG dependencies on GL_CODE_COMBINATIONS
12.1.1
-
APPS.FV_FACTS1_PKG dependencies on GL_CODE_COMBINATIONS
12.1.1
-
APPS.GCS_IMPACT_WRITER_PKG dependencies on GL_CODE_COMBINATIONS
12.1.1
-
APPS.FV_SF133_NOYEAR dependencies on GL_CODE_COMBINATIONS
12.1.1
-
APPS.AP_TURNOVER_RPT_PKG dependencies on GL_CODE_COMBINATIONS
12.1.1
-
APPS.FV_STATUS_OF_FUNDS_PKG dependencies on GL_CODE_COMBINATIONS
12.1.1
-
APPS.JAI_RCV_EXCISE_PROCESSING_PKG dependencies on GL_CODE_COMBINATIONS
12.1.1
-
APPS.RCV_SLA_MRC_UPDATE_PKG dependencies on GL_CODE_COMBINATIONS
12.1.1
-
APPS.JA_JAINJVR_XMLP_PKG dependencies on GL_CODE_COMBINATIONS
12.1.1
-
APPS.XLA_UPGRADE_PUB dependencies on GL_CODE_COMBINATIONS
12.1.1
-
APPS.PSB_BUDGET_ACCOUNT_PVT dependencies on GL_CODE_COMBINATIONS
12.1.1
-
APPS.GL_ADI_ACCT_TYPE_CONV_PKG dependencies on GL_CODE_COMBINATIONS
12.1.1
-
APPS.ICX_PO_REQ_ACCT2 dependencies on GL_CODE_COMBINATIONS
12.1.1
-
APPS.PO_REQIMP_PKG dependencies on GL_CODE_COMBINATIONS
12.1.1
-
APPS.JL_BR_AR_BANK_ACCT_PKG dependencies on GL_CODE_COMBINATIONS
12.1.1
-
APPS.ARP_PROCESS_DEBIT_MEMO dependencies on GL_CODE_COMBINATIONS
12.1.1
-
APPS.FV_FACTS_TBAL_TRX dependencies on GL_CODE_COMBINATIONS
12.1.1
-
APPS.FA_CUA_HR_RETIREMENTS_PKG dependencies on GL_CODE_COMBINATIONS
12.1.1
-
APPS.PO_VAL_DISTRIBUTIONS2 dependencies on GL_CODE_COMBINATIONS
12.1.1
-
APPS.PA_ACC_GEN_WF_PKG dependencies on GL_CODE_COMBINATIONS
12.1.1
-
APPS.FUN_UTIL dependencies on GL_CODE_COMBINATIONS
12.1.1
-
APPS.GL_BUDGET_UTILS_PKG dependencies on GL_CODE_COMBINATIONS
12.1.1