C_TechObjMaintenanceOrder
Maintenance Orders for Technical Object
C_TechObjMaintenanceOrder is a Consumption CDS View that provides data about "Maintenance Orders for Technical Object" in SAP S/4HANA. It reads from 2 data sources (I_MaintenanceOrder, I_MaintenanceOrder) and exposes 55 fields with key field MaintenanceOrder. It has 2 associations to related views.
Data Sources (2)
| Source | Alias | Join Type |
|---|---|---|
| I_MaintenanceOrder | _MaintOrderTechObj | from |
| I_MaintenanceOrder | _MaintOrderTechObj | union_all |
Associations (2)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..1] | I_TechObjIsEquipOrFuncnlLocT | _TechObjIsEquipOrFuncnlLocT | _TechObjIsEquipOrFuncnlLocT.TechObjIsEquipOrFuncnlLoc = 'EAMS_EQUI' and _TechObjIsEquipOrFuncnlLocT.Language = $session.system_language |
| [0..1] | I_EquipmentText | _EquipmentText | _EquipmentText.Equipment = $projection.Equipment and _EquipmentText.Language = $session.system_language |
Annotations (9)
| Name | Value | Level | Field |
|---|---|---|---|
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| AbapCatalog.sqlViewName | CTOMAINTORDER | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| EndUserText.label | Maintenance Orders for Technical Object | view | |
| VDM.viewType | #CONSUMPTION | view | |
| ObjectModel.usageType.serviceQuality | #D | view | |
| ObjectModel.usageType.sizeCategory | #XL | view | |
| ObjectModel.usageType.dataClass | #MIXED | view |
Fields (55)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | MaintenanceOrder | I_MaintenanceOrder | MaintenanceOrder | Equipment check |
| MaintenanceOrderInternalID | I_MaintenanceOrder | MaintenanceOrderInternalID | Object number | |
| MaintenanceOrderType | I_MaintenanceOrder | MaintenanceOrderType | Order Type | |
| OrderTypeName | ||||
| MaintenanceOrderDesc | I_MaintenanceOrder | MaintenanceOrderDesc | Description | |
| CreationDate | I_MaintenanceOrder | CreationDate | Time Stamp | |
| CreationTime | I_MaintenanceOrder | CreationTime | Created At | |
| MaintOrdBasicStartDate | MaintOrdBasicStartDate | Bas. Start Date | ||
| MaintOrdBasicEndDate | MaintOrdBasicEndDate | Basic fin. date | ||
| MaintPriority | ||||
| MaintPriorityDesc | ||||
| TechnicalObjectLabel | Equipment check | |||
| TechnicalObjectDescription | Technical Object Description | |||
| TechObjIsEquipOrFuncnlLoc | Technical Object Type | |||
| TechObjIsEquipOrFuncnlLocDesc | _TechObjIsEquipOrFuncnlLocT | TechObjIsEquipOrFuncnlLocDesc | Technical Object Type Description | |
| MaintenanceOrderCategory | I_MaintenanceOrder | MaintenanceOrderCategory | Order category | |
| CreatedByUser | Created By | |||
| WorkCenter | ||||
| WorkCenterText | ||||
| Equipment | Equipment | Equipment check | ||
| FunctionalLocation | _LocationAccountAssignment | FunctionalLocation | Object ID | |
| MaintenancePlannerGroup | I_MaintenanceOrder | MaintenancePlannerGroup | Planner Group | |
| MaintenancePlanningPlant | I_MaintenanceOrder | MaintenancePlanningPlant | Planning Plant | |
| ResponsibleCostCenter | ||||
| ControllingArea | ||||
| AuthorizationGroup | ||||
| MaintenancePlant | ||||
| MaintenanceOrder | Equipment check | |||
| MaintenanceOrderInternalID | I_MaintenanceOrder | MaintenanceOrderInternalID | Object number | |
| MaintenanceOrderType | I_MaintenanceOrder | MaintenanceOrderType | Order Type | |
| OrderTypeName | ||||
| MaintenanceOrderDesc | I_MaintenanceOrder | MaintenanceOrderDesc | Description | |
| CreationDate | Time Stamp | |||
| CreationTime | ||||
| MaintOrdBasicStartDate | MaintOrdBasicStartDate | Bas. Start Date | ||
| MaintOrdBasicEndDate | MaintOrdBasicEndDate | Basic fin. date | ||
| MaintPriority | ||||
| MaintPriorityDesc | ||||
| TechnicalObjectLabel | Equipment check | |||
| TechnicalObjectDescription | ||||
| TechObjIsEquipOrFuncnlLoc | ||||
| TechObjIsEquipOrFuncnlLocDesc | _TechObjIsEquipOrFuncnlLocT | TechObjIsEquipOrFuncnlLocDesc | TObj.Type Desc. | |
| MaintenanceOrderCategory | I_MaintenanceOrder | MaintenanceOrderCategory | Order category | |
| CreatedByUser | ||||
| WorkCenter | ||||
| WorkCenterText | ||||
| Equipment | Equipment | Equipment check | ||
| FunctionalLocation | _LocationAccountAssignment | FunctionalLocation | Object ID | |
| MaintenancePlannerGroup | I_MaintenanceOrder | MaintenancePlannerGroup | Planner Group | |
| MaintenancePlanningPlant | I_MaintenanceOrder | MaintenancePlanningPlant | Planning Plant | |
| ResponsibleCostCenter | ||||
| ControllingArea | ||||
| AuthorizationGroup | ||||
| MaintenancePlant | ||||
| TechnicalObject |
Derived SQL interpretation, reconstructed from the parsed view metadata (data sources, associations, and field mappings). SAP annotations are omitted and the structure is reformulated as SQL — this is a functional approximation, not the verbatim SAP source.
-- Derived SQL interpretation of CDS view C_TechObjMaintenanceOrder.
-- Reconstructed from parsed metadata (data sources, associations, fields).
-- SAP annotations are omitted and the structure is reformulated as SQL;
-- this is a functional approximation, not the verbatim SAP source. Some join
-- conditions may be unavailable and a few CDS constructs are kept as-is.
-- SQL view name: CTOMAINTORDER
CREATE VIEW C_TechObjMaintenanceOrder AS
SELECT
_MaintOrderTechObj.MaintenanceOrder AS MaintenanceOrder,
_MaintOrderTechObj.MaintenanceOrderInternalID AS MaintenanceOrderInternalID,
_MaintOrderTechObj.MaintenanceOrderType AS MaintenanceOrderType,
_MaintOrderTechObj._Order._OrderType._Text[1:Language=$session.system_language].OrderTypeName AS OrderTypeName,
_MaintOrderTechObj.MaintenanceOrderDesc AS MaintenanceOrderDesc,
_MaintOrderTechObj.CreationDate AS CreationDate,
_MaintOrderTechObj.CreationTime AS CreationTime,
MaintOrdBasicStartDate,
MaintOrdBasicEndDate,
_MaintOrderTechObj._MaintenancePriority._Text[1:Language=$session.system_language].MaintPriority AS MaintPriority,
_MaintOrderTechObj._MaintenancePriority._Text[1:Language=$session.system_language].MaintPriorityDesc AS MaintPriorityDesc,
cast( Equipment as eams_tech_obj_conv ) AS TechnicalObjectLabel,
cast( _EquipmentText.EquipmentName as eams_tec_obj_des ) AS TechnicalObjectDescription,
cast ( 'EAMS_EQUI' as eams_tec_obj_type_value) AS TechObjIsEquipOrFuncnlLoc,
_TechObjIsEquipOrFuncnlLocT.TechObjIsEquipOrFuncnlLocDesc AS TechObjIsEquipOrFuncnlLocDesc,
_MaintOrderTechObj.MaintenanceOrderCategory AS MaintenanceOrderCategory,
_MaintOrderTechObj._Order.CreatedByUser AS CreatedByUser,
_MaintOrderTechObj._Order._WorkCenter.WorkCenter AS WorkCenter,
_MaintOrderTechObj._Order._WorkCenter._Text[1:Language=$session.system_language].WorkCenterText AS WorkCenterText,
Equipment,
_LocationAccountAssignment.FunctionalLocation AS FunctionalLocation,
_MaintOrderTechObj.MaintenancePlannerGroup AS MaintenancePlannerGroup,
_MaintOrderTechObj.MaintenancePlanningPlant AS MaintenancePlanningPlant,
_MaintOrderTechObj._Order.ResponsibleCostCenter AS ResponsibleCostCenter,
_MaintOrderTechObj._Order.ControllingArea AS ControllingArea,
_LocationAccountAssignment._FunctionalLocation.AuthorizationGroup AS AuthorizationGroup,
_LocationAccountAssignment._WorkCenter.Plant AS MaintenancePlant,
cast( _LocationAccountAssignment.FunctionalLocation as eams_tec_obj ) AS TechnicalObject
FROM I_MaintenanceOrder AS _MaintOrderTechObj
LEFT OUTER JOIN I_TechObjIsEquipOrFuncnlLocT AS _TechObjIsEquipOrFuncnlLocT ON _TechObjIsEquipOrFuncnlLocT.TechObjIsEquipOrFuncnlLoc = 'EAMS_EQUI' AND _TechObjIsEquipOrFuncnlLocT.Language = $session.system_language -- association [0..1]
LEFT OUTER JOIN I_EquipmentText AS _EquipmentText ON _EquipmentText.Equipment = Equipment AND _EquipmentText.Language = $session.system_language -- association [0..1]
-- UNION ALL with additional select branch(es): I_MaintenanceOrder
;
Learn More
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- CDS View Annotations — A Complete Guide
- What Is a CDS View in SAP S/4HANA?
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- CDS View Field Mapping and Associations
- Understanding the SAP S/4HANA Data Model
- CDS View Extensions and Custom Fields in SAP S/4HANA
- Released APIs and Stability Contracts in SAP S/4HANA
- BSEG to ACDOCA: The Universal Journal Migration
- Business Partner Migration: KNA1/LFA1 to BUT000
- Material Document Migration: MSEG/MKPF to MATDOC
- How to Find the Right CDS View for an SAP Table
- BW Extractor to CDS View Migration Guide
- S/4HANA CDS View Deprecation: What You Need to Know
- ABAP CDS View Tutorial — From Basics to Real-World Examples
- RAP and CDS Views — Building Transactional Apps in SAP S/4HANA
- Sales Document Status Migration: VBUP/VBUK Removal in S/4HANA
- CO Tables in S/4HANA: COEP, COBK, COSS, COSP to ACDOCA