Search Results ap_invoice_lines_v
Overview
AP_INVOICE_LINES_V is an APPS-schema view within the Oracle E-Business Suite Payables (AP) module, provided by Oracle as a reporting and enquiry interface over invoice line data. It exposes a denormalised, readable representation of rows held in AP_INVOICE_LINES_ALL, joined to invoice headers in AP_INVOICES_ALL and enriched with descriptive values resolved through lookup views and API packages. The view is a core building block for Oracle Payables inquiry forms, Oracle Payments, and third-party reporting tools that require line-level accounts payable detail without navigating the normalisation of the underlying transaction tables.
Among the attributes it exposes is DEFERRED_NUMBER_OF_PERIODS, which corresponds to DEF_ACCTG_NUMBER_OF_PERIODS on the base line table. This column records the number of accounting periods over which a line amount is to be recognised when deferred accounting is applied, and it is meaningful only when the DEFERRED_ACCTG_FLAG is set. It is used together with DEFERRED_START_DATE and DEFERRED_END_DATE to drive the period-by-period creation of accounting entries.
Underlying Base Objects
The view is defined primarily over AP_INVOICE_LINES_ALL, aliased as AIL, which supplies invoice line attributes including amounts, quantities, matching references, deferred accounting attributes and accounting flexfield segments. Invoice header context is drawn from AP_INVOICES_ALL. Distribution set information is joined from AP_DISTRIBUTION_SETS_ALL through DISTRIBUTION_SET_ID. Lookup descriptions are resolved via AP_LOOKUP_CODES, which supplies the displayed LINE_TYPE and workflow approval status values.
Reference data is joined from a broad set of purchasing, receiving, project and HR objects, including PO_HEADERS_ALL, PO_LINES_ALL, PO_LINE_LOCATIONS_ALL, PO_DISTRIBUTIONS_ALL, PO_RELEASES_ALL, RCV_SHIPMENT_HEADERS, RCV_SHIPMENT_LINES and RCV_TRANSACTIONS for matched and received lines. Project and task information is resolved through PA_PROJECTS_ALL, PA_TASKS_EXPEND_V, PA_TASK_UTILS and PA_UTILS4, while HR_ORGANIZATION_UNITS, HR_LOCATIONS and HR_SECURITY support organisation and location display. Set of books and period context is obtained from GL_SETS_OF_BOOKS and FA_BOOK_CONTROLS, and runtime security and profile values come from FND_GLOBAL, FND_PROFILE and HR_GENERAL. PL/SQL logic is embedded through AP_INVOICES_UTILITY_PKG, AP_INVOICE_LINES_UTILITY_PKG, AP_MATCHING_UTILS_PKG and AP_AWT_GROUPS for withholding group resolution.
Key Columns
- INVOICE_ID and LINE_NUMBER — identify the parent invoice and the line within it.
- ROW_ID — the ROWID of the underlying AP_INVOICE_LINES_ALL row, enabling direct DML against the base table.
- LINE_TYPE_LOOKUP_CODE and LINE_TYPE — the coded value and its displayed meaning, for example Item, Freight, Tax or Miscellaneous.
- AMOUNT, BASE_AMOUNT, ROUNDING_AMOUNT and their ORIGINAL_ equivalents — entered, base-currency and rounding amounts for the line.
- QUANTITY_INVOICED, UNIT_PRICE and UNIT_MEAS_LOOKUP_CODE — quantity and price detail for matched item lines.
- MATCH_TYPE, INVENTORY_ITEM_ID, SERIAL_NUMBER, MANUFACTURER, MODEL_NUMBER and WARRANTY_NUMBER — matching and item context.
- GL_DATE and PERIOD_NAME — the accounting date and period assigned to the line.
- DEFERRED_ACCTG_FLAG, DEFERRED_START_DATE, DEFERRED_END_DATE, DEFERRED_NUMBER_OF_PERIODS and DEFERRED_PERIOD_TYPE — the deferred accounting attributes, including the number of periods over which recognition is spread.
- DEFAULT_DIST_CCID, DISTRIBUTION_SET_ID and DISTRIBUTION_SET_NAME — default accounting and distribution set references.
- ORG_ID and SET_OF_BOOKS_ID — multi-organisation and ledger context.
- WFAPPROVAL_STATUS_LOOKUP_CODE and WFAPPROVAL_STATUS_DISP — approval workflow status.
- DISCARDED_FLAG and CANCELLED_FLAG — line lifecycle indicators.
Common Use Cases and Queries
The view is commonly used for invoice line extracts, deferred accounting analysis, unmatched or matched line reconciliation, and approval status reporting. A typical query retrieving deferred lines and their recognition period count would be:
- SELECT invoice_id, line_number, line_type, amount, deferred_acctg_flag, deferred_start_date, deferred_end_date, deferred_number_of_periods, deferred_period_type FROM ap_invoice_lines_v WHERE org_id = :p_org_id AND deferred_acctg_flag = 'Y' AND deferred_number_of_periods > 1;
- SELECT invoice_id, line_number, line_type, amount, match_type, quantity_invoiced, unit_price FROM ap_invoice_lines_v WHERE invoice_id = :p_invoice_id ORDER BY line_number;
- SELECT period_name, SUM(amount) FROM ap_invoice_lines_v WHERE set_of_books_id = :p_sob_id GROUP BY period_name;
Because the view applies HR security and profile-based filtering, results are restricted to organisations and ledgers visible to the requesting user. Consumers should expect slower performance than direct queries against AP_INVOICE_LINES_ALL and should restrict results by INVOICE_ID, ORG_ID or PERIOD_NAME wherever possible.
-
View: AP_INVOICE_LINES_V
12.1.1
owner:APPS, object_type:VIEW, fnd_design_data:SQLAP.AP_INVOICE_LINES_V, object_name:AP_INVOICE_LINES_V, status:VALID, product: AP - Payables , implementation_dba_data: APPS.AP_INVOICE_LINES_V ,
-
View: AP_INVOICE_LINES_V
12.2.2
owner:APPS, object_type:VIEW, fnd_design_data:SQLAP.AP_INVOICE_LINES_V, object_name:AP_INVOICE_LINES_V, status:VALID, product: AP - Payables , implementation_dba_data: APPS.AP_INVOICE_LINES_V ,
-
SYNONYM: APPS.AP_DISTRIBUTION_SETS_ALL
12.2.2
owner:APPS, object_type:SYNONYM, object_name:AP_DISTRIBUTION_SETS_ALL, status:VALID,
-
SYNONYM: APPS.AP_DISTRIBUTION_SETS_ALL
12.1.1
owner:APPS, object_type:SYNONYM, object_name:AP_DISTRIBUTION_SETS_ALL, status:VALID,
-
PACKAGE: APPS.AP_INVOICE_LINES_UTILITY_PKG
12.2.2
owner:APPS, object_type:PACKAGE, object_name:AP_INVOICE_LINES_UTILITY_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,
-
PACKAGE: APPS.AP_MATCHING_UTILS_PKG
12.2.2
owner:APPS, object_type:PACKAGE, object_name:AP_MATCHING_UTILS_PKG, status:VALID,
-
SYNONYM: APPS.AP_AWT_GROUPS
12.1.1
owner:APPS, object_type:SYNONYM, object_name:AP_AWT_GROUPS, status:VALID,
-
PACKAGE: APPS.AP_INVOICE_LINES_UTILITY_PKG
12.1.1
owner:APPS, object_type:PACKAGE, object_name:AP_INVOICE_LINES_UTILITY_PKG, status:VALID,
-
PACKAGE: APPS.AP_INVOICES_UTILITY_PKG
12.1.1
owner:APPS, object_type:PACKAGE, object_name:AP_INVOICES_UTILITY_PKG, status:VALID,
-
SYNONYM: APPS.AP_AWT_GROUPS
12.2.2
owner:APPS, object_type:SYNONYM, object_name:AP_AWT_GROUPS, status:VALID,
-
PACKAGE: APPS.PA_UTILS4
12.2.2
owner:APPS, object_type:PACKAGE, object_name:PA_UTILS4, status:VALID,
-
PACKAGE: APPS.AP_INVOICES_UTILITY_PKG
12.2.2
owner:APPS, object_type:PACKAGE, object_name:AP_INVOICES_UTILITY_PKG, status:VALID,
-
12.1.1 DBA Data
12.1.1
-
12.2.2 DBA Data
12.2.2
-
PACKAGE: APPS.PA_TASK_UTILS
12.2.2
owner:APPS, object_type:PACKAGE, object_name:PA_TASK_UTILS, status:VALID,
-
12.2.2 FND Design Data
12.2.2
-
12.1.1 FND Design Data
12.1.1
-
VIEW: APPS.PON_PRICE_ELEMENT_TYPES_VL
12.2.2
owner:APPS, object_type:VIEW, fnd_design_data:PON.PON_PRICE_ELEMENT_TYPES_VL, object_name:PON_PRICE_ELEMENT_TYPES_VL, status:VALID,
-
VIEW: APPS.PON_PRICE_ELEMENT_TYPES_VL
12.1.1
owner:APPS, object_type:VIEW, fnd_design_data:PON.PON_PRICE_ELEMENT_TYPES_VL, object_name:PON_PRICE_ELEMENT_TYPES_VL, status:VALID,
-
SYNONYM: APPS.AP_INVOICE_LINES_ALL
12.1.1
owner:APPS, object_type:SYNONYM, object_name:AP_INVOICE_LINES_ALL, status:VALID,
-
SYNONYM: APPS.AP_INVOICE_LINES_ALL
12.2.2
owner:APPS, object_type:SYNONYM, object_name:AP_INVOICE_LINES_ALL, status:VALID,
-
VIEW: APPS.PA_TASKS_EXPEND_V
12.2.2
owner:APPS, object_type:VIEW, fnd_design_data:PA.PA_TASKS_EXPEND_V, object_name:PA_TASKS_EXPEND_V, status:VALID,
-
SYNONYM: APPS.PO_RELEASES_ALL
12.1.1
owner:APPS, object_type:SYNONYM, object_name:PO_RELEASES_ALL, status:VALID,
-
SYNONYM: APPS.PO_RELEASES_ALL
12.2.2
owner:APPS, object_type:SYNONYM, object_name:PO_RELEASES_ALL, status:VALID,
-
SYNONYM: APPS.RCV_SHIPMENT_HEADERS
12.1.1
owner:APPS, object_type:SYNONYM, object_name:RCV_SHIPMENT_HEADERS, status:VALID,
-
VIEW: APPS.AP_LOOKUP_CODES
12.2.2
owner:APPS, object_type:VIEW, fnd_design_data:SQLAP.AP_LOOKUP_CODES, object_name:AP_LOOKUP_CODES, status:VALID,
-
VIEW: APPS.AP_LOOKUP_CODES
12.1.1
owner:APPS, object_type:VIEW, fnd_design_data:SQLAP.AP_LOOKUP_CODES, object_name:AP_LOOKUP_CODES, status:VALID,
-
SYNONYM: APPS.RCV_SHIPMENT_LINES
12.1.1
owner:APPS, object_type:SYNONYM, object_name:RCV_SHIPMENT_LINES, status:VALID,
-
SYNONYM: APPS.RCV_SHIPMENT_HEADERS
12.2.2
owner:APPS, object_type:SYNONYM, object_name:RCV_SHIPMENT_HEADERS, status:VALID,
-
VIEW: APPS.AP_INVOICE_LINES_V
12.1.1
owner:APPS, object_type:VIEW, fnd_design_data:SQLAP.AP_INVOICE_LINES_V, object_name:AP_INVOICE_LINES_V, status:VALID,
-
VIEW: APPS.AP_INVOICE_LINES_V
12.2.2
owner:APPS, object_type:VIEW, fnd_design_data:SQLAP.AP_INVOICE_LINES_V, object_name:AP_INVOICE_LINES_V, status:VALID,
-
SYNONYM: APPS.RCV_SHIPMENT_LINES
12.2.2
owner:APPS, object_type:SYNONYM, object_name:RCV_SHIPMENT_LINES, status:VALID,
-
SYNONYM: APPS.AP_INVOICES_ALL
12.1.1
owner:APPS, object_type:SYNONYM, object_name:AP_INVOICES_ALL, status:VALID,
-
SYNONYM: APPS.PO_DISTRIBUTIONS_ALL
12.1.1
owner:APPS, object_type:SYNONYM, object_name:PO_DISTRIBUTIONS_ALL, status:VALID,
-
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.1.1
owner:APPS, object_type:SYNONYM, object_name:RCV_TRANSACTIONS, status:VALID,
-
SYNONYM: APPS.FA_BOOK_CONTROLS
12.1.1
owner:APPS, object_type:SYNONYM, object_name:FA_BOOK_CONTROLS, status:VALID,
-
SYNONYM: APPS.FA_BOOK_CONTROLS
12.2.2
owner:APPS, object_type:SYNONYM, object_name:FA_BOOK_CONTROLS, status:VALID,
-
SYNONYM: APPS.RCV_TRANSACTIONS
12.2.2
owner:APPS, object_type:SYNONYM, object_name:RCV_TRANSACTIONS, status:VALID,
-
SYNONYM: APPS.PO_DISTRIBUTIONS_ALL
12.2.2
owner:APPS, object_type:SYNONYM, object_name:PO_DISTRIBUTIONS_ALL, status:VALID,
-
SYNONYM: APPS.PO_LINE_LOCATIONS_ALL
12.1.1
owner:APPS, object_type:SYNONYM, object_name:PO_LINE_LOCATIONS_ALL, status:VALID,
-
PACKAGE: APPS.HR_SECURITY
12.1.1
owner:APPS, object_type:PACKAGE, object_name:HR_SECURITY, status:VALID,
-
PACKAGE: APPS.HR_SECURITY
12.2.2
owner:APPS, object_type:PACKAGE, object_name:HR_SECURITY, status:VALID,
-
SYNONYM: APPS.PO_LINES_ALL
12.1.1
owner:APPS, object_type:SYNONYM, object_name:PO_LINES_ALL, status:VALID,
-
SYNONYM: APPS.PO_LINE_LOCATIONS_ALL
12.2.2
owner:APPS, object_type:SYNONYM, object_name:PO_LINE_LOCATIONS_ALL, status:VALID,
-
SYNONYM: APPS.PA_TASKS
12.1.1
owner:APPS, object_type:SYNONYM, object_name:PA_TASKS, status:VALID,
-
SYNONYM: APPS.PO_LINES_ALL
12.2.2
owner:APPS, object_type:SYNONYM, object_name:PO_LINES_ALL, status:VALID,
-
VIEW: APPS.HR_LOCATIONS
12.1.1
owner:APPS, object_type:VIEW, fnd_design_data:PER.HR_LOCATIONS, object_name:HR_LOCATIONS, status:VALID,
-
VIEW: APPS.HR_LOCATIONS
12.2.2
owner:APPS, object_type:VIEW, fnd_design_data:PER.HR_LOCATIONS, object_name:HR_LOCATIONS, status:VALID,