Search Results ap_view_prepays_fr_prepay_v
Overview
AP_VIEW_PREPAYS_FR_PREPAY_V is a Payables (AP) reporting view owned by the APPS schema in Oracle E-Business Suite 12.1.1 and 12.2.2. Its name and definition indicate that it surfaces prepayment-related invoice line activity associated with France localization requirements, and the ETRM records it with a status of VALID and a description of "Retrofitted." In practice, the view consolidates data about prepayment application lines — the negative-amount invoice lines generated when a prepayment is applied to a standard invoice — so that reporting, reconciliation, and localization extracts can retrieve prepay application detail without navigating the underlying base tables directly.
The view is primarily a read-only reporting and integration object. It joins invoice headers, invoice lines, supplier data, purchasing data, and receiving data so that a single query can return the applied prepayment amount, the tax applied, and the associated document references.
Underlying Base Objects
The documented base objects underlying this view are:
- AP_INVOICES_ALL — invoice header information.
- AP_INVOICE_LINES — invoice line detail, including prepay lines.
- AP_INVOICE_DISTRIBUTIONS — invoice distribution accounting detail.
- AP_MATCHING_UTILS_PKG — PL/SQL package supplying recoupment amount logic.
- AP_SUPPLIERS and AP_SUPPLIER_SITES_ALL — supplier header and site information.
- PO_HEADERS_ALL — purchase order header, joined for PO number.
- RCV_TRANSACTIONS, RCV_SHIPMENT_HEADERS, and RCV_SHIPMENT_LINES — receiving data joined through outer joins for receipt references.
The primary driving table is AP_INVOICE_LINES, filtered to rows where AMOUNT is negative, DISCARDED_FLAG is not Y, and LINE_TYPE_LOOKUP_CODE equals 'PREPAY'. The view joins AP_INVOICES_ALL on INVOICE_ID, with an invoice type restriction excluding PREPAYMENT, CREDIT, and DEBIT invoice types. The definition is a UNION of at least two branches: the first retrieves prepay application lines tied to invoices, while the second derives recoupment amounts via AP_MATCHING_UTILS_PKG.GET_RECOUP_AMT_PER_P. The PO and receiving tables are joined with Oracle outer join syntax, so missing PO or receipt references do not eliminate rows.
Key Columns
Because the user searched for "invoice_line_number," the most directly relevant column is INVOICE_LINE_NUMBER, which corresponds to AIL.LINE_NUMBER and identifies the invoice line on the invoice. A second line-number column, PREPAY_LINE_NUMBER, identifies the line on the originating prepayment invoice, while PREPAY_INVOICE_ID (also aliased PREPAY_ID) identifies that prepayment invoice.
- ROW_ID — the AIL.ROWID pseudo-column, useful for uniquely identifying source rows.
- INVOICE_ID and INVOICE_NUM — the applied-to invoice header.
- PREPAY_AMOUNT_APPLIED — the negative amount less any included tax.
- TAX_AMOUNT_APPLIED — recovered and non-recovered tax totals, suppressed to NULL when zero.
- ACCOUNTING_DATE, PERIOD_NAME, SET_OF_BOOKS_ID — accounting and ledger context.
- VENDOR_ID, VENDOR_NAME, VENDOR_NUMBER, VENDOR_SITE_ID, VENDOR_SITE_CODE — supplier detail.
- PO_NUMBER, PO_LINE_LOCATION_ID, PO_DISTRIBUTION_ID, RECEIPT_NUMBER, RCV_TRANSACTION_ID — purchasing and receiving references.
- ORG_ID, DESCRIPTION, INVOICE_CURRENCY_CODE — operational and descriptive attributes.
Common Use Cases and Queries
Typical uses include reconciling prepayments applied against standard invoices, reporting prepay application and tax amounts by accounting period, and extracting France-specific prepayment data. A simple query to list applied prepayments with line numbers would be:
- SELECT INVOICE_NUM, INVOICE_LINE_NUMBER, PREPAY_INVOICE_ID, PREPAY_LINE_NUMBER, PREPAY_AMOUNT_APPLIED, TAX_AMOUNT_APPLIED FROM APPS.AP_VIEW_PREPAYS_FR_PREPAY_V WHERE INVOICE_LINE_NUMBER = :line_number;
- SELECT VENDOR_NAME, VENDOR_NUMBER, PERIOD_NAME, SUM(PREPAY_AMOUNT_APPLIED) FROM APPS.AP_VIEW_PREPAYS_FR_PREPAY_V GROUP BY VENDOR_NAME, VENDOR_NUMBER, PERIOD_NAME;
- SELECT INVOICE_NUM, PREPAY_INVOICE_ID, PO_NUMBER, RECEIPT_NUMBER, PREPAY_AMOUNT_APPLIED FROM APPS.AP_VIEW_PREPAYS_FR_PREPAY_V WHERE ORG_ID = :org_id;
Because the view already encapsulates the prepay line filter, join conditions, outer joins to purchasing and receiving, and the recoupment calculation, it reduces the complexity of writing equivalent SQL against the base tables. Users should nonetheless be aware of the negative-amount and line-type filters, which mean only applied prepayment activity is returned, and of the UNION structure, which can produce multiple rows per invoice line where recoupment logic applies.
-
View: AP_VIEW_PREPAYS_FR_PREPAY_V
12.1.1
owner:APPS, object_type:VIEW, fnd_design_data:SQLAP.AP_VIEW_PREPAYS_FR_PREPAY_V, object_name:AP_VIEW_PREPAYS_FR_PREPAY_V, status:VALID, product: AP - Payables , description: -Retrofitted , implementation_dba_data: APPS.AP_VIEW_PREPAYS_FR_PREPAY_V ,
-
View: AP_VIEW_PREPAYS_FR_PREPAY_V
12.2.2
owner:APPS, object_type:VIEW, fnd_design_data:SQLAP.AP_VIEW_PREPAYS_FR_PREPAY_V, object_name:AP_VIEW_PREPAYS_FR_PREPAY_V, status:VALID, product: AP - Payables , description: -Retrofitted , implementation_dba_data: APPS.AP_VIEW_PREPAYS_FR_PREPAY_V ,
-
PACKAGE BODY: APPS.AP_PREPAY_TRAK_REP_TURK_PKG
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:AP_PREPAY_TRAK_REP_TURK_PKG, status:VALID,
-
APPS.AP_PREPAY_TRAK_REP_TURK_PKG SQL Statements
12.2.2
-
PACKAGE BODY: APPS.AP_BAL_PKG
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:AP_BAL_PKG, status:VALID,
-
PACKAGE BODY: APPS.AP_PREPAY_TRAK_REP_TURK_PKG
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:AP_PREPAY_TRAK_REP_TURK_PKG, status:VALID,
-
APPS.AP_PREPAY_TRAK_REP_TURK_PKG SQL Statements
12.1.1
-
APPS.AP_BAL_PKG SQL Statements
12.1.1
-
PACKAGE BODY: APPS.AP_BAL_PKG
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:AP_BAL_PKG, status:VALID,
-
APPS.AP_BAL_PKG SQL Statements
12.2.2
-
PACKAGE: APPS.AP_MATCHING_UTILS_PKG
12.2.2
owner:APPS, object_type:PACKAGE, object_name:AP_MATCHING_UTILS_PKG, status:VALID,
-
PACKAGE: APPS.AP_MATCHING_UTILS_PKG
12.1.1
owner:APPS, object_type:PACKAGE, object_name:AP_MATCHING_UTILS_PKG, status:VALID,
-
VIEW: APPS.AP_VIEW_PREPAYS_FR_PREPAY_V
12.2.2
owner:APPS, object_type:VIEW, fnd_design_data:SQLAP.AP_VIEW_PREPAYS_FR_PREPAY_V, object_name:AP_VIEW_PREPAYS_FR_PREPAY_V, status:VALID,
-
VIEW: APPS.AP_VIEW_PREPAYS_FR_PREPAY_V
12.1.1
owner:APPS, object_type:VIEW, fnd_design_data:SQLAP.AP_VIEW_PREPAYS_FR_PREPAY_V, object_name:AP_VIEW_PREPAYS_FR_PREPAY_V, status:VALID,
-
12.1.1 DBA Data
12.1.1
-
12.2.2 DBA Data
12.2.2
-
12.2.2 FND Design Data
12.2.2
-
SYNONYM: APPS.AP_INVOICE_LINES
12.2.2
owner:APPS, object_type:SYNONYM, object_name:AP_INVOICE_LINES, status:VALID,
-
SYNONYM: APPS.AP_INVOICE_LINES
12.1.1
owner:APPS, object_type:SYNONYM, object_name:AP_INVOICE_LINES, status:VALID,
-
12.1.1 FND Design Data
12.1.1
-
PACKAGE BODY: APPS.AP_PREPAY_TRAK_REP_TURK_PKG
12.2.2
-
SYNONYM: APPS.AP_SUPPLIER_SITES_ALL
12.1.1
owner:APPS, object_type:SYNONYM, object_name:AP_SUPPLIER_SITES_ALL, status:VALID,
-
PACKAGE BODY: APPS.AP_PREPAY_TRAK_REP_TURK_PKG
12.1.1
-
SYNONYM: APPS.AP_SUPPLIERS
12.1.1
owner:APPS, object_type:SYNONYM, object_name:AP_SUPPLIERS, status:VALID,
-
SYNONYM: APPS.AP_SUPPLIER_SITES_ALL
12.2.2
owner:APPS, object_type:SYNONYM, object_name:AP_SUPPLIER_SITES_ALL, status:VALID,
-
PACKAGE BODY: APPS.AP_BAL_PKG
12.1.1
-
SYNONYM: APPS.AP_INVOICE_DISTRIBUTIONS
12.1.1
owner:APPS, object_type:SYNONYM, object_name:AP_INVOICE_DISTRIBUTIONS, status:VALID,
-
SYNONYM: APPS.AP_INVOICE_DISTRIBUTIONS
12.2.2
owner:APPS, object_type:SYNONYM, object_name:AP_INVOICE_DISTRIBUTIONS, status:VALID,
-
PACKAGE BODY: APPS.AP_BAL_PKG
12.2.2
-
SYNONYM: APPS.AP_SUPPLIERS
12.2.2
owner:APPS, object_type:SYNONYM, object_name:AP_SUPPLIERS, status:VALID,
-
SYNONYM: APPS.RCV_SHIPMENT_HEADERS
12.1.1
owner:APPS, object_type:SYNONYM, object_name:RCV_SHIPMENT_HEADERS, status:VALID,
-
SYNONYM: APPS.RCV_SHIPMENT_HEADERS
12.2.2
owner:APPS, object_type:SYNONYM, object_name:RCV_SHIPMENT_HEADERS, status:VALID,
-
SYNONYM: APPS.RCV_SHIPMENT_LINES
12.1.1
owner:APPS, object_type:SYNONYM, object_name:RCV_SHIPMENT_LINES, status:VALID,
-
APPS.AP_BAL_PKG dependencies on AP_VIEW_PREPAYS_FR_PREPAY_V
12.2.2
-
SYNONYM: APPS.RCV_SHIPMENT_LINES
12.2.2
owner:APPS, object_type:SYNONYM, object_name:RCV_SHIPMENT_LINES, status:VALID,
-
APPS.AP_BAL_PKG dependencies on AP_VIEW_PREPAYS_FR_PREPAY_V
12.1.1
-
SYNONYM: APPS.AP_INVOICES_ALL
12.1.1
owner:APPS, object_type:SYNONYM, object_name:AP_INVOICES_ALL, status:VALID,
-
APPS.AP_PREPAY_TRAK_REP_TURK_PKG dependencies on AP_VIEW_PREPAYS_FR_PREPAY_V
12.1.1
-
APPS.AP_PREPAY_TRAK_REP_TURK_PKG dependencies on AP_VIEW_PREPAYS_FR_PREPAY_V
12.2.2
-
SYNONYM: APPS.AP_INVOICES_ALL
12.2.2
owner:APPS, object_type:SYNONYM, object_name:AP_INVOICES_ALL, status:VALID,
-
SYNONYM: APPS.RCV_TRANSACTIONS
12.2.2
owner:APPS, object_type:SYNONYM, object_name:RCV_TRANSACTIONS, status:VALID,
-
SYNONYM: APPS.RCV_TRANSACTIONS
12.1.1
owner:APPS, object_type:SYNONYM, object_name:RCV_TRANSACTIONS, status:VALID,
-
SYNONYM: APPS.PO_HEADERS_ALL
12.1.1
owner:APPS, object_type:SYNONYM, object_name:PO_HEADERS_ALL, status:VALID,
-
SYNONYM: APPS.PO_HEADERS_ALL
12.2.2
owner:APPS, object_type:SYNONYM, object_name:PO_HEADERS_ALL, status:VALID,
-
12.2.2 DBA Data
12.2.2
-
eTRM - SQLAP Tables and Views
12.1.1
description: Set Distribution Table. ,
-
eTRM - SQLAP Tables and Views
12.2.2
description: Set Distribution Table. ,
-
12.1.1 DBA Data
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. ,