Search Results pa_segment_rule_pairings_all




Overview

The PA_SEGMENT_RULE_PAIRINGS_ALL table is a core configuration table within the Oracle E-Business Suite Projects module (PA). It serves as the central repository for implementation-defined assignments of AutoAccounting rules to specific segments of the Accounting Flexfield. Its primary role is to govern the automated derivation of accounting code combinations (e.g., for revenue, cost, encumbrance accounts) during transaction processing in Projects. By storing the linkage between a transaction function, a specific accounting segment, and a derivation rule, this table enables the system to dynamically build accurate and compliant account numbers based on project and transaction attributes, which is fundamental to financial integrity and reporting.

Key Information Stored

The table stores the pairing relationships that define the AutoAccounting logic. Its composite primary key underscores the granularity of these assignments, which are specific to an application, a chart of accounts structure, an organization, and a transaction function. Key columns include APPLICATION_ID (identifying the EBS product), ID_FLEX_CODE and ID_FLEX_NUM (identifying the Accounting Flexfield structure), and SEGMENT_NUM (the specific segment position being controlled). The FUNCTION_CODE and FUNCTION_TRANSACTION_CODE columns pinpoint the exact transaction type or event, such as generating revenue or incurring labor cost. The critical RULE_ID column holds the foreign key to the PA_RULES table, specifying which derivation rule (e.g., based on project type, task, expenditure type) is applied to populate the designated segment for that transaction.

Common Use Cases and Queries

The primary use case is the analysis and troubleshooting of AutoAccounting setups. Implementers and functional consultants query this table to verify rule assignments, diagnose account generation issues, or document configurations. A typical query joins to related setup tables to produce a human-readable summary of the AutoAccounting map.

  • Sample Query to Review Assignments:
    SELECT psrpa.segment_num,
    psrpa.function_code,
    psrpa.function_transaction_code,
    pr.rule_name,
    fifsv.segment_name
    FROM pa_segment_rule_pairings_all psrpa,
    pa_rules pr,
    fnd_id_flex_segments_vl fifsv
    WHERE psrpa.rule_id = pr.rule_id
    AND psrpa.application_id = fifsv.application_id
    AND psrpa.id_flex_code = fifsv.id_flex_code
    AND psrpa.id_flex_num = fifsv.id_flex_num
    AND psrpa.segment_num = fifsv.segment_num
    AND psrpa.org_id = 123;
  • Reporting Use Case: Generating a cross-reference report showing which rule drives each segment (e.g., Company, Cost Center, Account) for critical transaction functions like "Revenue" or "Labor Cost".

Related Objects

This table is a nexus in the AutoAccounting schema, with key dependencies as indicated by its foreign keys. PA_RULES (via RULE_ID) stores the definition of the derivation logic itself. PA_FUNCTION_TRANSACTIONS_ALL provides the valid list of transaction functions and codes. FND_ID_FLEX_STRUCTURES defines the Accounting Flexfield structure (ID_FLEX_NUM) to which the pairings are attached. In application logic, this table is primarily read by the AutoAccounting engine within the Oracle Projects accounting process, which references these pairings to construct the full code combination for each accounting line.