Search Results get_decoded_message




Overview

PA_MESSAGE_UTILS is a utility package in the Oracle Projects (PA) application of Oracle E-Business Suite, owned by the APPS schema and declared with AUTHID CURRENT_USER. Its principal business function is to standardize and centralize the persistence of messages and exceptions generated during Oracle Projects processing. Rather than requiring every calling program to construct its own logging logic, PA_MESSAGE_UTILS provides a single routine that accepts a rich set of contextual attributes and writes corresponding records into the Projects reporting exceptions store. This is particularly valuable in long-running concurrent programs and batch processes where diagnostics must be captured consistently so that end users and support personnel can diagnose failures.

The package header, dated 2005, indicates that the interface has been stable across the 12.1.1 and 12.2.2 releases. The package interacts closely with the Oracle Application Object Library (FND) message and API infrastructure, since several of its parameters default to FND_API global constants.

Key Procedures and Functions

The ETRM documentation lists two documented program units:

  • SAVE_MESSAGES — A procedure that persists message and exception information. It accepts a broad range of parameters, including a request identifier, a user identifier, up to two source type/identifier pairs, ten generic context attributes, and three date contexts. It further accepts flags controlling whether FND messages are used (p_use_fnd_msg), whether the transaction is committed (p_commit), whether the message list is initialized (p_init_msg_list), and whether the message is encoded (p_encode). The procedure returns an overall status through the x_return_status output parameter. Because only the signature is documented, the exact internal logic is not described, but the parameter set clearly supports flexible, context-driven exception capture.
  • GET_DECODED_MESSAGE — A function that accepts an encoded message text and returns the corresponding decoded VARCHAR2 value. It functions as the inverse of the encoding controlled by p_encode in SAVE_MESSAGES, allowing stored messages to be rendered in human-readable form, typically for display in forms or reports.

Tables Accessed

The documented table accessed by this package, via APPS synonyms, is PA_REPORTING_EXCEPTIONS. This table stores exception and message records generated by Oracle Projects routines. SAVE_MESSAGES writes into it, using the source type, source identifier, context, and date context parameters to classify and locate each exception. GET_DECODED_MESSAGE operates on already-stored or in-memory encoded text and is not documented as reading PA_REPORTING_EXCEPTIONS directly.

Usage Notes

PA_MESSAGE_UTILS is an internal integration utility rather than an end-user-facing component. It is typically invoked from within other Oracle Projects PL/SQL packages — the metadata records eight referencing packages — during concurrent program execution or batch processing. Developers extending Oracle Projects customizations commonly call SAVE_MESSAGES to log diagnostics so that failures surface through the standard Projects exception-reporting mechanism. Because the package is declared AUTHID CURRENT_USER, privilege resolution follows the invoking user. The default values for p_commit (FND_API.G_FALSE) and p_init_msg_list (FND_API.G_TRUE) indicate that callers retain control over transaction boundaries and message-list initialization, which is the conventional FND API pattern. Custom code should respect these defaults unless a specific transactional requirement dictates otherwise.