Results for “gmd_activities_pub”

36 results




AI-generated from documented ETRM metadata — verify critical details on the linked pages.

Overview

APPS.GMD_ACTIVITIES_PUB is the public application programming interface (API) layer of the Oracle Process Manufacturing (OPM) Activity module, delivered as part of the Oracle E-Business Suite 12.1.1 and 12.2.2 codebase. An "activity" in OPM represents a discrete unit of manufacturing work — such as a process step, task, or operation — that is associated with routing and production definitions. The package body exposes the supported, externally callable interface through which other Oracle EBS modules, Oracle Forms, concurrent programs, and customer extensions can create, modify, and remove activity records in a controlled and validated manner.

The header comment identifies the package as the "public layer of the GMD Activity API," distinguishing it from private or internal helper packages. The original implementation was authored by Sandra Dulyk of OPM Development, with subsequent revisions recorded for defect resolution, including Bug 2679110 (error and validation handling rewrite) and Bug 3222090 (removal of the legacy FND_PROFILE.VALUE('AFLOG_ENABLED') call in favour of the FND_LOG framework).

Key Procedures and Functions

ETRM metadata documents three public procedures, all of which follow the standard Oracle EBS API signature convention with API version, initialization message list, and commit flags plus IN/OUT message and return status parameters. These are never to be reinvented or called with altered parameter lists.

  • INSERT_ACTIVITY — Creates a new activity record. Accepts a PL/SQL table of activity rows of type gmd_activities_pub.gmd_activities_tbl_type, enabling both single and bulk inserts. The procedure performs validation before writing, handles errors internally, and returns message count, message list, and return status.
  • UPDATE_ACTIVITY — Modifies existing activity records identified by their primary keys, applying the same validation and error-handling framework as insertion.
  • DELETE_ACTIVITY — Removes existing activity records. This is the specific procedure the user searched for under the term "delete_activity" and is the documented deletion entry point for OPM activities.

A private helper, set_debug_flag, returns a VARCHAR2 indicator based on FND_LOG level comparison, but is not part of the public contract.

Tables Accessed

The package operates against the following tables via APPS synonyms:

  • GMD_ACTIVITIES — The primary transactional table holding the activity definition and its descriptive attributes. This is the main target of insert, update, and delete operations.
  • GMD_ACTIVITIES_B — The corresponding base (or "_B") table, typically holding the primary key and key-level columns in the OPM data model, used to maintain referential consistency alongside the main table.
  • PLITBLM — A PL/SQL index-by table used internally to manage the bulk collection of activity rows passed in by the caller.

Usage Notes

GMD_ACTIVITIES_PUB is intended to be invoked only through the public procedures listed above. Within Oracle EBS it is commonly called from the OPM Activities setup forms and from concurrent programs that batch-load or maintain activity data. It is also the supported entry point for customer-written custom code and integrations that need to create or delete OPM activities programmatically.

Callers must supply the correct API version, initialise the message list when required, and check x_return_status and x_message_list after every invocation; the package deliberately encapsulates validation and error handling so that direct DML against GMD_ACTIVITIES should never be performed by external code. Because the package uses NOCOPY OUT parameters, callers should treat the returned message structures as authoritative for transaction outcome. The documented dependency shows the package is referenced by one other package, confirming its role as a foundational API in the OPM activity domain.