C_MaintOrderOpPhaseControl

DDL: C_MAINTORDEROPPHASECONTROL Type: view_entity CONSUMPTION

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)

SourceAliasJoin Type
I_MaintOrderOpPhaseControl MaintOrderOpPhaseControl from

Associations (3)

CardinalityTargetAliasCondition
[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)

NameValueLevelField
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)

ServiceBindingVersionContractRelease
UI_MAINTENANCEORDER_MANAGE UI_MAINTENANCEORDER_MANAGE V4 C1 NOT_RELEASED

Fields (30)

KeyFieldSource TableSource FieldDescription
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..*]
;