Search Results pa_quantity
Overview
AP_DIST_PREPAY_APPLICATION_V is an internal Oracle Payables view owned by the APPS schema. It exposes the population of prepayment distributions from AP_INVOICE_DISTRIBUTIONS that remain available for application against supplier invoices, together with the associated accounting flexfield combination. The view is consumed primarily by Oracle Payables internal logic and by the prepayment application process, which drives the selection list of prepayment invoices and their remaining balances when an invoice is matched against an existing prepayment. It is not a user-facing inquiry window; rather, it is a programmatic access layer that presents a filtered, enriched snapshot of prepayment distribution balances, including inclusive tax amounts computed at runtime through the AP_PREPAY_UTILS_PKG package.
For reporting and integration purposes, the view is most valuable when the requirement is to identify open prepayment balances by distribution, and specifically to resolve the accounting code combination used on the prepayment. The column DIST_CODE_COMBINATION_ID is the primary key to the code combination that will be offset or reversed when the prepayment is applied.
Underlying Base Objects
The view is defined over two documented base objects:
- AP_INVOICE_DISTRIBUTIONS (referenced through an APPS synonym) — the primary source for all distribution-level attributes such as amounts, quantities, accounting date, period, and the distribution code combination.
- AP_PREPAY_UTILS_PKG (package) — invoked through the function
GET_DIST_INCLUSIVE_TAX_AMT, which returns the inclusive tax amount for a given invoice, line, and distribution. This function is called twice in the view definition, once to add the tax amount to the remaining prepay amount and once to expose it as a separate column.
Filtering is applied at the base table level. Only rows whose LINE_TYPE_LOOKUP_CODE is 'ITEM' or 'ACCRUAL' are eligible, rows with a reversal flag of 'Y' are excluded by use of NVL(AID.REVERSAL_FLAG,'N') <> 'Y', and the computed remaining amount (prepay amount remaining, or total distribution amount when null, plus inclusive tax) must be greater than zero. The alias AID is preserved in the projection, and the view retains the ROWID of the base distribution as ROW_ID.
Key Columns
- ROW_ID — the ROWID of the underlying AP_INVOICE_DISTRIBUTIONS row, useful for direct row identification.
- INVOICE_ID, PREPAY_LINE_NUMBER, INVOICE_DISTRIBUTION_ID, PREPAY_DIST_NUMBER — the prepayment identity and its distribution within the invoice line.
- PREPAY_AMOUNT_REMAINING — the unapplied prepayment balance, expressed as
NVL(PREPAY_AMOUNT_REMAINING, TOTAL_DIST_AMOUNT)plus the inclusive tax amount returned by the package function. - TAX_AMOUNT_REMAINING — the inclusive tax component, returned as NULL when the function yields zero.
- DIST_CODE_COMBINATION_ID — the accounting flexfield combination ID on the prepayment distribution. This is the column most often searched by users, and it joins to
GL_CODE_COMBINATIONSto resolve the account segments. - AMOUNT, BASE_AMOUNT — the total distribution amount and its base currency equivalent.
- QUANTITY_INVOICED, STAT_AMOUNT, PA_QUANTITY — quantity and statistical amounts carried from the distribution.
- ACCOUNTING_DATE, PERIOD_NAME, SET_OF_BOOKS_ID — accounting and ledger context for the distribution.
- DESCRIPTION — distribution description, often carrying the prepayment reference.
- PO_DISTRIBUTION_ID, RCV_TRANSACTION_ID — linkage to purchasing or receiving distributions where the prepayment originated from a matched transaction.
- ORG_ID — the operating unit that owns the distribution, required for multi-org security in queries.
Common Use Cases and Queries
The most common requirement is to find open prepayment distributions and their accounting combinations for a given supplier or operating unit. Because the view filters to positive remaining amounts and excludes reversed rows, it can be queried directly without re-implementing the remaining-balance logic, provided the inclusive tax computed by the package is acceptable.
Resolve the account combination for open prepayments:
SELECT p.INVOICE_ID,
p.PREPAY_LINE_NUMBER,
p.INVOICE_DISTRIBUTION_ID,
p.DIST_CODE_COMBINATION_ID,
gcc.concatenated_segments,
p.PREPAY_AMOUNT_REMAINING,
p.TAX_AMOUNT_REMAINING,
p.CURRENCY
FROM APPS.AP_DIST_PREPAY_APPLICATION_V p,
APPS.GL_CODE_COMBINATIONS_KFV gcc
WHERE p.DIST_CODE_COMBINATION_ID = gcc.code_combination_id
AND p.ORG_ID = :p_org_id;
Summarize open prepayment balances by account for reconciliation or audit support:
SELECT d.DIST_CODE_COMBINATION_ID,
gcc.concatenated_segments,
SUM(d.PREPAY_AMOUNT_REMAINING) prepay_open,
SUM(d.TAX_AMOUNT_REMAINING) tax_open
FROM APPS.AP_DIST_PREPAY_APPLICATION_V d,
APPS.GL_CODE_COMBINATIONS_KFV gcc
WHERE d.DIST_CODE_COMBINATION_ID = gcc.code_combination_id
AND d.ORG_ID = :p_org_id
AND d.SET_OF_BOOKS_ID = :p_set_of_books_id
GROUP BY d.DIST_CODE_COMBINATION_ID, gcc.concatenated_segments;
Because the view is designated internal and is not part of the documented public API surface, custom code should treat its definition as subject to change between releases. Where prepayment tax treatment must match the application exactly, invoking AP_PREPAY_UTILS_PKG.GET_DIST_INCLUSIVE_TAX_AMT in the same manner as the view is the reliable approach.
-
View: AP_DIST_PREPAY_APPLICATION_V
12.1.1
owner:APPS, object_type:VIEW, fnd_design_data:SQLAP.AP_DIST_PREPAY_APPLICATION_V, object_name:AP_DIST_PREPAY_APPLICATION_V, status:VALID, product: AP - Payables , description: Internal view , implementation_dba_data: APPS.AP_DIST_PREPAY_APPLICATION_V ,
-
View: AP_DIST_PREPAY_APPLICATION_V
12.2.2
owner:APPS, object_type:VIEW, fnd_design_data:SQLAP.AP_DIST_PREPAY_APPLICATION_V, object_name:AP_DIST_PREPAY_APPLICATION_V, status:VALID, product: AP - Payables , description: Internal view , implementation_dba_data: APPS.AP_DIST_PREPAY_APPLICATION_V ,
-
VIEW: APPS.AP_DIST_PREPAY_APPLICATION_V
12.1.1
-
VIEW: APPS.AP_DIST_PREPAY_APPLICATION_V
12.2.2
-
VIEW: AP.JE_NO_INVEST_LINES#
12.2.2
-
VIEW: APPS.AP_DIST_PREPAY_APPLICATION_V
12.1.1
owner:APPS, object_type:VIEW, fnd_design_data:SQLAP.AP_DIST_PREPAY_APPLICATION_V, object_name:AP_DIST_PREPAY_APPLICATION_V, status:VALID,
-
VIEW: APPS.AP_DIST_PREPAY_APPLICATION_V
12.2.2
owner:APPS, object_type:VIEW, fnd_design_data:SQLAP.AP_DIST_PREPAY_APPLICATION_V, object_name:AP_DIST_PREPAY_APPLICATION_V, status:VALID,
-
APPS.AP_QUICK_CREDIT_PKG SQL Statements
12.1.1
-
VIEW: AP.AP_EXPENSE_REPORT_LINES_ARC#
12.2.2
-
VIEW: AP.AP_EXPENSE_REPORT_LINES_ALL#
12.2.2
-
VIEW: AP.AP_SELF_ASSESSED_TAX_DIST_ALL#
12.2.2
-
View: AP_INVOICES_ALL_MRC_V
12.1.1
product: AP - Payables , description: MULTI-ORG MRC view , implementation_dba_data: Not implemented in this database ,
-
View: AP_INVOICES_ALL_MRC_V
12.2.2
product: AP - Payables , description: MULTI-ORG MRC view , implementation_dba_data: Not implemented in this database ,
-
VIEW: AP.AP_INVOICE_LINES_INTERFACE#
12.2.2
-
APPS.AP_QUICK_CREDIT_PKG SQL Statements
12.2.2
-
View: AP_INVOICES_MRC_V
12.1.1
product: AP - Payables , description: SINGLE-ORG MRC view , implementation_dba_data: Not implemented in this database ,
-
View: AP_INVOICES_MRC_V
12.2.2
product: AP - Payables , description: SINGLE-ORG MRC view , implementation_dba_data: Not implemented in this database ,
-
VIEW: APPS.APFV_AP_INVOICES
12.2.2
owner:APPS, object_type:VIEW, fnd_design_data:SQLAP.APFV_AP_INVOICES, object_name:APFV_AP_INVOICES, status:VALID,
-
VIEW: AP.AP_INVOICES_ALL#
12.2.2
-
VIEW: AP.AP_INVOICE_LINES_ALL#
12.2.2
-
APPS.PA_CC_AR_AP_TRANSFER SQL Statements
12.1.1
-
VIEW: APPS.APFV_AP_INVOICES
12.1.1
owner:APPS, object_type:VIEW, fnd_design_data:SQLAP.APFV_AP_INVOICES, object_name:APFV_AP_INVOICES, status:VALID,
-
APPS.PA_CC_AR_AP_TRANSFER SQL Statements
12.2.2
-
View: PA_AEL_GL_EI_V
12.2.2
owner:APPS, object_type:VIEW, fnd_design_data:PA.PA_AEL_GL_EI_V, object_name:PA_AEL_GL_EI_V, status:VALID, product: PA - Projects , implementation_dba_data: APPS.PA_AEL_GL_EI_V ,
-
View: PA_AEL_GL_EI_V
12.1.1
owner:APPS, object_type:VIEW, fnd_design_data:PA.PA_AEL_GL_EI_V, object_name:PA_AEL_GL_EI_V, status:VALID, product: PA - Projects , implementation_dba_data: APPS.PA_AEL_GL_EI_V ,
-
VIEW: AP.AP_INVOICE_DISTS_ARCH#
12.2.2
-
VIEW: APPS.PA_AEL_SL_EI_MRC_V
12.1.1
owner:APPS, object_type:VIEW, fnd_design_data:PA.PA_AEL_SL_EI_MRC_V, object_name:PA_AEL_SL_EI_MRC_V, status:VALID,
-
VIEW: AP.AP_INV_DISTS_UPDATE#
12.2.2
-
VIEW: APPS.PA_AEL_GL_EI_MRC_V
12.2.2
owner:APPS, object_type:VIEW, object_name:PA_AEL_GL_EI_MRC_V, status:VALID,
-
VIEW: APPS.PA_AEL_GL_DR_MRC_TMP_V
12.2.2
owner:APPS, object_type:VIEW, object_name:PA_AEL_GL_DR_MRC_TMP_V, status:VALID,
-
VIEW: APPS.PA_AEL_GL_DR_TMP_V
12.1.1
owner:APPS, object_type:VIEW, object_name:PA_AEL_GL_DR_TMP_V, status:VALID,
-
VIEW: APPS.PA_AEL_SL_EI_V
12.1.1
owner:APPS, object_type:VIEW, fnd_design_data:PA.PA_AEL_SL_EI_V, object_name:PA_AEL_SL_EI_V, status:VALID,
-
VIEW: APPS.PA_AEL_GL_DR_TMP_V
12.2.2
owner:APPS, object_type:VIEW, object_name:PA_AEL_GL_DR_TMP_V, status:VALID,
-
View: APFV_AP_INVOICE_LINES
12.2.2
owner:APPS, object_type:VIEW, fnd_design_data:SQLAP.APFV_AP_INVOICE_LINES, object_name:APFV_AP_INVOICE_LINES, status:VALID, product: AP - Payables , description: Business View , implementation_dba_data: APPS.APFV_AP_INVOICE_LINES ,
-
VIEW: APPS.APFV_AP_INVOICE_LINES
12.2.2
-
View: XLA_PA_DR_AEL_SL_MRC_V
12.2.2
owner:APPS, object_type:VIEW, fnd_design_data:XLA.XLA_PA_DR_AEL_SL_MRC_V, object_name:XLA_PA_DR_AEL_SL_MRC_V, status:VALID, product: XLA - Subledger Accounting , implementation_dba_data: APPS.XLA_PA_DR_AEL_SL_MRC_V ,
-
VIEW: APPS.PA_AEL_SL_EI_MRC_V
12.2.2
owner:APPS, object_type:VIEW, fnd_design_data:PA.PA_AEL_SL_EI_MRC_V, object_name:PA_AEL_SL_EI_MRC_V, status:VALID,
-
VIEW: APPS.PA_AEL_SL_EI_V
12.2.2
owner:APPS, object_type:VIEW, fnd_design_data:PA.PA_AEL_SL_EI_V, object_name:PA_AEL_SL_EI_V, status:VALID,
-
VIEW: APPS.PA_AEL_GL_EI_MRC_V
12.1.1
owner:APPS, object_type:VIEW, object_name:PA_AEL_GL_EI_MRC_V, status:VALID,
-
VIEW: APPS.PA_AEL_GL_DR_MRC_TMP_V
12.1.1
owner:APPS, object_type:VIEW, object_name:PA_AEL_GL_DR_MRC_TMP_V, status:VALID,
-
VIEW: APPS.PA_AEL_SL_DR_TMP_V
12.1.1
owner:APPS, object_type:VIEW, object_name:PA_AEL_SL_DR_TMP_V, status:VALID,
-
VIEW: APPS.PA_AEL_GL_DR_V
12.1.1
owner:APPS, object_type:VIEW, fnd_design_data:PA.PA_AEL_GL_DR_V, object_name:PA_AEL_GL_DR_V, status:VALID,
-
VIEW: APPS.PA_AEL_GL_EI_V
12.2.2
owner:APPS, object_type:VIEW, fnd_design_data:PA.PA_AEL_GL_EI_V, object_name:PA_AEL_GL_EI_V, status:VALID,
-
VIEW: APPS.PA_AEL_GL_DR_MRC_V
12.2.2
owner:APPS, object_type:VIEW, object_name:PA_AEL_GL_DR_MRC_V, status:VALID,
-
View: APFV_AP_INVOICES
12.1.1
owner:APPS, object_type:VIEW, fnd_design_data:SQLAP.APFV_AP_INVOICES, object_name:APFV_AP_INVOICES, status:VALID, product: AP - Payables , description: Business view , implementation_dba_data: APPS.APFV_AP_INVOICES ,
-
VIEW: AP.AP_INVOICE_DISTRIBUTIONS_ALL#
12.2.2
-
View: XLA_PA_EI_AEL_GL_V
12.1.1
owner:APPS, object_type:VIEW, fnd_design_data:XLA.XLA_PA_EI_AEL_GL_V, object_name:XLA_PA_EI_AEL_GL_V, status:VALID, product: XLA - Subledger Accounting , implementation_dba_data: APPS.XLA_PA_EI_AEL_GL_V ,
-
View: XLA_PA_DR_AEL_GL_V
12.1.1
owner:APPS, object_type:VIEW, fnd_design_data:XLA.XLA_PA_DR_AEL_GL_V, object_name:XLA_PA_DR_AEL_GL_V, status:VALID, product: XLA - Subledger Accounting , implementation_dba_data: APPS.XLA_PA_DR_AEL_GL_V ,
-
View: XLA_PA_DR_AEL_SL_V
12.2.2
owner:APPS, object_type:VIEW, fnd_design_data:XLA.XLA_PA_DR_AEL_SL_V, object_name:XLA_PA_DR_AEL_SL_V, status:VALID, product: XLA - Subledger Accounting , implementation_dba_data: APPS.XLA_PA_DR_AEL_SL_V ,
-
View: XLA_PA_EI_AEL_GL_V
12.2.2
owner:APPS, object_type:VIEW, fnd_design_data:XLA.XLA_PA_EI_AEL_GL_V, object_name:XLA_PA_EI_AEL_GL_V, status:VALID, product: XLA - Subledger Accounting , implementation_dba_data: APPS.XLA_PA_EI_AEL_GL_V ,