Search Results update_item_instance




Overview

The APPS.JTM_ITEM_INSTANCE_VUHK package body is an Oracle E-Business Suite hook (or "VUHK" — Versioned User Hook) implementation that extends the standard Item Instance public API JTM_ITEM_INSTANCE_PUB without modifying its delivered source. Its principal business function is to allow customer- or partner-specific logic to execute at defined points in the Item Instance lifecycle — specifically before and after an update, and after a create. In EBS Release 12.1.1 and 12.2.2, the Item Instance entity is part of the CRM/Telesales foundation (JTM schema family), representing a tracked occurrence of a product or item associated with a customer-facing activity. This hook package provides the extensibility mechanism through which sites inject custom behavior into those operations while Oracle's seeded API remains upgrade-safe.

Key Procedures and Functions

  • CREATE_ITEM_INSTANCE_POST — The post-processing hook for the Item Instance create operation. It queries the JTF_HOOKS_DATA repository for registered hook packages mapped to CREATE_ITEM_INSTANCE under JTM_ITEM_INSTANCE_PUB, evaluates the user's execute flag against a profile check (via JTM_PROFILE_UTL_PKG.Get_enable_flag_at_resp), and dynamically invokes each qualifying hook API using DBMS_SQL. Invocation is wrapped in an exception handler so a failing hook does not abort the base operation.
  • UPDATE_ITEM_INSTANCE_PRE — The pre-processing hook for the Item Instance update operation. Its purpose is to run registered hook logic before the core update proceeds, allowing custom validation, defaulting, or data preparation.
  • UPDATE_ITEM_INSTANCE_POST — The post-processing hook for the Item Instance update operation, invoked after the base update completes so that registered custom logic (notification, synchronization, or dependent data maintenance) can run once the changes are committed.

Each procedure is driven by the internal cursor Get_hook_info, which selects HOOK_PACKAGE, HOOK_API, EXECUTE_FLAG, and PRODUCT_CODE from JTF_HOOKS_DATA filtered by API name, processing type, execute_flag = 'Y', and hook type 'V'.

Tables Accessed

  • JTF_HOOKS_DATA — The core metadata table driving extensibility. This package reads it to resolve which hook packages are registered for the Item Instance APIs, their enabled status, and the associated product code used for profile-based enablement checks.
  • DBMS_SQL — Oracle's built-in dynamic SQL package. It is used to open a cursor, parse the constructed anonymous block referencing the resolved hook package and API, bind the API parameters, and execute the call. This decouples the hook from compile-time dependencies on customer code.

Usage Notes

This package is not invoked directly by end users. It is registered as a hook target for JTM_ITEM_INSTANCE_PUB and fires automatically whenever the base create or update APIs execute, through the standard Oracle hook framework. Because the executed hook body is dynamically assembled and wrapped in a WHEN OTHERS THEN NULL handler, failures inside registered hooks are silently suppressed at the base-API level, so hook developers must implement their own logging if they require visibility. Enablement is controlled both by the EXECUTE_FLAG in JTF_HOOKS_DATA and by the responsibility-level profile check, meaning the same hook may be active for one responsibility and inactive for another. Typical usage arises in customizations that must keep external systems synchronized with Item Instance changes whenever no public business event exists for that entity. The package is documented as an OTHER classification object referenced by zero other packages, confirming it is a leaf-level extensibility hook rather than a general-purpose API.