Search Results ahl_space_assignments_pk




Overview

The AHL_SPACE_ASSIGNMENTS table is a core data object within the Oracle E-Business Suite module for Complex Maintenance, Repair, and Overhaul (CMRO), designated by the AHL product code. Its primary function is to store transactional records that define the physical location assignments for maintenance activities. Specifically, it acts as a junction table, establishing and maintaining the relationship between a maintenance visit (work order) and a specific physical space or bay within a maintenance facility. This enables precise tracking of where an asset is located for service, which is critical for shop floor control, capacity planning, and resource scheduling in an MRO environment.

Key Information Stored

While the full column list is not detailed in the provided metadata, the documented primary and foreign keys reveal the table's essential structure. The central column is SPACE_ASSIGNMENT_ID, which serves as the unique primary key identifier for each assignment record. Two critical foreign key columns define the relationship: VISIT_ID, which links to a specific maintenance work order or task in the AHL_VISITS_B table, and SPACE_ID, which links to a defined physical location (e.g., hangar, workshop bay) in the AHL_SPACES_B table. The table likely also includes standard audit columns (CREATION_DATE, CREATED_BY, etc.), status flags, and potentially effective date ranges to manage assignment history.

Common Use Cases and Queries

This table is central to operational reporting and process execution in CMRO. A common use case is generating a real-time shop floor status report showing all assets currently in the facility and their assigned locations. Another is validating space availability before scheduling a new visit. A typical query would join AHL_SPACE_ASSIGNMENTS to AHL_VISITS_B and AHL_SPACES_B to list all active assignments, including visit details and space descriptions.

SELECT vs.visit_number, sp.space_name, asa.creation_date
FROM ahl_space_assignments asa,
     ahl_visits_b vs,
     ahl_spaces_b sp
WHERE asa.visit_id = vs.visit_id
  AND asa.space_id = sp.space_id
  AND asa.date_to IS NULL; -- Assuming a date column for active assignment

Data from this table is also integral to APIs and user interfaces for assigning, moving, or releasing an asset from a space during the maintenance workflow.

Related Objects

The table has defined foreign key relationships with two key base tables in the AHL schema, as per the provided metadata:

  • AHL_VISITS_B: The relationship is established via the column AHL_SPACE_ASSIGNMENTS.VISIT_ID. This links each space assignment to a specific maintenance visit or work order.
  • AHL_SPACES_B: The relationship is established via the column AHL_SPACE_ASSIGNMENTS.SPACE_ID. This links each assignment to a defined physical location master record.

Applications will typically access this data through higher-level views or public APIs rather than directly querying the table. The primary key constraint AHL_SPACE_ASSIGNMENTS_PK on SPACE_ASSIGNMENT_ID ensures the uniqueness of each record.