Search Results dist_line_type_code




Overview

The APPS.APFV_AP_INVOICE_DISTRIBUTIONS view is an Oracle E-Business Suite Business Intelligence System (BIS) view owned by the APPS schema. It is registered in FND Design Data under the product identifier SQLAP (Payables), and its status is VALID in both EBS 12.1.1 and 12.2.2. The view exposes detailed information about individual charges on Payables invoice distribution lines, presenting the accounting, matching, variance, withholding tax, and posting attributes associated with each distribution.

Rather than requiring report developers and integrators to resolve a large number of lookup codes and denormalized attributes manually, the view provides a flattened, presentation-oriented projection of invoice distribution data. It is typically consumed by Oracle Business Intelligence (OBIEE) and other reporting layers, by custom concurrent programs, and by integration interfaces that must extract invoice distribution content for reconciliation, audit, or downstream system feeds. Because it is a BIS view rather than a base table, it is not the target of transactional DML; it is read-only.

Underlying Base Objects

The ETRM metadata documents two referenced base objects for this view:

  • AP_INVOICE_DISTRIBUTIONS (accessed through a SYNONYM) — the primary transactional table holding invoice distribution lines, including distribution amounts, quantities, account references, matching attributes, variance amounts, and withholding tax information.
  • GL_CODE_COMBINATIONS (accessed through a SYNONYM) — the General Ledger accounting flexfield combinations used to resolve the distribution's charge, variance, and rate variance accounts.

The view is therefore defined predominantly over AP_INVOICE_DISTRIBUTIONS, with joins to GL_CODE_COMBINATIONS to supply accounting flexfield context for account identifiers such as EXPENSE_ACCOUNT_ID, PRICE_VARIANCE_ACCOUNT_ID, and RATE_VARIANCE_ACCOUNT_ID. Additional descriptive columns are generated through Oracle's _LA (lookup attribute) and _KF (key flexfield) mechanisms, which translate stored codes into human-readable descriptions and concatenated account strings.

Key Columns

The view exposes a broad set of distribution-level attributes. Among the most significant are:

Common Use Cases and Queries

Because the user searched for the column posted_to_gl_amount, the most frequent usage of this view involves Payables-to-GL reconciliation. Analysts extract distributions that have been posted and compare the posted amounts against GL balances for the same accounting period, or they identify distributions not yet posted. A representative query follows:

  • Reconcile posted distributions by accounting period:
    SELECT invoice_id, invoice_line_number, distribution_line_number, accounting_date, posted_to_gl_amount, posted_to_gl_functional_amount, posted_flag, distribution_approval_status FROM apps.apfv_ap_invoice_distributions WHERE accounting_date BETWEEN :start_date AND :end_date AND posted_flag = 'Y';
  • Analyze matching variances:
    SELECT invoice_id, distribution_line_number, price_variance_amt, quantity_variance, crncy_exchange_rate_variance, dist_match_type_descr, final_match_status_descr FROM apps.apfv_ap_invoice_distributions WHERE dist_match_type_code IS NOT NULL;
  • Audit charge accounts:
    SELECT invoice_id, distribution_line_number, expense_account_id, DIST_LINE_TYPE_DESCR FROM apps.apfv_ap_invoice_distributions WHERE expense_account_id = :account_id;

Because the view decodes lookup codes into _LA description columns and concatenates key flexfield segments, it is well suited for ad hoc reporting and BI extracts. Performance depends on indexes defined on the underlying AP_INVOICE_DISTRIBUTIONS table, and users should always qualify queries by accounting date, invoice, or status filters to avoid full scans of distribution data.