C_MaintOrderOpPhaseControl
Maintenance Order Op Phase Control
C_MaintOrderOpPhaseControl is a Consumption CDS View that provides data about "Maintenance Order Op Phase Control" in SAP S/4HANA. It reads from 1 data source (I_MaintOrderOpPhaseControl) and exposes 30 fields with key fields MaintenanceOrder, MaintenanceOrderOperation, MaintenanceOrderSubOperation, MaintenancePhaseControl. It has 3 associations to related views. It is exposed through 1 OData service (UI_MAINTENANCEORDER_MANAGE).
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_MaintOrderOpPhaseControl | MaintOrderOpPhaseControl | from |
Associations (3)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..*] | I_EAMProcessPhaseText | _EAMProcessPhaseText | _EAMProcessPhaseText.EAMProcessPhaseCode = $projection.EAMProcessPhaseCode |
| [0..*] | I_EAMProcessSubPhaseText | _EAMProcessSubPhaseText | _EAMProcessSubPhaseText.EAMProcessSubPhaseCode = $projection.EAMProcessSubPhaseCode |
| [0..*] | I_MaintObjPhaseControlStateTxt | _MaintObjPhaseControlStateTxt | _MaintObjPhaseControlStateTxt.MaintObjPhaseControlStateCode = $projection.MaintObjPhaseControlStateCode |
Annotations (8)
| Name | Value | Level | Field |
|---|---|---|---|
| EndUserText.label | Maintenance Order Op Phase Control | view | |
| AccessControl.authorizationCheck | #MANDATORY | view | |
| Metadata.allowExtensions | true | view | |
| Metadata.ignorePropagatedAnnotations | true | view | |
| VDM.viewType | #CONSUMPTION | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| ObjectModel.usageType.sizeCategory | #XL | view | |
| ObjectModel.usageType.dataClass | #MIXED | view |
OData Services (1)
| Service | Binding | Version | Contract | Release |
|---|---|---|---|---|
| UI_MAINTENANCEORDER_MANAGE | UI_MAINTENANCEORDER_MANAGE | V4 | C1 | NOT_RELEASED |
Fields (30)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | MaintenanceOrder | I_MaintOrderOpPhaseControl | MaintenanceOrder | Order |
| KEY | MaintenanceOrderOperation | I_MaintOrderOpPhaseControl | MaintenanceOrderOperation | Suboperation |
| KEY | MaintenanceOrderSubOperation | I_MaintOrderOpPhaseControl | MaintenanceOrderSubOperation | Suboperation |
| KEY | MaintenancePhaseControl | I_MaintOrderOpPhaseControl | MaintenancePhaseControl | Phase Control |
| MaintenancePhaseControlName | I_MaintOrderOpPhaseControl | MaintenancePhaseControlName | Phase Control | |
| MaintenancePhaseControlText | I_MaintOrderOpPhaseControl | MaintenancePhaseControlText | Description | |
| MaintPhseCtrlIsSetAutomly | I_MaintOrderOpPhaseControl | MaintPhseCtrlIsSetAutomly | Set Automatically | |
| MaintPhaseControlAuthorityCode | I_MaintOrderOpPhaseControl | MaintPhaseControlAuthorityCode | Authorization Key | |
| MaintProcgPhseCtrlActvtnCode | I_MaintOrderOpPhaseControl | MaintProcgPhseCtrlActvtnCode | Phase Control Key | |
| EAMProcessPhaseCode | I_MaintOrderOpPhaseControl | EAMProcessPhaseCode | Process Phase | |
| EAMProcessSubPhaseCode | I_MaintOrderOpPhaseControl | EAMProcessSubPhaseCode | Process Subphase | |
| MaintObjPhseCtrlStatusIsActive | I_MaintOrderOpPhaseControl | MaintObjPhseCtrlStatusIsActive | ||
| StatusObject | I_MaintOrderOpPhaseControl | StatusObject | Status Object | |
| MaintenanceUserStatusCode | I_MaintOrderOpPhaseControl | MaintenanceUserStatusCode | User status | |
| EAMOverallStatusProfile | I_MaintOrderOpPhaseControl | EAMOverallStatusProfile | Ovrl Sts Profile | |
| MaintUserStatusProfileCode | I_MaintOrderOpPhaseControl | MaintUserStatusProfileCode | Status Profile | |
| MaintenanceOrderType | I_MaintOrderOpPhaseControl | MaintenanceOrderType | Order Type | |
| MaintenancePlanningPlant | I_MaintOrderOpPhaseControl | MaintenancePlanningPlant | Planning Plant | |
| EAMBlockerCodeEntityType | I_MaintOrderOpPhaseControl | EAMBlockerCodeEntityType | Entity | |
| MaintObjPhaseControlStateCode | I_MaintOrderOpPhaseControl | MaintObjPhaseControlStateCode | ||
| MaintProcgPhseCtrlActvtnDesc | ||||
| EAMProcessPhaseCodeDesc | ||||
| EAMProcessSubPhaseCodeDesc | ||||
| MaintObjPhaseControlStateDesc | ||||
| MaintOrdOpProcessPhaseCode | ||||
| MaintOrdOpProcessSubPhaseCode | ||||
| _MaintObjPhseCtrlCodeChgSet | I_MaintOrderOpPhaseControl | _MaintObjPhseCtrlCodeChgSet | ||
| _MaintObjPhseCtrlCodeChgReset | I_MaintOrderOpPhaseControl | _MaintObjPhseCtrlCodeChgReset | ||
| _MaintenanceOrder | I_MaintOrderOpPhaseControl | _MaintenanceOrder | ||
| _MaintenanceOrderOperation | I_MaintOrderOpPhaseControl | _MaintenanceOrderOperation |
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_MaintOrderOpPhaseControl.
-- 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.
CREATE VIEW C_MaintOrderOpPhaseControl AS
SELECT
MaintOrderOpPhaseControl.MaintenanceOrder AS MaintenanceOrder,
MaintOrderOpPhaseControl.MaintenanceOrderOperation AS MaintenanceOrderOperation,
MaintOrderOpPhaseControl.MaintenanceOrderSubOperation AS MaintenanceOrderSubOperation,
MaintOrderOpPhaseControl.MaintenancePhaseControl AS MaintenancePhaseControl,
MaintOrderOpPhaseControl.MaintenancePhaseControlName AS MaintenancePhaseControlName,
MaintOrderOpPhaseControl.MaintenancePhaseControlText AS MaintenancePhaseControlText,
MaintOrderOpPhaseControl.MaintPhseCtrlIsSetAutomly AS MaintPhseCtrlIsSetAutomly,
MaintOrderOpPhaseControl.MaintPhaseControlAuthorityCode AS MaintPhaseControlAuthorityCode,
MaintOrderOpPhaseControl.MaintProcgPhseCtrlActvtnCode AS MaintProcgPhseCtrlActvtnCode,
MaintOrderOpPhaseControl.EAMProcessPhaseCode AS EAMProcessPhaseCode,
MaintOrderOpPhaseControl.EAMProcessSubPhaseCode AS EAMProcessSubPhaseCode,
MaintOrderOpPhaseControl.MaintObjPhseCtrlStatusIsActive AS MaintObjPhseCtrlStatusIsActive,
MaintOrderOpPhaseControl.StatusObject AS StatusObject,
MaintOrderOpPhaseControl.MaintenanceUserStatusCode AS MaintenanceUserStatusCode,
MaintOrderOpPhaseControl.EAMOverallStatusProfile AS EAMOverallStatusProfile,
MaintOrderOpPhaseControl.MaintUserStatusProfileCode AS MaintUserStatusProfileCode,
MaintOrderOpPhaseControl.MaintenanceOrderType AS MaintenanceOrderType,
MaintOrderOpPhaseControl.MaintenancePlanningPlant AS MaintenancePlanningPlant,
MaintOrderOpPhaseControl.EAMBlockerCodeEntityType AS EAMBlockerCodeEntityType,
MaintOrderOpPhaseControl.MaintObjPhaseControlStateCode AS MaintObjPhaseControlStateCode,
MaintOrderOpPhaseControl._MaintPhseCtrlActivationCode._MaintPhseCtrlActvtnCodeTxt[1:Language = $session.system_language ].MaintProcgPhseCtrlActvtnDesc AS MaintProcgPhseCtrlActvtnDesc,
_EAMProcessPhaseText[1:Language = $session.system_language ].EAMProcessPhaseCodeDesc AS EAMProcessPhaseCodeDesc,
_EAMProcessSubPhaseText[1:Language = $session.system_language ].EAMProcessSubPhaseCodeDesc AS EAMProcessSubPhaseCodeDesc,
_MaintObjPhaseControlStateTxt[1:Language = $session.system_language ].MaintObjPhaseControlStateDesc AS MaintObjPhaseControlStateDesc,
MaintOrderOpPhaseControl._MaintenanceOrderOperation.MaintOrdOpProcessPhaseCode AS MaintOrdOpProcessPhaseCode,
MaintOrderOpPhaseControl._MaintenanceOrderOperation.MaintOrdOpProcessSubPhaseCode AS MaintOrdOpProcessSubPhaseCode,
MaintOrderOpPhaseControl._MaintObjPhseCtrlCodeChgSet AS _MaintObjPhseCtrlCodeChgSet,
MaintOrderOpPhaseControl._MaintObjPhseCtrlCodeChgReset AS _MaintObjPhseCtrlCodeChgReset,
MaintOrderOpPhaseControl._MaintenanceOrder AS _MaintenanceOrder,
MaintOrderOpPhaseControl._MaintenanceOrderOperation AS _MaintenanceOrderOperation
FROM I_MaintOrderOpPhaseControl AS MaintOrderOpPhaseControl
LEFT OUTER JOIN I_EAMProcessPhaseText AS _EAMProcessPhaseText ON _EAMProcessPhaseText.EAMProcessPhaseCode = EAMProcessPhaseCode -- association [0..*]
LEFT OUTER JOIN I_EAMProcessSubPhaseText AS _EAMProcessSubPhaseText ON _EAMProcessSubPhaseText.EAMProcessSubPhaseCode = EAMProcessSubPhaseCode -- association [0..*]
LEFT OUTER JOIN I_MaintObjPhaseControlStateTxt AS _MaintObjPhaseControlStateTxt ON _MaintObjPhaseControlStateTxt.MaintObjPhaseControlStateCode = MaintObjPhaseControlStateCode -- association [0..*]
;
Learn More
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- OData Services in SAP S/4HANA Explained
- Service Bindings and Service Definitions in SAP S/4HANA
- 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