Search Results payment_status_flag
Overview
The AP_INVOICES_DERIVED_V view in the APPS schema is a Payables module construct that exposes invoice header information alongside a large set of derived, runtime-computed attributes. Unlike a conventional view that is defined purely over base tables, this view projects columns from AP_INVOICES and simultaneously invokes numerous PL/SQL functions resident in the AP_INVOICES_PKG package to derive status, hold, prepayment, and encumbrance indicators on a per-invoice basis. Its documented description in the ETRM metadata is explicitly marked "(Release 10SC Only)," indicating it originated in an early Payables release and has been retained in the 12.1.1 and 12.2.2 environments largely for backward compatibility with forms-based and custom code that referenced the derived-column naming convention.
The view plays a reporting and integration role: it consolidates values that would otherwise require multiple separate queries or function calls into a single, row-level projection. This makes it convenient for inquiry screens, custom reports, and interface programs that need a consolidated invoice status snapshot without directly invoking the underlying package APIs.
Underlying Base Objects
The documented referenced base objects are AP_INVOICES (exposed through a synonym), AP_INVOICES_PKG, AP_INVOICES_UTILITY_PKG, AP_UTILITIES_PKG, and FND_USER_AP_PKG. The view text shows AP_INVOICES as the driving table: columns such as INVOICE_AMOUNT, INVOICE_ID, INVOICE_TYPE_LOOKUP_CODE, PAYMENT_STATUS_FLAG, CANCELLED_BY, GL_DATE, VENDOR_ID, and ORG_ID are selected directly. All remaining columns are computed through function calls against AP_INVOICES_PKG (for example GET_ENCUMBERED_FLAG, GET_POSTING_STATUS, GET_APPROVAL_STATUS, GET_PO_NUMBER, GET_HOLDS_COUNT, GET_AMOUNT_WITHHELD, GET_TOTAL_PREPAYS, GET_AVAILABLE_PREPAYS). Period naming is resolved through AP_UTILITIES_PKG.GET_GL_PERIOD_NAME. Because each derived column invokes a PL/SQL function, the view is not a simple join; its performance profile is dominated by per-row function execution, and it should be queried with selective predicates on AP_INVOICES columns to limit the row set processed.
Key Columns
- INVOICE_ID, INVOICE_AMOUNT, INVOICE_TYPE_LOOKUP_CODE — Core identifiers and amount carried directly from AP_INVOICES.
- ENCUMBERED_FLAG — Derived via AP_INVOICES_PKG.GET_ENCUMBERED_FLAG, indicating whether the invoice is associated with encumbrance accounting entries. This is the column most directly associated with the user's search term "encumbered_flag."
- APPROVAL_STATUS_LOOKUP_CODE — Computed from invoice amount, payment status, and type; reflects the approval state of the invoice.
- POSTING_FLAG — Posting status returned by GET_POSTING_STATUS.
- DISTRIBUTION_TOTAL, HOLDS_COUNT, NOTES_COUNT, AMOUNT_WITHHELD — Aggregated counts and totals derived per invoice.
- AMOUNT_HOLD_FLAG, VENDOR_HOLD_FLAG — Hold indicators computed from the package.
- TOTAL_PREPAYS, AVAILABLE_PREPAYS — Prepayment balances derived by vendor and org.
- PERIOD_NAME, GL_DATE — Accounting period resolved from the GL date and org.
- SELECTED_FOR_PAYMENT_FLAG, PAYMENTS_EXIST_FLAG, PREPAYMENTS_APPLIED_FLAG, UNPOSTED_VOID_PAYMENT_FLAG — Payment-related derived flags.
Common Use Cases and Queries
A frequent scenario is identifying encumbered invoices. Because the ENCUMBERED_FLAG is derived by a function, a predicate directly on it forces evaluation across rows; filtering first on AP_INVOICES columns narrows the workload:
- SELECT invoice_id, invoice_amount, encumbered_flag FROM ap_invoices_derived_v WHERE gl_date BETWEEN :p_from AND :p_to AND encumbered_flag = 'Y';
- SELECT invoice_id, approval_status_lookup_code, posting_flag, holds_count FROM ap_invoices_derived_v WHERE invoice_id = :p_invoice_id;
- SELECT invoice_id, po_number, total_prepays, available_prepays FROM ap_invoices_derived_v WHERE vendor_id = :p_vendor_id;
These patterns support inquiry screens, reconciliation reports, and interface extraction where a consolidated, derived invoice snapshot is required. Given the "(Release 10SC Only)" documentation note, implementers on 12.1.1 and 12.2.2 should treat the view as a compatibility object and validate behavior against the current AP_INVOICES_PKG signatures before relying on it in new customizations.
-
View: AP_INVOICES_DERIVED_V
12.2.2
owner:APPS, object_type:VIEW, fnd_design_data:SQLAP.AP_INVOICES_DERIVED_V, object_name:AP_INVOICES_DERIVED_V, status:VALID, product: AP - Payables , description: (Release 10SC Only) , implementation_dba_data: APPS.AP_INVOICES_DERIVED_V ,
-
View: AP_INVOICES_DERIVED_V
12.1.1
owner:APPS, object_type:VIEW, fnd_design_data:SQLAP.AP_INVOICES_DERIVED_V, object_name:AP_INVOICES_DERIVED_V, status:VALID, product: AP - Payables , description: (Release 10SC Only) , implementation_dba_data: APPS.AP_INVOICES_DERIVED_V ,
-
View: AP_PAYMENT_SCHEDULES_V
12.1.1
owner:APPS, object_type:VIEW, fnd_design_data:AR.AP_PAYMENT_SCHEDULES_V SQLAP.AP_PAYMENT_SCHEDULES_V, object_name:AP_PAYMENT_SCHEDULES_V, status:VALID, product: AP - Payables , implementation_dba_data: APPS.AP_PAYMENT_SCHEDULES_V ,
-
View: AP_PAYMENT_SCHEDULES_V
12.2.2
owner:APPS, object_type:VIEW, fnd_design_data:AR.AP_PAYMENT_SCHEDULES_V SQLAP.AP_PAYMENT_SCHEDULES_V, object_name:AP_PAYMENT_SCHEDULES_V, status:VALID, product: AP - Payables , implementation_dba_data: APPS.AP_PAYMENT_SCHEDULES_V ,
-
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: 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_INVOICES_UNION_PREPAYS_V
12.1.1
owner:APPS, object_type:VIEW, fnd_design_data:SQLAP.AP_INVOICES_UNION_PREPAYS_V, object_name:AP_INVOICES_UNION_PREPAYS_V, status:VALID, product: AP - Payables , description: (Release 10SC Only) , implementation_dba_data: APPS.AP_INVOICES_UNION_PREPAYS_V ,
-
View: AP_INVOICES_READY_TO_PAY_V
12.1.1
owner:APPS, object_type:VIEW, fnd_design_data:SQLAP.AP_INVOICES_READY_TO_PAY_V, object_name:AP_INVOICES_READY_TO_PAY_V, status:VALID, product: AP - Payables , implementation_dba_data: APPS.AP_INVOICES_READY_TO_PAY_V ,
-
View: AP_INVOICES_UNION_PREPAYS_V
12.2.2
owner:APPS, object_type:VIEW, fnd_design_data:SQLAP.AP_INVOICES_UNION_PREPAYS_V, object_name:AP_INVOICES_UNION_PREPAYS_V, status:VALID, product: AP - Payables , description: (Release 10SC Only) , implementation_dba_data: APPS.AP_INVOICES_UNION_PREPAYS_V ,
-
View: AP_INVOICES_READY_TO_PAY_V
12.2.2
owner:APPS, object_type:VIEW, fnd_design_data:SQLAP.AP_INVOICES_READY_TO_PAY_V, object_name:AP_INVOICES_READY_TO_PAY_V, status:VALID, product: AP - Payables , implementation_dba_data: APPS.AP_INVOICES_READY_TO_PAY_V ,
-
View: AP_INVOICES_V
12.1.1
owner:APPS, object_type:VIEW, fnd_design_data:FND.AP_INVOICES_V SQLAP.AP_INVOICES_V, object_name:AP_INVOICES_V, status:VALID, product: AP - Payables , implementation_dba_data: APPS.AP_INVOICES_V ,
-
View: AP_INVOICES_V
12.2.2
owner:APPS, object_type:VIEW, fnd_design_data:FND.AP_INVOICES_V SQLAP.AP_INVOICES_V, object_name:AP_INVOICES_V, status:VALID, product: AP - Payables , implementation_dba_data: APPS.AP_INVOICES_V ,
-
View: AP_INVOICE_DISTRIBUTIONS_V
12.1.1
owner:APPS, object_type:VIEW, fnd_design_data:SQLAP.AP_INVOICE_DISTRIBUTIONS_V, object_name:AP_INVOICE_DISTRIBUTIONS_V, status:VALID, product: AP - Payables , implementation_dba_data: APPS.AP_INVOICE_DISTRIBUTIONS_V ,
-
View: AP_INVOICE_DISTRIBUTIONS_V
12.2.2
owner:APPS, object_type:VIEW, fnd_design_data:SQLAP.AP_INVOICE_DISTRIBUTIONS_V, object_name:AP_INVOICE_DISTRIBUTIONS_V, status:VALID, product: AP - Payables , implementation_dba_data: APPS.AP_INVOICE_DISTRIBUTIONS_V ,