Search Results pa_expenditure_comments




Overview

PA_EXPENDITURE_COMMENTS is a Projects (PA) module table in Oracle E-Business Suite 12.1.1 and 12.2.2 that stores free-text comments attached to expenditure items. These comments explain or further describe the work performed against a project, task, or award, and are typically entered by users during expenditure entry, expense report submission, or timecard processing. Because a single expenditure item can carry multiple sequenced comments, the table functions as a detail-level narrative store rather than a master record.

In Data Vault modeling terms, the mined foreign-key structure classifies PA_EXPENDITURE_COMMENTS as satellite-leaning. It hangs off the PA_EXPENDITURE_ITEMS_ALL hub via EXPENDITURE_ITEM_ID and extends that entity with descriptive, non-key context (the comment text itself plus audit attributes). This is consistent with its role: it never independently identifies an expenditure item, and it derives its identity entirely from the parent item.

Key Information Stored

The table is defined in the PA schema with twelve documented columns. The most significant are described below, separating the surrogate primary key from business-key candidates.

The surrogate primary key is PA_EXPENDITURE_COMMENTS_PK, defined on (EXPENDITURE_ITEM_ID, LINE_NUMBER). The unique index PA_EXPENDITURE_COMMENTS_U1 carries the same pair, making (EXPENDITURE_ITEM_ID, LINE_NUMBER) the definitive business-key candidate: an item and its comment line number uniquely determine a row. The single foreign key, PA_EXPENDITURE_COMMENTS.EXPENDITURE_ITEM_ID → PA_EXPENDITURE_ITEMS_ALL, enforces that every comment is anchored to a valid expenditure item.

Common Use Cases and Queries

Typical uses include retrieving all comments for an expenditure item, auditing who entered narrative text, and reporting on comments by project or date. A representative query joins the parent item table:

  • Retrieve comments for one item: SELECT LINE_NUMBER, EXPENDITURE_COMMENT FROM PA_EXPENDITURE_COMMENTS WHERE EXPENDITURE_ITEM_ID = :item_id ORDER BY LINE_NUMBER;
  • Audit trail: select CREATED_BY, CREATION_DATE, LAST_UPDATED_BY, LAST_UPDATE_DATE to trace authoring.
  • Project-level reporting: join PA_EXPENDITURE_COMMENTS to PA_EXPENDITURE_ITEMS_ALL on EXPENDITURE_ITEM_ID, then to project/task tables, filtering by EXPENDITURE_COMMENT for keyword analysis.
  • Integration extracts: use REQUEST_ID / PROGRAM_ID to identify comments generated by specific concurrent processes.

Because the table is detail-level and append-oriented, reporting queries should always order by LINE_NUMBER to preserve the intended comment sequence.

Related Objects

The following objects are most significant to working with PA_EXPENDITURE_COMMENTS, based on the documented FK/PK relationships:

  • PA_EXPENDITURE_ITEMS_ALL — Parent table; joined on EXPENDITURE_ITEM_ID. The FK from PA_EXPENDITURE_COMMENTS points here.
  • PA_EXPENDITURE_ITEMS_ALL related project/task columns — used to roll comments up to a project or task for reporting.
  • Expenditure entry and expense report APIs that accept comment text and populate this table.
  • Concurrent programs identified by PROGRAM_ID / REQUEST_ID that write comment rows.
  • Projects reporting views that surface expenditure narrative alongside item amounts.

With only one documented foreign key, PA_EXPENDITURE_COMMENTS remains tightly coupled to PA_EXPENDITURE_ITEMS_ALL, and its satellite classification reflects that dependency.