Search Results debug_switch




Overview

AP_IMPORT_VALIDATION_PKG is the core validation engine for the Payables Open Interface Import process in Oracle E-Business Suite releases 12.1.1 and 12.2.2. Its principal business function is to inspect invoice header and invoice line records staged in the AP_INVOICES_INTERFACE and AP_INVOICE_LINES_INTERFACE tables before they are converted into permanent Payables transactions. The package applies the full set of trading-partner, currency, tax, terms, distribution, and matching validations that Oracle Payables requires, returning fatal or non-fatal error conditions to the calling import program so that rejected rows can be reported on the Payables Open Interface Import execution report and corrected by the user.

The package belongs to the APPS schema and is classified under the OTHER API category. Function V_CHECK_INVOICE_VALIDATION is the primary entry point; it accepts an in-out invoice record of type AP_IMPORT_INVOICES_PKG.r_invoice_info_rec together with base currency, set of books, tolerance, match mode, and prepayment parameters, and returns status and error indicators. The 48 documented procedures and functions operate almost exclusively as helper routines subordinate to this driving routine.

Key Procedures and Functions

The documented routines are grouped by the validation domain they cover. The user's search term "debug_switch" relates to the diagnostic tracing conventions used inside these routines, which emit debug output controlled by the standard FND debug mechanism rather than a dedicated public parameter; no separate DEBUG_SWITCH procedure is documented in the ETRM metadata.

Tables Accessed

The package reads and writes the staging and transaction tables that participate in open interface processing. AP_INVOICES_INTERFACE and AP_INVOICE_LINES_INTERFACE hold the inbound rows being validated. AP_INVOICES_ALL, AP_INVOICE_LINES_ALL, AP_INVOICE_DISTRIBUTIONS, and AP_HISTORY_INVOICES supply existing transaction data used for duplicate-checking and cross-reference. Supplier and site validation draws on AP_SUPPLIER_SITES_ALL. Withholding tax checks reference AP_AWT_GROUPS, while distribution validation reads AP_DISTRIBUTION_SETS and AP_DISTRIBUTION_SET_LINES. Income tax validation uses AP_INCOME_TAX_REGIONS and AP_INCOME_TAX_TYPES.

Usage Notes

AP_IMPORT_VALIDATION_PKG is invoked internally by AP_IMPORT_INVOICES_PKG and its companions during the Payables Open Interface Import concurrent program. It is not intended for direct invocation by end users or custom forms; Oracle's documented guidance is to submit the standard import program rather than call the package directly. Custom code that does call these routines must supply the complete parameter set required by the header validation function, including tolerances, set of books, and base currency, and must handle both fatal_error_flag and the returned invoice status. Debug tracing follows the FND debugging conventions, so DBMS output can be enabled through the standard profile options rather than through the package's public interface.