Search Results pa_cc_dist_lines_n2




Overview

PA.PA_CC_DIST_LINES_ALL is the core distribution-line table in the Oracle EBS Projects (PA) module that stores the accounting distributions generated by the cross-charge and transfer-price process. Each row represents a single debit or credit line produced when an expenditure is transferred between projects, tasks, or organizations using a cross-charge code, along with the transfer price, exchange-rate, and rate-type details used to value that transfer. The table is registered as a multi-org view (via ORG_ID) and resides in the APPS_TS_TX_DATA tablespace in both 12.1.1 and 12.2.2.

From a Data Vault modeling perspective, the mined FK structure classifies this object as satellite-leaning: it primarily carries descriptive and transactional attributes about a parent expenditure item rather than acting as an independent hub or as a pure many-to-many link.

Key Information Stored

The surrogate primary key is CC_DIST_LINE_ID. Two unique indexes define business-key candidates: PA_CC_DIST_LINES_U1 on CC_DIST_LINE_ID, and PA_CC_DIST_LINES_U2 on the concatenation (EXPENDITURE_ITEM_ID, LINE_TYPE, LINE_NUM). The presence of U2 is significant because a user searching on "pa_cc_dist_lines_u2" is typically tracing a uniqueness violation or examining how a single expenditure item is partitioned into distribution lines by type and sequence.

Common Use Cases and Queries

Typical scenarios include reconciling cross-charge distributions to expenditure items, diagnosing transfer-to-GL failures, and reporting transfer-price amounts by project or task. The nonunique index PA_CC_DIST_LINES_N2 (REQUEST_ID, TRANSFER_STATUS_CODE) supports status-based batch retrieval, while PA_CC_DIST_LINES_N1 (PROJECT_ID, TASK_ID) supports project reporting.

  • Retrieve all distribution lines for an expenditure item, honoring the U2 key: SELECT * FROM pa_cc_dist_lines_all WHERE expenditure_item_id = :item_id ORDER BY line_type, line_num;
  • Find untransferred or rejected lines: SELECT * FROM pa_cc_dist_lines_all WHERE transfer_status_code IN ('P','R') AND request_id = :request_id;
  • Reconcile to GL accounts via joins on DR/CR_CODE_COMBINATION_ID to GL_CODE_COMBINATIONS.
  • Investigate U2 duplicate-key errors by grouping on (EXPENDITURE_ITEM_ID, LINE_TYPE, LINE_NUM) with HAVING COUNT(*) > 1.

Related Objects

Key dependencies and referencing objects, with join columns, include: