Search Results report_primary_key
Overview
The APPS.AP_EXPENSE_REPORT_HISTORY_V view is a Payables (AP) reporting object that consolidates expense report history for display within Oracle Internet Expenses (OIE). Its central purpose is to expose a unified, query-ready record set describing expense reports, their associated invoices, payment status, and the amounts owed to employees and corporate credit card providers. The view reconciles data held in the expense report header tables with the corresponding invoice and payment schedule records, so that an expense report can be tracked end to end from submission through invoicing and payment.
Its Status is VALID and its Owner/Schema is APPS, meaning it is a standard seeded database object rather than a custom one. It is designed for read access from reporting and self-service layers, particularly the Expense Report History page in OIE, which relies on this view as its data source. Because it selects from both expense and Payables tables, it abstracts the join logic required to present a single history row per expense report, shielding callers from needing to navigate the underlying base objects themselves.
Underlying Base Objects
The view draws its columns from a documented set of base objects. Expense report context is sourced from AP_EXPENSE_REPORT_HEADERS (via synonym). Invoice and payment detail originate from AP_INVOICES and AP_PAYMENT_SCHEDULES, with AP_LOOKUP_CODES supplying status and displayed-field values. Person and employee data are resolved through PER_PEOPLE_X, HR_PERSON_NAME, HR_GENERAL, HR_SECURITY, and FND_GLOBAL, while currency formatting and amount display are handled by the FND_CURRENCY_CACHE and ICX_AP_INVOICES_PKG packages. Additional logic comes from AP_WEB_DB_HR_INT_PKG, AP_WEB_OA_ACTIVE_PKG, and PO_VENDORS.
Join behavior explains key semantics. The view uses NVL over invoice and header amounts, so a report may still display amounts where an invoice is not yet fully available. The DOCUMENT_TYPE literal value 'INVOICE' signals that history rows correspond to invoice documents.
Key Columns
- REPORT_PRIMARY_KEY — aliased directly to AI.INVOICE_ID, the unique identifier used to select a specific report record.
- REPORT_HEADER_ID — the AP_EXPENSE_REPORT_HEADERS primary key for the report.
- INVOICE_ID, INVOICE_NUM, INVOICE_DATE — invoice identity and date for the associated payable.
- INVOICE_AMOUNT, GROSS_AMOUNT, AMOUNT_REMAINING — formatted currency amounts for the report and its payment state.
- AMT_DUE_CCARD_COMPANY, AMT_DUE_EMPLOYEE, WITHHELD_AMOUNT_CURRENCY_CODE — split of amounts due to corporate card versus employee.
- STATUS, VIEW_PAYABLES_FIELD, REPORT_NUMBER_FIELD — display-control flags such as FNDVIEWPAYABLESENABLED.
- EMPLOYEE_ID, FULL_NAME, SOURCE, DUE_DATE — employee context and origin of the report.
Common Use Cases and Queries
A frequent scenario is retrieving a single expense report by its report primary key, then inspecting its invoicing and payment status:
SELECT report_primary_key, report_header_id, invoice_num, gross_amount, status FROM ap_expense_report_history_v WHERE report_primary_key = :invoice_id;SELECT report_primary_key, invoice_num, amount_remaining, due_date FROM ap_expense_report_history_v WHERE source = 'WEBEXPENSE';SELECT report_primary_key, employee_id, full_name, invoice_amount FROM ap_expense_report_history_v WHERE status = 'PAID';
These queries support expense audit, payment reconciliation, and self-service history pages. In each, REPORT_PRIMARY_KEY remains the reliable selector for a targeted record.
-
View: AP_EXPENSE_REPORT_HISTORY_V
12.2.2
owner:APPS, object_type:VIEW, fnd_design_data:SQLAP.AP_EXPENSE_REPORT_HISTORY_V, object_name:AP_EXPENSE_REPORT_HISTORY_V, status:VALID, product: AP - Payables , description: Expense Report History in Oracle Internet Expenses is based on this view , implementation_dba_data: APPS.AP_EXPENSE_REPORT_HISTORY_V ,
-
VIEW: APPS.POS_AP_EXPENSE_REPORTS_V
12.2.2
owner:APPS, object_type:VIEW, fnd_design_data:PO.POS_AP_EXPENSE_REPORTS_V, object_name:POS_AP_EXPENSE_REPORTS_V, status:VALID,
-
VIEW: APPS.AP_EXPENSE_REPORT_HISTORY_V
12.1.1
-
VIEW: APPS.AP_EXPENSE_REPORT_HISTORY_V
12.2.2
owner:APPS, object_type:VIEW, fnd_design_data:SQLAP.AP_EXPENSE_REPORT_HISTORY_V, object_name:AP_EXPENSE_REPORT_HISTORY_V, status:VALID,
-
View: ICX_AP_EXPENSE_REPORTS_V
12.2.2
owner:APPS, object_type:VIEW, fnd_design_data:ICX.ICX_AP_EXPENSE_REPORTS_V, object_name:ICX_AP_EXPENSE_REPORTS_V, status:VALID, product: ICX - Oracle iProcurement , description: Employee Expense Reports Header View , implementation_dba_data: APPS.ICX_AP_EXPENSE_REPORTS_V ,
-
VIEW: APPS.POS_AP_EXPENSE_REPORTS_V
12.1.1
owner:APPS, object_type:VIEW, fnd_design_data:PO.POS_AP_EXPENSE_REPORTS_V, object_name:POS_AP_EXPENSE_REPORTS_V, status:VALID,
-
View: AP_EXPENSE_REPORT_HISTORY_V
12.1.1
owner:APPS, object_type:VIEW, fnd_design_data:SQLAP.AP_EXPENSE_REPORT_HISTORY_V, object_name:AP_EXPENSE_REPORT_HISTORY_V, status:VALID, product: AP - Payables , description: Expense Report History in Oracle Internet Expenses is based on this view , implementation_dba_data: APPS.AP_EXPENSE_REPORT_HISTORY_V ,
-
VIEW: APPS.AP_EXPENSE_REPORT_HISTORY_V
12.2.2
-
View: ICX_AP_EXPENSE_REPORTS_V
12.1.1
owner:APPS, object_type:VIEW, fnd_design_data:ICX.ICX_AP_EXPENSE_REPORTS_V, object_name:ICX_AP_EXPENSE_REPORTS_V, status:VALID, product: ICX - Oracle iProcurement , description: Employee Expense Reports Header View , implementation_dba_data: APPS.ICX_AP_EXPENSE_REPORTS_V ,
-
VIEW: APPS.ICX_AP_EXPENSE_REPORTS_V
12.1.1
owner:APPS, object_type:VIEW, fnd_design_data:ICX.ICX_AP_EXPENSE_REPORTS_V, object_name:ICX_AP_EXPENSE_REPORTS_V, status:VALID,
-
VIEW: APPS.ICX_AP_EXPENSE_REPORTS_V
12.2.2
owner:APPS, object_type:VIEW, fnd_design_data:ICX.ICX_AP_EXPENSE_REPORTS_V, object_name:ICX_AP_EXPENSE_REPORTS_V, status:VALID,
-
VIEW: APPS.AP_EXPENSE_REPORT_HISTORY_V
12.1.1
owner:APPS, object_type:VIEW, fnd_design_data:SQLAP.AP_EXPENSE_REPORT_HISTORY_V, object_name:AP_EXPENSE_REPORT_HISTORY_V, status:VALID,
-
View: POS_AP_EXPENSE_REPORTS_V
12.1.1
owner:APPS, object_type:VIEW, fnd_design_data:PO.POS_AP_EXPENSE_REPORTS_V, object_name:POS_AP_EXPENSE_REPORTS_V, status:VALID, product: PO - Purchasing , implementation_dba_data: APPS.POS_AP_EXPENSE_REPORTS_V ,
-
View: POS_AP_EXPENSE_REPORTS_V
12.2.2
owner:APPS, object_type:VIEW, fnd_design_data:PO.POS_AP_EXPENSE_REPORTS_V, object_name:POS_AP_EXPENSE_REPORTS_V, status:VALID, product: PO - Purchasing , implementation_dba_data: APPS.POS_AP_EXPENSE_REPORTS_V ,
-
VIEW: APPS.ICX_AP_EXPENSE_REPORTS_V
12.2.2
-
VIEW: APPS.POS_AP_EXPENSE_REPORTS_V
12.1.1
-
VIEW: APPS.ICX_AP_EXPENSE_REPORTS_V
12.1.1
-
VIEW: APPS.POS_AP_EXPENSE_REPORTS_V
12.2.2
-
eTRM - ICX Tables and Views
12.2.2
-
eTRM - ICX Tables and Views
12.1.1
-
eTRM - SQLAP Tables and Views
12.2.2
description: Set Distribution Table. ,
-
eTRM - SQLAP Tables and Views
12.1.1
description: Set Distribution Table. ,
-
eTRM - PO Tables and Views
12.1.1
description: Temporary table for tracking a receiving upgrade from Release 9 to Release 10 ,
-
eTRM - PO Tables and Views
12.2.2
description: Temporary table for tracking a receiving upgrade from Release 9 to Release 10 ,