Search Results insert_debug
Overview
PO_WF_DEBUG_PKG is an Oracle Purchasing diagnostic utility package in Oracle E-Business Suite, owned by the APPS schema and shipped as a valid database object in both release 12.1.1 and 12.2.2. Its designated role is to instrument PL/SQL code associated with the Oracle Workflow process for Purchasing documents, capturing trace-level diagnostic output that can be inspected when troubleshooting workflow-driven requisition, purchase order, or approval activity. In the ETRM object classification, PO_WF_DEBUG_PKG is registered as an "OTHER" API type, indicating that it is an internal enablement package rather than a public, supported integration interface. It is referenced by 58 other packages, and it is not referenced by any database object, which confirms that it sits at the apex of its own small dependency chain and does not participate in declarative database structures such as constraints, triggers, or views. It depends on the APPS-owned tables PO_WF_DEBUG and PO_WF_DEBUG_S, on PO_WF_UTIL_PKG for shared helper logic, and on the FND_PROFILE package for access to profile option values.
Key Procedures and Functions
The package body exposes nine documented program units, most of which form a lightweight tracing API that other Purchasing workflow packages can call without embedding ad hoc logging statements of their own.
- INSERT_DEBUG — Performs the physical write of a debug record into the persistent debug table, forming the bottom layer of the tracing stack.
- DEBUG_STMT — Records a complete SQL or PL/SQL statement image for later review, allowing a developer to reconstruct exactly what was executed.
- DEBUG_BEGIN — Marks the entry point of an instrumented program unit or logical block, providing the starting boundary for a trace.
- DEBUG_END — Marks the corresponding exit boundary, so that BEGIN/END pairs delimit measurable, correlated spans of execution.
- DEBUG_VAR — Captures the value of an individual variable so that runtime state at a defined point in the code can be examined.
- DEBUG_UNEXP — Records an unexpected condition or anomalous path, directing attention to branches that should not normally be reached.
The remaining documented units complete the set of nine and support the same tracing objective. Together they give Purchasing workflow code a consistent vocabulary for emitting diagnostics, and the instrumentation can be disabled at runtime through profile option control via FND_PROFILE rather than requiring code changes.
Tables Accessed
The package reads and writes two documented tables through APPS synonyms. PO_WF_DEBUG holds the primary debug output — the statements, variable values, and unexpected-condition records accumulated during an instrumented run. PO_WF_DEBUG_S serves as the companion setup or supporting table for that debug data, providing the configuration context in which tracing is permitted or scoped. Because the package also references FND_PROFILE, tracing behaviour is governed by profile option settings, and the debug write is suppressed or enabled accordingly. PO_WF_UTIL_PKG supplies shared utility routines used by the debug procedures, and the STANDARD package in SYS provides the base PL/SQL built-in types on which the package depends.
Usage Notes
PO_WF_DEBUG_PKG is an internal diagnostic facility and is not intended for direct invocation from customer forms, concurrent programs, or integration code. In practice it is called by the 58 dependent Purchasing workflow packages during approval processing and workflow event handling, and it writes only when the relevant debug profile options are enabled. Oracle EBS 12.1.1 and 12.2.2 share the same object metadata and validity status for this package, so no substantive difference applies across those releases. Because no database object references the package itself, it can be modified or removed only with awareness of its fifty-eight callers.
-
APPS.PO_WF_DEBUG_PKG SQL Statements
12.2.2
-
APPS.PO_WF_DEBUG_PKG SQL Statements
12.1.1
-
APPS.ZX_TPI_PLUGIN_PKG SQL Statements
12.1.1
-
APPS.ZX_TPI_PLUGIN_PKG SQL Statements
12.2.2
-
PACKAGE BODY: APPS.PO_WF_DEBUG_PKG
12.1.1
-
PACKAGE: APPS.PO_WF_DEBUG_PKG
12.2.2
-
PACKAGE BODY: APPS.PO_WF_DEBUG_PKG
12.2.2
-
PACKAGE: APPS.PO_WF_DEBUG_PKG
12.1.1
-
PACKAGE BODY: APPS.ZX_TPI_PLUGIN_PKG
12.1.1
-
PACKAGE BODY: APPS.ZX_TPI_PLUGIN_PKG
12.2.2
-
APPS.ZX_TPI_PLUGIN_PKG dependencies on FND_API
12.2.2
-
APPS.ZX_TPI_PLUGIN_PKG dependencies on FND_API
12.1.1