Search Results p_debug_switch
Overview
APPS.AP_PURGE_PKG is the core PL/SQL engine behind the Payables purge and archive process in Oracle E-Business Suite 12.1.1 and 12.2.2. The package coordinates the multi-phase removal of historical invoice, payment, and accounting data from the active Payables tables, moving them to the corresponding archived history tables so that transactional volumes remain manageable without permanently losing audit information. Declared with AUTHID CURRENT_USER and owned by APPS, the package executes with the privileges of the calling invoker, relying on APPS synonyms for all data access. Its responsibilities span status tracking, concurrency protection, data seeding, summary record creation, user confirmation, deletion, abort handling, and final purge of accounting and Payables records. The header reference (appurges.pls 120.0.12020000.2) confirms this is a production-shipped Oracle module, not a customization.
Key Procedures and Functions
- SET_PURGE_STATUS — Records or updates the status of a purge run, allowing the process to track progress through its lifecycle.
- CHECK_NO_PURGE_IN_PROCESS — Validates that no conflicting purge is already executing, preventing concurrent runs from corrupting shared data.
- SEED_PURGE_TABLES — Populates the interim purge tables with candidate rows based on category, purge name, activity date, organization, and the various status filters (PA, Purchasing, Payables, Assets, CHV, EDI, MRP).
- CREATE_SUMMARY_RECORDS — Generates summary records for a purge run, using a range size to batch the workload.
- CONFIRM_SEEDED_DATA — Confirms the seeded data set against the same category, date, organization, and status criteria before deletion proceeds.
- DELETE_SEEDED_DATA — Performs the physical removal of the confirmed rows, honoring range size and selected status filters.
- ABORT_PURGE — Reverses an in-progress purge, restoring the original status when the run is interrupted or fails.
- PURGE_ACCTG_AND_AP_TABLE — Executes the final purge of accounting entries and Payables base tables once the earlier phases complete.
Every function accepts a P_Debug_Switch parameter, enabling verbose diagnostic output during execution — the term the user searched for. The calling sequence parameter similarly supports traceability.
Tables Accessed
The package reads and writes the principal Payables transactional tables, including AP_INVOICES and AP_INVOICES_ALL, AP_CHECKS and AP_CHECKS_ALL, AP_BATCHES and AP_BATCHES_ALL, AP_HOLDS, AP_ENCUMBRANCE_LINES, and AP_DOC_SEQUENCE_AUDIT. Historical counterparts — AP_HISTORY_INVOICES, AP_HISTORY_CHECKS, and AP_HISTORY_INVOICE_PAYMENTS (with their _ALL variants) — receive the archived rows. Access is achieved through public APPS synonyms, consistent with the package's invoker-rights design.
Usage Notes
AP_PURGE_PKG is normally invoked indirectly through the Payables Purge/Archive concurrent programs and related Oracle Forms (notably the Purge, Archive, and Audit screens), rather than being called directly by end users. Because it is not referenced by any other documented package in the ETRM metadata, custom code calling these functions must respect the seed-confirm-delete-abort sequencing. The P_Debug_Switch flag should be enabled only during controlled troubleshooting, since debug output can be voluminous in production volumes.
-
PACKAGE: APPS.AP_PURGE_PKG
12.2.2
-
PACKAGE: APPS.AP_PURGE_PKG
12.1.1
-
PACKAGE: APPS.AP_TRIAL_BALANCE_PKG
12.1.1
-
PACKAGE: APPS.AP_TRIAL_BALANCE_PKG
12.2.2
-
PACKAGE BODY: APPS.AP_APXAPRVL_XMLP_PKG
12.1.1
-
PACKAGE BODY: APPS.IGI_IGIGBUCC_XMLP_PKG
12.1.1
-
PACKAGE BODY: APPS.IGI_IGIGBUCC_XMLP_PKG
12.2.2
-
PACKAGE BODY: APPS.AP_APXSSIMP_XMLP_PKG
12.1.1
-
PACKAGE BODY: APPS.AP_APXSUIMP_XMLP_PKG
12.1.1
-
PACKAGE BODY: APPS.AP_APXSUIMP_XMLP_PKG
12.2.2
-
PACKAGE BODY: APPS.AP_APXBABAL_XMLP_PKG
12.1.1
-
PACKAGE BODY: APPS.AP_APXBABAL_XMLP_PKG
12.2.2
-
PACKAGE BODY: APPS.AP_APXGDGDL_XMLP_PKG
12.1.1
-
PACKAGE BODY: APPS.AP_APXSSIMP_XMLP_PKG
12.2.2
-
PACKAGE BODY: APPS.AP_APXBCOEB_XMLP_PKG
12.2.2
-
PACKAGE BODY: APPS.AP_APXBCOEB_XMLP_PKG
12.1.1
-
PACKAGE BODY: APPS.AP_APXGDGDL_XMLP_PKG
12.2.2
-
PACKAGE BODY: APPS.AP_APXPTPTR_XMLP_PKG
12.1.1
-
PACKAGE BODY: APPS.AP_APXHRUPD_XMLP_PKG
12.1.1
-
PACKAGE BODY: APPS.AP_APXEMELR_XMLP_PKG
12.1.1
-
PACKAGE BODY: APPS.AP_APXINDIA_XMLP_PKG
12.1.1
-
PACKAGE BODY: APPS.AP_APXINVTC_XMLP_PKG
12.2.2
-
PACKAGE BODY: APPS.AP_APXBCOBN_XMLP_PKG
12.2.2
-
PACKAGE BODY: APPS.AP_APXPTPTR_XMLP_PKG
12.2.2
-
PACKAGE BODY: APPS.AP_APXBCOBN_XMLP_PKG
12.1.1
-
PACKAGE BODY: APPS.AP_APXEMELR_XMLP_PKG
12.2.2
-
PACKAGE BODY: APPS.JE_JEFIASDR_XMLP_PKG
12.1.1
-
PACKAGE BODY: APPS.AP_APXPAYSC_XMLP_PKG
12.1.1
-
PACKAGE BODY: APPS.AP_APXT7F96_XMLP_PKG
12.1.1
-
PACKAGE BODY: APPS.AP_APXINVAD_XMLP_PKG
12.1.1
-
PACKAGE BODY: APPS.AP_APXXPXPL_XMLP_PKG
12.2.2
-
PACKAGE BODY: APPS.AP_APXQCQCL_XMLP_PKG
12.1.1
-
PACKAGE BODY: APPS.AP_APXRPRPR_XMLP_PKG
12.2.2
-
PACKAGE BODY: APPS.AP_APXHRUPD_XMLP_PKG
12.2.2
-
PACKAGE BODY: APPS.AP_APXPPHIS_XMLP_PKG
12.1.1
-
PACKAGE BODY: APPS.AP_APXVDLBL_XMLP_PKG
12.1.1
-
PACKAGE BODY: APPS.AP_APXINDIA_XMLP_PKG
12.2.2
-
PACKAGE BODY: APPS.AP_APXXPXPL_XMLP_PKG
12.1.1
-
PACKAGE BODY: APPS.AP_APXINVTC_XMLP_PKG
12.1.1
-
PACKAGE BODY: APPS.AP_APXVDLET_XMLP_PKG
12.1.1
-
PACKAGE BODY: APPS.AP_APXPAYAD_XMLP_PKG
12.1.1
-
PACKAGE BODY: APPS.AP_APXFPMDR_XMLP_PKG
12.2.2
-
PACKAGE BODY: APPS.AP_APXMHLET_XMLP_PKG
12.1.1
-
PACKAGE BODY: APPS.JE_JEFIASDR_XMLP_PKG
12.2.2
-
PACKAGE BODY: APPS.AP_APXFPMDR_XMLP_PKG
12.1.1
-
PACKAGE BODY: APPS.AP_APXMTDTR_XMLP_PKG
12.2.2
-
PACKAGE BODY: APPS.AP_APXINDUP_XMLP_PKG
12.1.1
-
PACKAGE BODY: APPS.AP_APXQCQCL_XMLP_PKG
12.2.2
-
PACKAGE BODY: APPS.FA_FASUNPLD_XMLP_PKG
12.2.2
-
PACKAGE BODY: APPS.AP_APXT7F96_XMLP_PKG
12.2.2