Search Results pafv_events




Overview

PAFV_EVENTS is a read-only business view owned by the APPS schema in Oracle E-Business Suite, defined within the Projects (PA) module. Its purpose is to expose information about project events — the revenue and invoice generating transactions recorded against a project — in a denormalized, reporting-friendly form. The view presents event-level detail (amounts, dates, numbering, event type) already joined to the parent project, task, organization, and budget type reference data, so that revenue recognition and billing analysis can be performed without reconstructing the base table joins each time.

The view is documented as a business view, meaning it is intended for reporting, inquiry, and integration consumption rather than for transactional maintenance. Consistent with this role, the definition is declared WITH READ ONLY, so no DML is permitted through the view. It is commonly surfaced through BI Publisher reports, Oracle Discoverer workbooks, custom concurrent programs, and outbound interfaces that extract project event data into external revenue or billing systems.

Underlying Base Objects

PAFV_EVENTS is defined over six base objects, all referenced through APPS synonyms: PA_EVENTS, PA_TASKS (outer-joined), PA_PROJECTS_ALL, PA_EVENT_TYPES, PER_ALL_ORGANIZATION_UNITS (documented in ETRM 12.2.2 as HR_ALL_ORGANIZATION_UNITS), and PA_BUDGET_TYPES (aliased twice, once for the cost budget type and once for the revenue budget type, both outer-joined). The primary driving table is PA_EVENTS; the remaining objects provide descriptive and validation context.

Key join conditions are PE.PROJECT_ID = PPA.PROJECT_ID, PE.TASK_ID = PT.TASK_ID (+), PE.EVENT_TYPE = PET.EVENT_TYPE, PE.ORGANIZATION_ID = POU.ORGANIZATION_ID, and outer joins to PA_BUDGET_TYPES on the audit cost and audit revenue budget type codes. Critically, the view enforces operating unit security through the predicate '_SEC:PPA.ORG_ID' IS NOT NULL, which the EBS security framework rewrites at runtime to restrict rows to the organizations accessible to the current responsibility. The view therefore behaves differently depending on the MO or security profile in effect.

Key Columns

  • EVENT_ID, EVENT_NUM, EVENT_NUM_REVERSED — the unique event identifier and the human-readable event number, including the reversal reference where an event has been reversed.
  • PROJECT_ID, PROJECT_NAME, PROJECT_NUMBER (SEGMENT1) — the owning project's identifier, name, and project number.
  • TASK_ID — the task against which the event was raised, where applicable; outer-joined, so null for project-level events.
  • REVENUE_AMOUNT, BILL_AMOUNT — the revenue and billing amounts associated with the event, the core financial measures for revenue recognition and invoicing analysis.
  • COMPLETION_DATE — the date the event was completed, used for period-based recognition and aging.
  • EVENT_TYPE, EVENT_TYPE_DESCRIPTION — the event type code and its description from PA_EVENT_TYPES.
  • AUDIT_AMOUNT1 through AUDIT_AMOUNT10 — the configurable audit amount columns from PA_EVENTS, used for user-defined or site-specific event calculations.
  • AUDIT_COST_BUDGET_TYPE, AUDIT_REV_BUDGET_TYPE — descriptive budget type values joined from PA_BUDGET_TYPES for the cost and revenue audit columns.
  • ORG_ID, ORGANIZATION_ID, ORGANIZATION_NAME — the operating unit and the organization unit owning the event, from PER_ALL_ORGANIZATION_UNITS.
  • BILL_HOLD_FLAG, REVENUE_DISTRIBUTED_FLAG — exposed through EBS lookup translation expressions, yielding YES/NO meanings indicating whether billing is on hold and whether revenue has been distributed.
  • DESCRIPTION — the descriptive flexfield value for the event, exposed via the PA_EVENTS descriptive flexfield.
  • AUDIT columns and standard WHO columnsLAST_UPDATE_DATE, LAST_UPDATED_BY, CREATION_DATE, and CREATED_BY for change tracking.

Common Use Cases and Queries

Typical uses include revenue and billing reconciliation, event backlog reporting, unbilled or unearned event analysis, and periodic extracts feeding downstream revenue systems. The following query lists revenue-generating events for a project within a date range:

SELECT project_number, project_name, event_num, event_type_description,
       completion_date, revenue_amount, bill_amount, organization_name
FROM   apps.pafv_events
WHERE  project_id = :p_project_id
AND    completion_date BETWEEN :p_from_date AND :p_to_date
ORDER BY completion_date, event_num;

To identify events whose revenue has not yet been distributed, or where billing is on hold, the lookup-translated flags can be filtered directly:

SELECT event_num, project_number, revenue_amount, bill_amount,
       revenue_distributed_flag, bill_hold_flag
FROM   apps.pafv_events
WHERE  revenue_distributed_flag = 'NO'
AND    org_id = :p_org_id;

Because the view enforces operating unit security, queries should be executed from a responsibility whose security profile grants access to the relevant organizations, and ORG_ID predicates should be applied explicitly for predictable results in multi-org environments.