Search Results pa_cost_dist_lines_ar




Overview

The PA_COST_DIST_LINES_AR table is a critical archive and purge object within the Oracle E-Business Suite (EBS) Projects module (PA). Its primary role is to serve as a historical repository for cost distribution line records that have been moved from the active transactional table, PA_COST_DISTRIBUTION_LINES, as part of data lifecycle management. This archiving process is essential for maintaining performance in the live system by purging aged transactional data while preserving it for compliance, historical reporting, and audit trail purposes. The table is a structural mirror of its main counterpart, inheriting the same column definitions and relationships to ensure data integrity is maintained post-migration.

Key Information Stored

As an archive table, PA_COST_DIST_LINES_AR stores identical data to the main PA_COST_DISTRIBUTION_LINES table at the point of archival. This includes detailed records of how project costs—such as labor, expenses, and other transactions—are distributed across project tasks, expenditure types, and other accounting flexfields. Key columns typically found in such a table include identifiers for the project, task, expenditure item, line number, and the distributed amounts. Crucially, it also holds the ORG_LABOR_SCH_RULE_ID, which is a foreign key linking to labor scheduling rules. The exact column specifications should be referenced from the main table's comments, as indicated in the provided metadata.

Common Use Cases and Queries

The primary use case for this table is historical analysis and reporting on cost distributions that are no longer in the active system. Auditors or financial analysts may query this table to investigate past project costing without impacting the performance of current operations. Common queries involve summarizing archived costs by project or period, or tracing the history of specific expenditure items. A sample SQL pattern for such reporting would join this archive table to other archived or static reference data.

SELECT ar.project_id,
       SUM(ar.raw_cost) archived_raw_cost
FROM pa_cost_dist_lines_ar ar
WHERE ar.gl_period = 'JAN-2020'
GROUP BY ar.project_id;

Direct data manipulation (DML) on this archive table is rare and typically restricted to administrative purge activities, as the data is intended to be a read-only historical record.

Related Objects

PA_COST_DIST_LINES_AR maintains defined relationships with other EBS objects to preserve referential integrity for archived data. Based on the provided foreign key metadata:

  • PA_ORG_LABOR_SCH_RULE: The table is linked via the foreign key column ORG_LABOR_SCH_RULE_ID. This relationship ensures that the archived cost distribution lines retain their association with the organizational labor scheduling rules that were applied at the time of the original transaction.

Its primary relationship is, logically, with the main transactional table PA_COST_DISTRIBUTION_LINES, from which its data is sourced. It may also be referenced by archive versions of other related tables, such as PA_EXPENDITURE_ITEMS_AR, forming a complete archived dataset for project transactions.