Search Results get_task_number_amg
Overview
PA_INTERFACE_UTILS_PUB is a public PL/SQL package owned by APPS in the Oracle E-Business Suite Projects (PA) module. It serves as a shared utility layer for interface and messaging operations across Project Management and related sub-ledger processes. The package is declared with AUTHID DEFINER, meaning its SQL executes under the privileges of its owner rather than the invoking user, which centralizes access control for the underlying Project Accounting tables.
The package encapsulates several responsibilities. It provides a standardized mechanism for retrieving and mapping application error and warning messages, exposed primarily through the GET_MESSAGES procedure. It also establishes session-level context through SET_GLOBAL_INFO, which initializes global variables such as project identifier, advanced project security flag, and operating unit context used by downstream Project Accounting APIs. Additionally, it supplies constants for representing missing or null-equivalent values — G_PA_MISS_NUM (1.7E20), G_PA_MISS_DATE (01/01/4712), and G_PA_MISS_CHAR ('^') — that mirror Oracle's standard API missing-value conventions. The package is referenced by 273 other packages, underscoring its role as a foundational dependency within the Projects application family.
Key Procedures and Functions
- GET_MESSAGES — Returns encoded message data and message index information for a prior API call. It supports encoding toggling via a p_encoded flag and is the standard means by which callers retrieve diagnostic output after a failed interface or mapping operation.
- SET_GLOBAL_INFO — Initializes session-level global state for Project Accounting operations. Documented parameters include API version, responsibility ID, user ID, responsibility application ID, advanced project security flag, calling mode, and operating unit ID (added for multi-org access control). It returns message count, message data, and return status. This is the procedure most commonly sought under the "set_global_info" search term.
- GET_NEW_MESSAGE_CODE — Allocates or retrieves a new message code used when constructing application messages.
- CREATE_AMG_MAPPING_MSG — Creates a mapping-related message, typically associated with AMG (Advanced Mapping/Grant) processing.
- MAP_NEW_AMG_MSG — Maps and translates a newly created AMG message into the application's message framework.
- GET_TASK_NUMBER_AMG — Returns task number information within the AMG context.
In addition to these public procedures, the package exposes a GET_BG_ID function returning a NUMBER, with RESTRICT_REFERENCES pragmas (WNDS, WNPS) applied to enforce its purity for use in SQL contexts.
Tables Accessed
The package reads from and writes to the following tables through APPS synonyms:
- FND_RESPONSIBILITY — Validates responsibility context during global info initialization.
- FND_USER — Resolves and validates user identity for session setup.
- PA_IMPLEMENTATIONS — Determines Project Accounting implementation configuration, including advanced project security behavior.
- PA_PROJECT_ACCUM_HEADERS — Supports accumulation and interface processing for project data.
- PA_TASKS — Provides task-level detail, particularly for GET_TASK_NUMBER_AMG.
- PLITBLM — The Application Object Library's standard message lookup table used by GET_MESSAGES to decode message tokens.
Usage Notes
PA_INTERFACE_UTILS_PUB is typically invoked at the outset of Project Accounting interface processing. Client code calls SET_GLOBAL_INFO to establish user, responsibility, operating unit, and security context before calling downstream PA APIs; failure to do so can result in incorrect or missing data. Following an API call, callers invoke GET_MESSAGES to retrieve diagnostic output for display to the user or for logging.
The package is commonly referenced from Oracle Forms-based Project Accounting windows, concurrent programs that import or interface project data, and custom PL/SQL extensions built against the PA schema. Because it is classified as PUB, its signature is treated as a stable public interface across releases 12.1.1 and 12.2.2, though the addition of p_operating_unit_id (for MOAC) and p_resp_appl_id illustrates incremental evolution. Developers consuming this package should pass the documented default sentinels rather than hard-coded nulls to ensure consistent behavior.
-
PACKAGE: APPS.PA_INTERFACE_UTILS_PUB
12.1.1
-
PACKAGE: APPS.PA_INTERFACE_UTILS_PUB
12.2.2
-
PACKAGE BODY: APPS.PA_INTERFACE_UTILS_PUB
12.2.2
-
PACKAGE BODY: APPS.PA_INTERFACE_UTILS_PUB
12.1.1
-
APPS.PA_INTERFACE_UTILS_PUB dependencies on FND_API
12.1.1
-
APPS.PA_INTERFACE_UTILS_PUB dependencies on FND_API
12.2.2
-
APPS.PA_INTERFACE_UTILS_PUB dependencies on PA_INTERFACE_UTILS_PUB
12.2.2
-
APPS.PA_INTERFACE_UTILS_PUB dependencies on PA_INTERFACE_UTILS_PUB
12.1.1
-
APPS.PA_INTERFACE_UTILS_PUB dependencies on FND_API
12.2.2
-
APPS.PA_INTERFACE_UTILS_PUB dependencies on FND_API
12.1.1