Search Results activity_source_code




Overview

MTL_EAM_ASSET_ACTIVITIES_V is an APPS-owned database view in Oracle E-Business Suite (documented as valid in both 12.1.1 and 12.2.2) that exposes Enterprise Asset Management (EAM) activity associations in a fully denormalized, reporting-ready form. It belongs to the INV — Inventory product family and is defined in the APPS schema. Its stated purpose in the ETRM repository is "View for Asset Activities."

Functionally, the view answers the question: which maintenance activities — the asset activities defined in MTL_EAM_ASSET_ACTIVITIES — are associated with which maintenance objects (assets, rebuildable items, or rebuild groups), and what are the descriptive attributes of those activities? Rather than requiring a report or integration to join EAM activity tables to item master, maintenance defaults, item instances, and lookup tables, this view performs those joins internally and presents a single flat row per activity association. Because it resolves the user-facing ACTIVITY concatenated segment and its ACTIVITY_DESCRIPTION, it is frequently the object reached for when a report or query needs to display an activity by name or description rather than by internal ID. It is read-only and must never be used as a DML target.

Underlying Base Objects

The view is defined over the following documented base objects:

The joins are non-optional in the documented definition: the view filters on EAA.MAINTENANCE_OBJECT_TYPE = 3 and constrains EAM_ORG_MAINT_DEFAULTS to OBJECT_TYPE = 60, so only activity associations whose maintenance object is an asset (item) are returned. Each association is tied back to a specific organization and to the item master record of the activity item.

Key Columns

Common Use Cases and Queries

The view supports EAM reporting, extensions, and interface extracts. Typical scenarios include listing all activities defined for a given asset, resolving an activity name from its description, extracting activity definitions for an external maintenance system, and joining maintenance history to activity metadata.

SELECT activity, activity_description, priority, activity_type
FROM   apps.mtl_eam_asset_activities_v
WHERE  organization_id = 204
AND    UPPER(activity_description) LIKE '%INSPECT%';

To report activities for a specific asset instance:

SELECT instance_number, serial_number, activity, activity_description,
       activity_cause, activity_type, owning_department
FROM   apps.mtl_eam_asset_activities_v
WHERE  instance_number = 'ASSET-10023'
AND    SYSDATE BETWEEN NVL(start_date_active, SYSDATE)
                    AND NVL(end_date_active, SYSDATE);

To exclude template rows when listing live activity definitions:

SELECT activity_description, activity_source, last_service_start_date
FROM   apps.mtl_eam_asset_activities_v
WHERE  template_flag = 'N'
AND    organization_id = :p_org_id;

Because MFG_LOOKUPS is joined five times, the view carries meaningful overhead; queries should always filter by ORGANIZATION_ID, ASSET_ACTIVITY_ID, or ACTIVITY_ASSOCIATION_ID to drive the joins efficiently. The view returns no rows for activity associations that are not tied to an asset-type maintenance object, and consumers should treat ORGANIZATION_ID as a mandatory predicate in multi-org deployments.