Search Results instantiate_counters




Overview

APPS.CSI_COUNTER_TEMPLATE_PUB is a public PL/SQL API package within the Oracle E-Business Suite Install Base (CSI) module. It provides the programmatic interface for defining, maintaining, and instantiating counter templates and counter groups, as well as for associating inventory items with counter groups or individual counters. Counters are the meter objects (for example, unit, copy, or click counters) tracked against installed items, and counter templates exist to standardize how those counters are created across large populations of items. The package is compiled with AUTHID CURRENT_USER, meaning execution privileges and schema resolution follow the calling user, and it exposes a set of global constants (G_PKG_NAME, G_FILE_NAME) plus two PL/SQL record and table types — ctr_template_autoinst_rec/tbl and counter_autoinstantiate_rec/tbl — that carry counter and group identifiers for bulk instantiation operations. In release 12.1.1 and 12.2.2 the package retains the same public surface, with the source header referencing csipctts.pls 120.3.12010000.1 (2008/07/25). The object is referenced by eight other packages, indicating it sits on a well-trodden integration path used by Install Base setup, service, and contract flows.

Key Procedures and Functions

The 18 documented entry points group naturally into creation, update, retrieval, instantiation, and deletion operations. All follow the standard EBS API convention of p_api_version, p_commit, p_init_msg_list, p_validation_level, and x_return_status / x_msg_count / x_msg_data parameters.

Tables Accessed

The package reads and writes through APPS synonyms. CSI_COUNTER_TEMPLATE_B stores the base counter template definitions. CSI_CTR_ITEM_ASSOCIATIONS is the central intersection table holding item-to-counter and item-to-group associations, written by CREATE_ITEM_ASSOCIATION and UPDATE_ITEM_ASSOCIATION and cleared by DELETE_ITEM_ASSOCIATION. CS_CSI_COUNTER_GROUPS holds counter group headers used by CREATE_COUNTER_GROUP and the instantiation procedures. MTL_SYSTEM_ITEMS_B, MTL_SYSTEM_ITEMS_KFV, and MTL_PARAMETERS provide item validation and descriptive flexfield key information for the items being associated, ensuring that only valid, installed items in the current operating unit are linked. PLITBLM is the standard EBS PL/SQL message table used to accumulate API error messages returned through x_msg_count and x_msg_data.

Usage Notes

CSI_COUNTER_TEMPLATE_PUB is normally invoked from Install Base setup forms, from concurrent programs that bulk-instantiate counters across item populations, and from custom PL/SQL that automates counter provisioning during item onboarding or service contract activation. Callers should initialize the message list, pass a valid API version, and choose p_commit carefully: when several procedures are chained in one logical transaction, commit once at the end. Because the package is AUTHID CURRENT_USER and referenced by eight other packages, embedded calls typically resolve through the APPS schema. The presence of CREATE_ITEM_ASSOCIATION and DELETE_ITEM_ASSOCIATION makes this package the supported route for programmatic maintenance of counter-to-item links, rather than direct DML against CSI_CTR_ITEM_ASSOCIATIONS.