Search Results validate_unprocessed_ded
Overview
PA_AP_VAL_PKG is a project accounting validation package owned by the APPS schema in Oracle E-Business Suite. Its business purpose is to determine whether an Oracle Payables invoice that is subject to Project Accounting processing still has outstanding deduction activity that has not yet been resolved through a corresponding debit memo. The package is specifically associated with the validation of Retainage Release invoices in Payables, and it is called directly from Payables during invoice validation processing. Its principal output is a flag that informs Payables whether unprocessed deductions exist for the invoice under consideration, allowing Payables to apply the correct validation outcome and downstream accounting treatment.
The package body includes an internal helper, log_message, which writes diagnostic output through the PA_DEBUG utility, and a package-level debug switch initialized from the PA_DEBUG_MODE profile option. The package also declares an internal API name variable set to Validate_unprocessed_ded, reflecting the primary entry point. In ETRM for release 12.2.2 the package is classified as OTHER rather than a fully published public API, and it is referenced by one other package, indicating a narrow but defined position in the Project Accounting dependency chain.
Key Procedures and Functions
- VALIDATE_UNPROCESSED_DED — The single documented procedure in the package and its primary entry point. It accepts an invoice identifier for the Payables invoice being validated and returns an output flag indicating whether unprocessed deductions exist for that invoice. The procedure is invoked during Payables invoice validation, specifically in the context of a Retainage Release invoice. Internally it relies on a cursor that identifies deductions in
PA_DEDUCTIONS_ALLwhich have not yet resulted in a Payables debit memo, including deductions in working and submitted statuses, and cross-references them against the vendor and project associated with the invoice passed in. No parameter lists beyond the documented input/output contract should be assumed. - log_message — An internal (non-documented) logging helper that forwards a procedure name and message string to
pa_debug.write. It supports troubleshooting when the debug profile is enabled and does not participate in the business validation logic itself.
Tables Accessed
- AP_INVOICES_ALL — Read to establish the existence of a corresponding debit memo for a deduction. The cursor joins Payables invoices where the source is Oracle Project Accounting, the invoice type is DEBIT, the product table is
PA_DEDUCTIONS_ALL, and the reference key matches the deduction request identifier. The table is also read to obtain the vendor and invoice context for the invoice being validated. - AP_INVOICE_DISTRIBUTIONS_ALL — Read to associate the invoice being validated with its distributions, thereby deriving the project identifier used to qualify the deductions belonging to the same vendor and project combination.
- PA_DEDUCTIONS_ALL — The primary source of deduction records. The package reads this table to determine which deductions remain outstanding, i.e., those without a matching debit memo in Payables.
Usage Notes
PA_AP_VAL_PKG is not intended for direct end-user invocation. It is called from the Payables side during invoice validation, which means it executes inside the Payables validation pipeline rather than from a Project Accounting form or a standalone concurrent program. Because it is classified as OTHER in ETRM and exposes a single documented entry point, it should be treated as a supporting validation utility rather than a general-purpose integration API. Custom code that needs to know whether unprocessed deductions exist for a Payables invoice may call VALIDATE_UNPROCESSED_DED, but such use should be constrained to the same Payables validation context it was designed for.
The behavior of the procedure depends partly on the PA_DEBUG_MODE profile option; when debug is enabled, additional diagnostic output is written through the internal logging helper. The absence of a matching debit memo — rather than the deduction status alone — is the decisive condition, so deductions in working or submitted status are treated as unprocessed. Because the cursor logic relies on the vendor and project pairing derived from the invoice distributions, the caller must pass the correct invoice identifier to obtain a meaningful result. As the package is referenced by one other package, changes to its behavior can propagate to that dependent component, and modifications should be assessed through the standard Oracle EBS patching and regression process for the 12.1.1 and 12.2.2 releases.
-
PACKAGE BODY: APPS.PA_AP_VAL_PKG
12.2.2
-
PACKAGE BODY: APPS.PA_DEDUCTIONS_OLD
12.2.2
-
PACKAGE: APPS.PA_AP_VAL_PKG
12.2.2
-
PACKAGE: APPS.PA_DEDUCTIONS_OLD
12.2.2
-
PACKAGE: APPS.PA_DEDUCTIONS
12.2.2
-
APPS.PA_DEDUCTIONS_OLD dependencies on AP_INVOICES_ALL
12.2.2
-
APPS.PA_DEDUCTIONS_OLD dependencies on AP_INVOICES_ALL
12.2.2
-
APPS.PA_AP_VAL_PKG dependencies on AP_INVOICES_ALL
12.2.2
-
APPS.PA_AP_VAL_PKG dependencies on PA_AP_VAL_PKG
12.2.2
-
APPS.PA_DEDUCTIONS_OLD dependencies on PA_DEDUCTIONS_OLD
12.2.2
-
APPS.PA_AP_VAL_PKG dependencies on AP_INVOICES_ALL
12.2.2
-
APPS.PA_AP_VAL_PKG dependencies on FND_PROFILE
12.2.2
-
APPS.PA_DEDUCTIONS dependencies on AP_INVOICES_ALL
12.2.2
-
APPS.PA_AP_VAL_PKG dependencies on PA_DEBUG
12.2.2
-
APPS.PA_DEDUCTIONS dependencies on FND_MSG_PUB
12.2.2
-
PACKAGE BODY: APPS.PA_DEDUCTIONS
12.2.2