Search Results process_nodes




Overview

APPS.AHL_PC_NODE_PUB is a public PL/SQL package belonging to the Oracle E-Business Suite Application Object Library's Product Catalog (AHL) module. Its primary business function is the batch processing and validation of product catalog node records. A "node" in this context represents an element within the product catalog hierarchy maintained by the AHL schema, and this package provides the procedural interface through which external callers submit collections of node records for validation and persistence within a single logical transaction.

The package follows the standard Oracle EBS API framework conventions, including the FND_API compatibility check, message list initialization via FND_MSG_PUB, savepoint management, and the standard three-part return status interface (x_return_status, x_msg_count, x_msg_data). This design allows callers to participate in the EBS message stack and to control transaction boundaries explicitly through the p_commit parameter.

Key Procedures and Functions

PROCESS_NODES is the sole documented procedure in this package body. It accepts a PL/SQL associative array (table) of node records typed as AHL_PC_NODE_PUB.PC_NODE_TBL, along with the standard API parameters for version compatibility, message list initialization, commit control, validation level, and module type. The procedure iterates over the incoming collection and applies record-level validation and transformation logic.

A notable characteristic of the implementation is its handling of the operation flag. Records whose operation_flag equals G_DML_DELETE are explicitly excluded from the validation block — trailing whitespace trimming and mandatory-field checks are skipped for deletions. This reflects the metadata hint associated with the user's search for "g_dml_delete": the package local constant G_DML_DELETE acts as the discriminant that separates delete operations from insert/update processing, since delete records carry no meaningful name or description data to validate. For non-delete records, the procedure trims the name and description attributes and enforces that the node name is mandatory, raising FND_API.G_EXC_ERROR and posting the message AHL_PC_NODE_NAME_REQD when the name is null.

Tables Accessed

The ETRM metadata documents a single table reference via APPS synonyms: PLITBLM. This is a standard Oracle Applications temporary/message-logging structure associated with the FND message infrastructure. Its presence is consistent with the package's use of FND_MESSAGE.Set_Name and FND_MSG_PUB.ADD to register and retrieve error messages. No direct DML against business catalog tables is recorded in the documented metadata; the procedure's documented role centers on validating and preparing the in-memory node collection rather than performing direct inserts or updates itself.

Usage Notes

Because this is a public API (PUB classification), it is intended to be invoked by other packages and by application code rather than being restricted to internal catalog maintenance. The metadata records three other packages that reference AHL_PC_NODE_PUB, indicating it serves as a shared utility within the product catalog processing flow. Typical invocation patterns include:

  • Called from a parent catalog-processing package that builds the PC_NODE_TBL collection and passes it in for bulk validation before further persistence.
  • Invoked within an existing transaction where p_commit is set to FND_API.G_FALSE, allowing the caller to control the commit point and roll back to the PROCESS_NODE_PUB savepoint on error.
  • Used in custom extensions or concurrent processing where node data arrives from an external source and requires standardization (trimming) and mandatory-name enforcement before being accepted.

Callers should observe the standard EBS API contract: check x_return_status for FND_API.G_RET_STS_SUCCESS, G_RET_STS_ERROR, or G_RET_STS_UNEXPECTED_ERROR, and drain the message stack via FND_MSG_PUB.Count_And_Get after a failure. The version compatibility mechanism (Compatible_API_Call) requires that callers pass a p_api_version matching the declared l_api_version of 1.0. Because delete records bypass validation entirely, custom callers must ensure that any downstream persistence logic handles the G_DML_DELETE operation flag correctly, and that the version stored in the source file header (115.7, dated 2003) is reconciled against the deployed 12.1.1 or 12.2.2 environment.