Search Results current_npw_flag
Overview
APPS.PA_EXPENDITURES_V is a reporting and integration view in Oracle E-Business Suite (12.1.1 and 12.2.2) that presents the contents of the PA_EXPENDITURES table enriched with descriptive attributes for the person who incurred each expenditure. It is owned by the APPS schema and is intended primarily for operational reporting, extract routines, and downstream integration where a human-readable employee name and employee number are required alongside the raw expenditure record.
The view is especially notable for the way it resolves the identity of the incurring party. Because expenditures can be incurred by either a regular employee or a non-payroll worker (NPW), the view introduces conditional logic so that the correct identifier is returned depending on whether the person is flagged as an employee or as a non-payroll worker.
Underlying Base Objects
The documented referenced base objects for the view are:
- PA_EXPENDITURES (synonym) — the primary expenditure table, aliased as E, supplying all expenditure columns.
- PER_ALL_PEOPLE_F (synonym) — the people table, aliased as p, supplying the person's full name, employee number, and the current employee / non-payroll worker flags.
- PA_EXPENDITURES_UTILS (package) — the utility package, invoked as pa_expenditures_utils.getorgtlname, used to derive the organization name from the incurred-by organization identifier.
Key Columns
The view exposes the full set of expenditure columns, including EXPENDITURE_ID, EXPENDITURE_STATUS_CODE, EXPENDITURE_ENDING_DATE, EXPENDITURE_CLASS_CODE, INCURRED_BY_PERSON_ID, INCURRED_BY_ORGANIZATION_ID, EXPENDITURE_GROUP, CONTROL_TOTAL_AMOUNT, ENTERED_BY_PERSON_ID, DESCRIPTION, INITIAL_SUBMISSION_DATE, the functional and accounting currency attributes (denom_currency_code, acct_currency_code, acct_rate_date, acct_rate_type, acct_exchange_rate), audit columns, and the ten descriptive flexfield attribute columns. Several derived columns are added:
- INCURRED_BY_EMPLOYEE_NAME — the person's full name from PER_ALL_PEOPLE_F.
- INCURRED_BY_EMPLOYEE_NUMBER — a decode that returns the employee_number when current_employee_flag is 'Y', otherwise the npw_number when current_npw_flag is 'Y', otherwise NULL.
- INcurred_by_organization_id name — resolved via pa_expenditures_utils.getorgtlname.
The join uses an outer join to PER_ALL_PEOPLE_F on person_id, with row filtering that selects the most recent effective row for the person where the relevant flag (current_employee_flag or current_npw_flag, selected via person_type = 'CWK') equals 'Y' and the effective date range brackets the expenditure ending date.
Common Use Cases and Queries
Typical use cases include expenditure extracts for interfaces, audit reports identifying the incurring worker, and reporting that must display a friendly name and identifier rather than raw IDs.
SELECT expenditure_id,
expenditure_ending_date,
incurred_by_employee_name,
incurred_by_employee_number,
control_total_amount
FROM apps.pa_expenditures_v
WHERE expenditure_status_code = 'APPROVED';
Because the view performs a correlated subquery against PER_ALL_PEOPLE_F for effective-dated row resolution, performance can degrade on large volumes; filtering by expenditure_ending_date or expenditure_id is advisable. The presence of current_npw_flag logic means the view correctly handles conting
-
VIEW: APPS.PA_EXPENDITURES_V
12.1.1
-
VIEW: APPS.PA_EXPENDITURES_V
12.2.2
-
VIEW: APPS.HR_SUP_BASE_V
12.2.2
-
VIEW: APPS.HR_SUP_BASE_V
12.1.1
-
VIEW: APPS.EGO_PEOPLE_V
12.1.1
-
APPS.PA_PAXPCPRS_XMLP_PKG SQL Statements
12.2.2
-
VIEW: APPS.HR_FNDSCAUS_PERSON_LOV_V
12.1.1
-
APPS.PA_PAXPCPRS_XMLP_PKG SQL Statements
12.1.1
-
VIEW: APPS.HR_FNDSCAUS_PERSON_LOV_V
12.2.2
-
VIEW: APPS.EGO_PEOPLE_V
12.2.2
-
APPS.PA_PAXPCIFS_XMLP_PKG SQL Statements
12.2.2
-
VIEW: APPS.PO_BUYERS_VAL_V
12.1.1
-
APPS.PA_PAXPCIFS_XMLP_PKG SQL Statements
12.1.1
-
APPS.PA_PAXAUMTC_XMLP_PKG SQL Statements
12.2.2
-
VIEW: APPS.PO_BUYERS_VAL_V
12.2.2
-
APPS.PA_PAXPCIDF_XMLP_PKG SQL Statements
12.1.1
-
View: PA_EXPENDITURES_V
12.2.2
owner:APPS, object_type:VIEW, fnd_design_data:PA.PA_EXPENDITURES_V, object_name:PA_EXPENDITURES_V, status:VALID, product: PA - Projects , description: 10SC Only , implementation_dba_data: APPS.PA_EXPENDITURES_V ,
-
VIEW: APPS.PA_BILL_RATES_EMP
12.2.2
-
VIEW: APPS.HRI_CL_PER_SUP_HX_V
12.1.1
-
APPS.PA_PAXPCIDF_XMLP_PKG SQL Statements
12.2.2
-
APPS.HR_APPRAISALS_UTIL_SS SQL Statements
12.2.2
-
VIEW: APPS.HR_EMPLOYEES_CURRENT_V
12.2.2
-
View: EGO_PEOPLE_V
12.1.1
owner:APPS, object_type:VIEW, fnd_design_data:EGO.EGO_PEOPLE_V, object_name:EGO_PEOPLE_V, status:VALID, product: EGO - Advanced Product Catalog , description: This view contains the people information , implementation_dba_data: APPS.EGO_PEOPLE_V ,
-
View: EGO_PEOPLE_V
12.2.2
owner:APPS, object_type:VIEW, fnd_design_data:EGO.EGO_PEOPLE_V, object_name:EGO_PEOPLE_V, status:VALID, product: EGO - Advanced Product Catalog , description: This view contains the people information , implementation_dba_data: APPS.EGO_PEOPLE_V ,
-
VIEW: APPS.HR_FNDSCAUS_PERSON_LOV_V
12.2.2
owner:APPS, object_type:VIEW, fnd_design_data:PER.HR_FNDSCAUS_PERSON_LOV_V, object_name:HR_FNDSCAUS_PERSON_LOV_V, status:VALID,
-
VIEW: APPS.HRI_CL_PER_SUP_HX_V
12.2.2
-
View: PA_EXPENDITURES_V
12.1.1
owner:APPS, object_type:VIEW, fnd_design_data:PA.PA_EXPENDITURES_V, object_name:PA_EXPENDITURES_V, status:VALID, product: PA - Projects , description: 10SC Only , implementation_dba_data: APPS.PA_EXPENDITURES_V ,
-
APPS.PA_PAXMGPBS_XMLP_PKG SQL Statements
12.1.1
-
APPS.PA_PAXMGPBS_XMLP_PKG SQL Statements
12.2.2
-
VIEW: APPS.PO_EMPLOYEES_CURRENT_X
12.1.1
-
APPS.PA_PAXMGPSD_XMLP_PKG SQL Statements
12.1.1
-
VIEW: APPS.PER_WORKFORCE_V2
12.1.1
owner:APPS, object_type:VIEW, fnd_design_data:PER.PER_WORKFORCE_V2, object_name:PER_WORKFORCE_V2, status:VALID,
-
VIEW: APPS.HR_FNDSCAUS_PERSON_LOV_V
12.1.1
owner:APPS, object_type:VIEW, fnd_design_data:PER.HR_FNDSCAUS_PERSON_LOV_V, object_name:HR_FNDSCAUS_PERSON_LOV_V, status:VALID,
-
VIEW: APPS.PER_WORKFORCE_V
12.2.2
owner:APPS, object_type:VIEW, object_name:PER_WORKFORCE_V, status:VALID,
-
VIEW: APPS.PO_EMPLOYEES_CURRENT_X
12.2.2
-
VIEW: APPS.PER_WORKFORCE_V2
12.2.2
owner:APPS, object_type:VIEW, fnd_design_data:PER.PER_WORKFORCE_V2, object_name:PER_WORKFORCE_V2, status:VALID,
-
VIEW: HR.PER_ALL_PEOPLE_F#
12.2.2
-
APPS.PA_PAXMGPSD_XMLP_PKG SQL Statements
12.2.2
-
VIEW: APPS.PER_WORKFORCE_V
12.1.1
owner:APPS, object_type:VIEW, object_name:PER_WORKFORCE_V, status:VALID,
-
VIEW: APPS.HR_EMPLOYEES_CURRENT_V
12.1.1
-
APPS.PA_PAXBUBSS_XMLP_PKG SQL Statements
12.1.1
-
APPS.PA_PAXBUBSS_XMLP_PKG SQL Statements
12.2.2
-
VIEW: APPS.HR_SUP_LOV_V
12.2.2
owner:APPS, object_type:VIEW, fnd_design_data:PER.HR_SUP_LOV_V, object_name:HR_SUP_LOV_V, status:VALID,
-
VIEW: APPS.PER_ALL_WORKFORCE_V
12.1.1
owner:APPS, object_type:VIEW, fnd_design_data:PER.PER_ALL_WORKFORCE_V, object_name:PER_ALL_WORKFORCE_V, status:VALID,
-
VIEW: APPS.HR_SUP_LOV_V
12.1.1
owner:APPS, object_type:VIEW, fnd_design_data:PER.HR_SUP_LOV_V, object_name:HR_SUP_LOV_V, status:VALID,
-
VIEW: APPS.PER_ALL_WORKFORCE_V
12.2.2
owner:APPS, object_type:VIEW, fnd_design_data:PER.PER_ALL_WORKFORCE_V, object_name:PER_ALL_WORKFORCE_V, status:VALID,
-
APPS.PA_PAXINGEN_XMLP_PKG SQL Statements
12.1.1
-
APPS.PA_PAXINGEN_XMLP_PKG SQL Statements
12.2.2
-
VIEW: APPS.PER_PEOPLE_X
12.2.2
-
View: PER_ALL_PEOPLE
12.1.1
owner:APPS, object_type:VIEW, fnd_design_data:PER.PER_ALL_PEOPLE, object_name:PER_ALL_PEOPLE, status:VALID, product: PER - Human Resources , description: Date-effective view. , implementation_dba_data: APPS.PER_ALL_PEOPLE ,