C_MaintOrderTP
Maintenance Order with Draft
C_MaintOrderTP is a Consumption CDS View that provides data about "Maintenance Order with Draft" in SAP S/4HANA. It reads from 1 data source (I_MaintOrderTP) and exposes 79 fields with key field MaintenanceOrder. It has 8 associations to related views.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_MaintOrderTP | _MaintOrderTP | from |
Associations (8)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..*] | C_MaintOrderOperationTP | _MaintOrderOperationTP | $projection.MaintenanceOrder = _MaintOrderOperationTP.MaintenanceOrder |
| [0..1] | I_MaintOrderPlantDefaults | _PlanningPlantDefaults | $projection.MaintenancePlanningPlant = _PlanningPlantDefaults.Plant |
| [0..*] | C_MaintenanceJobWorkItem | _MaintenanceJobWorkItem | $projection.MaintenanceOrder = _MaintenanceJobWorkItem.MaintenanceOrder |
| [0..*] | I_GenericPriorityText | _PriorityText | _PriorityText.GenericPriorityType = $projection.MaintPriorityType and _PriorityText.PriorityCode = $projection.MaintPriority |
| [0..1] | I_WorkCenter | _WorkCenter | $projection.WorkCenterInternalID = _WorkCenter.WorkCenterInternalID and $projection.WorkCenterTypeCode = _WorkCenter.WorkCenterTypeCode |
| [0..*] | I_WorkCenterText | _WorkCenterText | $projection.WorkCenterInternalID = _WorkCenterText.WorkCenterInternalID and $projection.WorkCenterTypeCode = _WorkCenterText.WorkCenterTypeCode |
| [0..*] | I_OrderTypeText | _OrderTypeText | _OrderTypeText.OrderType = $projection.MaintenanceOrderType |
| [0..1] | I_PMContactCardUser | _PMContactCardUser | _PMContactCardUser.UserID = $projection.CreatedByUser |
Annotations (22)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | CMAINTORDTP | view | |
| VDM.viewType | #CONSUMPTION | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| EndUserText.label | Maintenance Order with Draft | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| ObjectModel.usageType.dataClass | #TRANSACTIONAL | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| ObjectModel.usageType.sizeCategory | #XL | view | |
| ObjectModel.representativeKey | MaintenanceOrder | view | |
| ObjectModel.createEnabled | true | view | |
| ObjectModel.updateEnabled | true | view | |
| ObjectModel.deleteEnabled | true | view | |
| ObjectModel.transactionalProcessingDelegated | true | view | |
| ObjectModel.compositionRoot | true | view | |
| ObjectModel.draftEnabled | true | view | |
| Search.searchable | true | view | |
| UI.headerInfo.description.value | MaintenanceOrderDesc | view | |
| UI.headerInfo.description.type | #STANDARD | view | |
| UI.headerInfo.title.value | MaintenanceOrder | view | |
| UI.headerInfo.title.type | #STANDARD | view | |
| UI.headerInfo.typeName | Maintenance Order | view | |
| UI.headerInfo.typeNamePlural | Maintenance Orders | view |
Fields (79)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | MaintenanceOrder | I_MaintOrderTP | MaintenanceOrder | Order |
| MaintenanceOrderForEdit | I_MaintOrderTP | MaintenanceOrderForEdit | Order | |
| TechnicalObject | I_MaintOrderTP | TechnicalObject | Technical Object | |
| TechObjIsEquipOrFuncnlLoc | I_MaintOrderTP | TechObjIsEquipOrFuncnlLoc | Tech. Obj. Type | |
| MaintPriorityType | I_MaintOrderTP | MaintPriorityType | PriorityType | |
| MaintPriority | I_MaintOrderTP | MaintPriority | Priority | |
| MaintenanceProcessingPhase | I_MaintOrderTP | MaintenanceProcessingPhase | Phase | |
| MaintObjectLocAcctAssgmtNmbr | I_MaintOrderTP | MaintObjectLocAcctAssgmtNmbr | Loc/AccAssmt | |
| MaintenanceNotification | I_MaintOrderTP | MaintenanceNotification | Notification | |
| Equipment | I_MaintOrderTP | Equipment | Equipment check | |
| FunctionalLocation | I_MaintOrderTP | FunctionalLocation | Object ID | |
| MaintenanceItem | I_MaintOrderTP | MaintenanceItem | MaintItem | |
| Assembly | I_MaintOrderTP | Assembly | Pegged Reqmt | |
| SerialNumber | I_MaintOrderTP | SerialNumber | Serial Number | |
| MaintenancePlanningPlant | I_MaintOrderTP | MaintenancePlanningPlant | Planning Plant | |
| MaintenancePlannerGroup | I_MaintOrderTP | MaintenancePlannerGroup | Planner Group | |
| OperationSystemCondition | I_MaintOrderTP | OperationSystemCondition | SystemCondition | |
| MaintenanceRevision | I_MaintOrderTP | MaintenanceRevision | Revision | |
| MaintenancePlan | I_MaintOrderTP | MaintenancePlan | MaintenancePlan | |
| MaintOrderRoutingNumber | I_MaintOrderTP | MaintOrderRoutingNumber | Plan No.f.Oper. | |
| MaintenanceOrderType | I_MaintOrderTP | MaintenanceOrderType | Order Type | |
| MaintenanceOrderCategory | I_MaintOrderTP | MaintenanceOrderCategory | ||
| MaintenanceOrderDesc | I_MaintOrderTP | MaintenanceOrderDesc | Description | |
| MaintOrdBasicStartDate | I_MaintOrderTP | MaintOrdBasicStartDate | Bas. Start Date | |
| MaintOrdBasicEndDate | I_MaintOrderTP | MaintOrdBasicEndDate | Basic fin. date | |
| ScheduledBasicStartDate | I_MaintOrderTP | ScheduledBasicStartDate | Schedule Start Date | |
| ScheduledBasicEndDate | I_MaintOrderTP | ScheduledBasicEndDate | Schedule End Date | |
| LatestAcceptableCompletionDate | I_MaintOrderTP | LatestAcceptableCompletionDate | Final Due Date | |
| MaintenanceOrderInternalID | I_MaintOrderTP | MaintenanceOrderInternalID | Object number | |
| AuthorizationGroup | I_MaintOrderTP | AuthorizationGroup | AuthorizGroup | |
| MaintenancePlant | I_MaintOrderTP | MaintenancePlant | Plant | |
| ControllingArea | I_MaintOrderTP | ControllingArea | Controlling Area | |
| MaintenanceActivityType | I_MaintOrderTP | MaintenanceActivityType | MaintActivType | |
| ResponsibleCostCenter | I_MaintOrderTP | ResponsibleCostCenter | Responsible Cost Center | |
| MaintOrderSourceApplication | I_MaintOrderTP | MaintOrderSourceApplication | ||
| MaintOrdPersonResponsible | I_MaintOrderTP | MaintOrdPersonResponsible | Person Resp. ID | |
| MaintOrdProcessPhaseCode | I_MaintOrderTP | MaintOrdProcessPhaseCode | Phase | |
| EAMProcessPhaseCodeDesc | Phase | |||
| MaintOrdProcessSubPhaseCode | I_MaintOrderTP | MaintOrdProcessSubPhaseCode | Subphase | |
| EAMProcessSubPhaseCodeDesc | Subphase | |||
| WorkCenter | _WorkCenter | WorkCenter | Work Center | |
| AssetManufacturerName | ||||
| TechnicalObjectDescription | ||||
| CreatedByUser | I_MaintOrderTP | CreatedByUser | Created By | |
| FullName | _PMContactCardUser | FullName | Name | |
| CreationDate | I_MaintOrderTP | CreationDate | Created On | |
| _PlanningPlantDefaults | _PlanningPlantDefaults | |||
| _Equipment | I_MaintOrderTP | _Equipment | ||
| _LocationAccountAssignment | I_MaintOrderTP | _LocationAccountAssignment | ||
| _MaintenanceNotification | I_MaintOrderTP | _MaintenanceNotification | ||
| _MaintenanceOrderPhase | I_MaintOrderTP | _MaintenanceOrderPhase | ||
| _MaintenancePlan | I_MaintOrderTP | _MaintenancePlan | ||
| _MaintenancePriority | I_MaintOrderTP | _MaintenancePriority | ||
| _MaintenancePriorityType | I_MaintOrderTP | _MaintenancePriorityType | ||
| _MaintOrderOperationTP | _MaintOrderOperationTP | |||
| _Order | I_MaintOrderTP | _Order | ||
| _OperationSystemCondition | I_MaintOrderTP | _OperationSystemCondition | ||
| _TechnicalObject | I_MaintOrderTP | _TechnicalObject | ||
| _TechObjIsEquipOrFuncnlLoc | I_MaintOrderTP | _TechObjIsEquipOrFuncnlLoc | ||
| _MaintenanceActivityType | I_MaintOrderTP | _MaintenanceActivityType | ||
| _Assembly | I_MaintOrderTP | _Assembly | ||
| _MaintenanceOrderCategory | I_MaintOrderTP | _MaintenanceOrderCategory | ||
| _MaintenanceOrderType | I_MaintOrderTP | _MaintenanceOrderType | ||
| _MaintenancePlannerGroup | I_MaintOrderTP | _MaintenancePlannerGroup | ||
| _MaintenancePlanningPlant | I_MaintOrderTP | _MaintenancePlanningPlant | ||
| _MaintenanceRevision | I_MaintOrderTP | _MaintenanceRevision | ||
| _StatusObject | I_MaintOrderTP | _StatusObject | ||
| _StatusObjectStatus | I_MaintOrderTP | _StatusObjectStatus | ||
| _MaintOrdPersonResponsible | I_MaintOrderTP | _MaintOrdPersonResponsible | ||
| WorkCenterInternalID | I_MaintOrderTP | WorkCenterInternalID | Work Center | |
| WorkCenterTypeCode | I_MaintOrderTP | WorkCenterTypeCode | Object Type | |
| _WorkCenter | _WorkCenter | |||
| _WorkCenterText | _WorkCenterText | |||
| _PriorityText | _PriorityText | |||
| _PMContactCardUser | _PMContactCardUser | |||
| _OrderTypeText | _OrderTypeText | |||
| _EAMProcessPhase | I_MaintOrderTP | _EAMProcessPhase | ||
| _EAMProcessSubPhase | I_MaintOrderTP | _EAMProcessSubPhase | ||
| _MaintenanceJobWorkItem | _MaintenanceJobWorkItem |
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_MaintOrderTP.
-- 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: CMAINTORDTP
CREATE VIEW C_MaintOrderTP AS
SELECT
_MaintOrderTP.MaintenanceOrder AS MaintenanceOrder,
_MaintOrderTP.MaintenanceOrderForEdit AS MaintenanceOrderForEdit,
_MaintOrderTP.TechnicalObject AS TechnicalObject,
_MaintOrderTP.TechObjIsEquipOrFuncnlLoc AS TechObjIsEquipOrFuncnlLoc,
_MaintOrderTP.MaintPriorityType AS MaintPriorityType,
_MaintOrderTP.MaintPriority AS MaintPriority,
_MaintOrderTP.MaintenanceProcessingPhase AS MaintenanceProcessingPhase,
_MaintOrderTP.MaintObjectLocAcctAssgmtNmbr AS MaintObjectLocAcctAssgmtNmbr,
_MaintOrderTP.MaintenanceNotification AS MaintenanceNotification,
_MaintOrderTP.Equipment AS Equipment,
_MaintOrderTP.FunctionalLocation AS FunctionalLocation,
_MaintOrderTP.MaintenanceItem AS MaintenanceItem,
_MaintOrderTP.Assembly AS Assembly,
_MaintOrderTP.SerialNumber AS SerialNumber,
_MaintOrderTP.MaintenancePlanningPlant AS MaintenancePlanningPlant,
_MaintOrderTP.MaintenancePlannerGroup AS MaintenancePlannerGroup,
_MaintOrderTP.OperationSystemCondition AS OperationSystemCondition,
_MaintOrderTP.MaintenanceRevision AS MaintenanceRevision,
_MaintOrderTP.MaintenancePlan AS MaintenancePlan,
_MaintOrderTP.MaintOrderRoutingNumber AS MaintOrderRoutingNumber,
_MaintOrderTP.MaintenanceOrderType AS MaintenanceOrderType,
_MaintOrderTP.MaintenanceOrderCategory AS MaintenanceOrderCategory,
_MaintOrderTP.MaintenanceOrderDesc AS MaintenanceOrderDesc,
_MaintOrderTP.MaintOrdBasicStartDate AS MaintOrdBasicStartDate,
_MaintOrderTP.MaintOrdBasicEndDate AS MaintOrdBasicEndDate,
_MaintOrderTP.ScheduledBasicStartDate AS ScheduledBasicStartDate,
_MaintOrderTP.ScheduledBasicEndDate AS ScheduledBasicEndDate,
_MaintOrderTP.LatestAcceptableCompletionDate AS LatestAcceptableCompletionDate,
_MaintOrderTP.MaintenanceOrderInternalID AS MaintenanceOrderInternalID,
_MaintOrderTP.AuthorizationGroup AS AuthorizationGroup,
_MaintOrderTP.MaintenancePlant AS MaintenancePlant,
_MaintOrderTP.ControllingArea AS ControllingArea,
_MaintOrderTP.MaintenanceActivityType AS MaintenanceActivityType,
_MaintOrderTP.ResponsibleCostCenter AS ResponsibleCostCenter,
_MaintOrderTP.MaintOrderSourceApplication AS MaintOrderSourceApplication,
_MaintOrderTP.MaintOrdPersonResponsible AS MaintOrdPersonResponsible,
_MaintOrderTP.MaintOrdProcessPhaseCode AS MaintOrdProcessPhaseCode,
_MaintOrderTP._EAMProcessPhase._EAMProcessPhaseText[1:Language = $session.system_language].EAMProcessPhaseCodeDesc AS EAMProcessPhaseCodeDesc,
_MaintOrderTP.MaintOrdProcessSubPhaseCode AS MaintOrdProcessSubPhaseCode,
_MaintOrderTP._EAMProcessSubPhase._EAMProcessSubPhaseText[1:Language = $session.system_language].EAMProcessSubPhaseCodeDesc AS EAMProcessSubPhaseCodeDesc,
_WorkCenter.WorkCenter AS WorkCenter,
cast( '' as herst ) AS AssetManufacturerName,
cast( '' as eams_tec_obj_des ) AS TechnicalObjectDescription,
_MaintOrderTP.CreatedByUser AS CreatedByUser,
_PMContactCardUser.FullName AS FullName,
_MaintOrderTP.CreationDate AS CreationDate,
_MaintOrderTP._Equipment AS _Equipment,
_MaintOrderTP._LocationAccountAssignment AS _LocationAccountAssignment,
_MaintOrderTP._MaintenanceNotification AS _MaintenanceNotification,
_MaintOrderTP._MaintenanceOrderPhase AS _MaintenanceOrderPhase,
_MaintOrderTP._MaintenancePlan AS _MaintenancePlan,
_MaintOrderTP._MaintenancePriority AS _MaintenancePriority,
_MaintOrderTP._MaintenancePriorityType AS _MaintenancePriorityType,
_MaintOrderTP._Order AS _Order,
_MaintOrderTP._OperationSystemCondition AS _OperationSystemCondition,
_MaintOrderTP._TechnicalObject AS _TechnicalObject,
_MaintOrderTP._TechObjIsEquipOrFuncnlLoc AS _TechObjIsEquipOrFuncnlLoc,
_MaintOrderTP._MaintenanceActivityType AS _MaintenanceActivityType,
_MaintOrderTP._Assembly AS _Assembly,
_MaintOrderTP._MaintenanceOrderCategory AS _MaintenanceOrderCategory,
_MaintOrderTP._MaintenanceOrderType AS _MaintenanceOrderType,
_MaintOrderTP._MaintenancePlannerGroup AS _MaintenancePlannerGroup,
_MaintOrderTP._MaintenancePlanningPlant AS _MaintenancePlanningPlant,
_MaintOrderTP._MaintenanceRevision AS _MaintenanceRevision,
_MaintOrderTP._StatusObject AS _StatusObject,
_MaintOrderTP._StatusObjectStatus AS _StatusObjectStatus,
_MaintOrderTP._MaintOrdPersonResponsible AS _MaintOrdPersonResponsible,
_MaintOrderTP.WorkCenterInternalID AS WorkCenterInternalID,
_MaintOrderTP.WorkCenterTypeCode AS WorkCenterTypeCode,
_MaintOrderTP._EAMProcessPhase AS _EAMProcessPhase,
_MaintOrderTP._EAMProcessSubPhase AS _EAMProcessSubPhase
FROM I_MaintOrderTP AS _MaintOrderTP
LEFT OUTER JOIN C_MaintOrderOperationTP AS _MaintOrderOperationTP ON MaintenanceOrder = _MaintOrderOperationTP.MaintenanceOrder -- association [0..*]
LEFT OUTER JOIN I_MaintOrderPlantDefaults AS _PlanningPlantDefaults ON MaintenancePlanningPlant = _PlanningPlantDefaults.Plant -- association [0..1]
LEFT OUTER JOIN C_MaintenanceJobWorkItem AS _MaintenanceJobWorkItem ON MaintenanceOrder = _MaintenanceJobWorkItem.MaintenanceOrder -- association [0..*]
LEFT OUTER JOIN I_GenericPriorityText AS _PriorityText ON _PriorityText.GenericPriorityType = MaintPriorityType AND _PriorityText.PriorityCode = MaintPriority -- association [0..*]
LEFT OUTER JOIN I_WorkCenter AS _WorkCenter ON WorkCenterInternalID = _WorkCenter.WorkCenterInternalID AND WorkCenterTypeCode = _WorkCenter.WorkCenterTypeCode -- association [0..1]
LEFT OUTER JOIN I_WorkCenterText AS _WorkCenterText ON WorkCenterInternalID = _WorkCenterText.WorkCenterInternalID AND WorkCenterTypeCode = _WorkCenterText.WorkCenterTypeCode -- association [0..*]
LEFT OUTER JOIN I_OrderTypeText AS _OrderTypeText ON _OrderTypeText.OrderType = MaintenanceOrderType -- association [0..*]
LEFT OUTER JOIN I_PMContactCardUser AS _PMContactCardUser ON _PMContactCardUser.UserID = CreatedByUser -- association [0..1]
;
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