Search Results itg_ip_headers_all_aru




Overview

APPS.ITG_DEBUG is a diagnostic and logging utility package that forms part of the Oracle E-Business Suite Trading Integration Gateway (ITG) module, delivered under the application schema as object type PACKAGE with a status of VALID. In EBS 12.1.1 and 12.2.2, its principal business function is to provide a centralized mechanism for capturing, buffering, and emitting debug and error information generated by the various ITG integration programs. Rather than each integration routine independently opening log files or messaging stacks, developers invoke ITG_DEBUG to standardize the way trace messages, informational notices, and error conditions are recorded.

The ETRM metadata classifies this object API as OTHER, indicating it is not a formal public business API but an internal technical utility. Its importance is evident from its dependency profile: ITG_DEBUG references APPS.FND_MSG_PUB (the Oracle Messages public API) and the SYS.STANDARD package, and it is referenced by twenty-three other packages, including ITG_BATCHMANAGEMENT_PVT, ITG_BOAPI_UTILS, ITG_BOAPI_WRAPPERS, ITG_ORGEFF_PVT, the inbound synchronization packages (ITG_SYNCCOAINBOUND_PVT, ITG_SYNCITEMINBOUND_PVT, ITG_SYNCPOINBOUND_PVT, ITG_SYNCSUPPLIERINBOUND_PVT, and related), and the interface table ARU/ARI/ASD handlers such as ITG_IP_HEADERS_ALL_ARU, ITG_IP_INVOICES_ALL_ARI, ITG_IP_LINES_ALL_ARU, and ITG_IP_RCV_TRANSACTIONS_ARI. It also references itself, which is consistent with recursive logging calls.

Key Procedures and Functions

The documented interface exposes nine procedures and functions. The primary entry points include:

  • SETUP — Initializes the debug environment, establishing the session-level context and parameters that govern subsequent logging behavior.
  • MSG — Emits a diagnostic or trace message, typically the general-purpose logging routine called throughout ITG code.
  • ADD_ERROR — Records an error condition, intended to register an application-level error for later reporting or message-stack consumption.
  • ADD_EXC_ERROR — Captures and records an exception-derived error, enabling PL/SQL exception handlers to persist structured error detail.
  • FLUSH_TO_LOGFILE — Writes buffered debug content out to the log file, ensuring accumulated messages are persisted rather than held in memory.

These routines collectively separate message generation from message emission, allowing client code to accumulate diagnostics and flush them at controlled points.

Tables Accessed

According to the documented metadata, ITG_DEBUG accesses UTL_FILE via APPS synonyms. UTL_FILE is Oracle's supplied file I/O package rather than a database table; its presence confirms that FLUSH_TO_LOGFILE writes diagnostic output to server-side files using the UTL_FILE mechanism. The reference to FND_MSG_PUB indicates that error routines interact with the Oracle Applications message dictionary, allowing errors raised through ADD_ERROR and ADD_EXC_ERROR to be surfaced through the standard EBS message stack. No application data tables are documented as directly read or written by this package.

Usage Notes

ITG_DEBUG is an internal utility invoked from custom and Oracle-delivered PL/SQL code rather than from a dedicated form or concurrent program. The most common pattern is for integration packages such as the ITG_SYNC*INBOUND_PVT family, ITG_BOAPI_UTILS, and the ITG_IP_* interface handlers to call SETUP once, then MSG and error routines throughout processing, and finally FLUSH_TO_LOGFILE to persist the trace. Developers diagnosing Trading Integration Gateway issues can enable this logging to obtain a readable record of inbound and outbound processing. Because the package is not classified as a public API, direct invocation from unrelated customizations is not recommended; it should be treated as a supporting diagnostic facility whose behavior may change between releases.