C_ProjSchedOperationGraph

DDL: C_PROJSCHEDOPERATIONGRAPH SQL: COPERATIONGROVW Type: view CONSUMPTION Package: ODATA_PROJECT_SCHEDULE

Operation Graph Overview

C_ProjSchedOperationGraph is a Consumption CDS View that provides data about "Operation Graph Overview" in SAP S/4HANA. It reads from 1 data source (I_NetworkActivityByInternalKey) and exposes 59 fields with key fields OrderInternalBillOfOperations, NetworkActivityInternalID. It has 15 associations to related views. It is exposed through 1 OData service (UI_PROJECTOBJECTHIERARCHY). Part of development package ODATA_PROJECT_SCHEDULE.

Data Sources (1)

SourceAliasJoin Type
I_NetworkActivityByInternalKey NetworkActivity from

Associations (15)

CardinalityTargetAliasCondition
[1..1] I_NetworkActivityDatesQuantity _NetworkActivityDatesQuantity $projection.OrderInternalBillOfOperations = _NetworkActivityDatesQuantity.ProjectNetworkInternalID and $projection.NetworkActivityInternalID = _NetworkActivityDatesQuantity.NetworkActivityInternalID
[0..1] I_ProjSchedMaintOrderData _MaintenanceOrder $projection.OrderInternalBillOfOperations = _MaintenanceOrder.OrderInternalBillOfOperations
[0..1] C_ProjectShedMaintOrderGraph _WorkOrderGraphOverview $projection.MaintenanceOrder = _WorkOrderGraphOverview.MaintenanceOrder
[0..1] I_StatusObjectStatusBasic _ActivityConfirmed $projection.NetworkActivityObject = _ActivityConfirmed.StatusObject and _ActivityConfirmed.StatusCode = 'I0009'
[0..1] I_StatusObjectStatusBasic _ActivityPartiallyConfirmed $projection.NetworkActivityObject = _ActivityPartiallyConfirmed.StatusObject and _ActivityPartiallyConfirmed.StatusCode = 'I0010'
[0..1] I_OperationControlProfileText _OperationControlProfileText $projection.OperationControlKey = _OperationControlProfileText.OperationControlProfile and _OperationControlProfileText.Language = $session.system_language
[0..1] I_Plant _Plant $projection.Plant = _Plant.Plant
[0..1] I_MaterialText _AssemblyText $projection.Assembly = _AssemblyText.Material and _AssemblyText.Language = $session.system_language
[0..1] I_EquipmentText _EquipmentText $projection.Equipment = _EquipmentText.Equipment and _EquipmentText.Language = $session.system_language
[0..1] I_FunctionalLocationLabel _FunctionalLocationLabel $projection.FunctionalLocation = _FunctionalLocationLabel.FunctionalLocation
[0..1] I_FunctionalLocationText _FunctionalLocationText $projection.FunctionalLocation = _FunctionalLocationText.FunctionalLocation and _FunctionalLocationText.Language = $session.system_language
[0..*] I_EAMProcessPhaseText _EAMProcessPhaseText $projection.MaintOrdProcessPhaseCode = _EAMProcessPhaseText.EAMProcessPhaseCode
[0..*] I_EAMProcessSubPhaseText _EAMProcessSubPhaseText $projection.MaintOrdProcessSubPhaseCode = _EAMProcessSubPhaseText.EAMProcessSubPhaseCode
[0..*] C_ProjectNetworkRelationship _Successor _Successor.PredecessorProjNtwkIntID = $projection.OrderInternalBillOfOperations and _Successor.PredecessorNtwkActyIntID = $projection.NetworkActivityInternalID
[0..*] C_ProjectNetworkRelationship _Predecessor _Predecessor.SuccessorProjNtwkIntID = $projection.OrderInternalBillOfOperations and _Predecessor.SuccessorNtwkActyIntID = $projection.NetworkActivityInternalID

Annotations (12)

NameValueLevelField
AbapCatalog.sqlViewName COPERATIONGROVW view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
AccessControl.authorizationCheck #CHECK view
EndUserText.label Operation Graph Overview view
VDM.viewType #CONSUMPTION view
ObjectModel.usageType.serviceQuality #D view
ObjectModel.usageType.sizeCategory #XL view
ObjectModel.usageType.dataClass #MIXED view
ClientHandling.algorithm #SESSION_VARIABLE view
Metadata.ignorePropagatedAnnotations true view
Metadata.allowExtensions true view

OData Services (1)

ServiceBindingVersionContractRelease
UI_PROJECTOBJECTHIERARCHY UI_PS_PROJECT_SCHEDULE_SRV V2 C1 NOT_RELEASED

Fields (59)

KeyFieldSource TableSource FieldDescription
KEY OrderInternalBillOfOperations
KEY NetworkActivityInternalID I_NetworkActivityByInternalKey NetworkActivityInternalID Counter
MaintenanceOrder _MaintenanceOrder MaintenanceOrder Order
MaintenanceOrderOperation I_NetworkActivityByInternalKey NetworkActivity Operation
WBSElementExternalID WBS Element ID
OperationDescription I_NetworkActivityByInternalKey NetworkActivityDescription Operation Description
OrderDescription _MaintenanceOrder OrderDescription Order Name
WBSDescription WBS Element Name
OrderType _MaintenanceOrder OrderType Order Type
MaintenanceOrderTypeName Order Type Name
OperationControlKey I_NetworkActivityByInternalKey NetworkActivityControlProfile Control Key
OperationControlProfileName
OperationWorkCenter Work Center
WorkCenterText
Plant I_NetworkActivityByInternalKey Plant Plant
PlantName _Plant PlantName Plant Name
Assembly I_NetworkActivityByInternalKey Assembly Assembly
AssemblyName _AssemblyText MaterialName Material Description
FunctionalLocation I_NetworkActivityByInternalKey FunctionalLocation Functional Location
FunctionalLocationLabelName _FunctionalLocationLabel FunctionalLocationLabelName Functional Loc.
FunctionalLocationName _FunctionalLocationText FunctionalLocationName Functional Location
Equipment I_NetworkActivityByInternalKey Equipment Equipment
EquipmentName _EquipmentText EquipmentName Tech. Obj. Desc
IsMarkedForDeletion I_NetworkActivityByInternalKey IsMarkedForDeletion Flagged for Deletion
NetworkActivityObject I_NetworkActivityByInternalKey NetworkActivityObject Val. Obj. No.
SchedldBasicEarliestStartDate _NetworkActivityDatesQuantity SchedldBasicEarliestStartDate Earliest Start Date
SchedldBasicEarliestEndDate _NetworkActivityDatesQuantity SchedldBasicEarliestEndDate Earliest Finish Date
SchedldBasicLatestStartDate _NetworkActivityDatesQuantity SchedldBasicLatestStartDate Latest Start Date
ScheduledBasicLatestEndDate _NetworkActivityDatesQuantity ScheduledBasicLatestEndDate Latest Finish Date
StandardDuration _NetworkActivityDatesQuantity StandardDuration Duration
StandardDurationUnit _NetworkActivityDatesQuantity StandardDurationUnit
ActualStartDate _NetworkActivityDatesQuantity ActualStartDate Actual Exec. Start Date
ActualEndDate _NetworkActivityDatesQuantity ActualEndDate Actual Exec. Finish Date
ActyConfFcstdEndDate _NetworkActivityDatesQuantity ActyConfFcstdEndDate Forecast Finish
ActyBscStartDateConstraintType _NetworkActivityDatesQuantity ActyBscStartDateConstraintType Start Restriction
ActyBscStartDateConstraintText Start Restriction Text
ActyBscEndDateConstraintType _NetworkActivityDatesQuantity ActyBscEndDateConstraintType End Restriction
ActyBscEndDateConstraintText End Restriction Text
ConstraintDateForBscStartDate _NetworkActivityDatesQuantity ConstraintDateForBscStartDate Start Restriction Date
ConstraintDateForBscEndDate _NetworkActivityDatesQuantity ConstraintDateForBscEndDate End Restriction Date
TotalFloatForBasicDates _NetworkActivityDatesQuantity TotalFloatForBasicDates Total Float
BasicDatesFreeFloat _NetworkActivityDatesQuantity BasicDatesFreeFloat Free Float
PlannedWorkQuantity _NetworkActivityDatesQuantity PlannedWorkQuantity Planned Work
ActualWorkQuantity _NetworkActivityDatesQuantity ActualWorkQuantity Actual Work
NtwkActivityWorkQuantityUnit _NetworkActivityDatesQuantity NtwkActivityWorkQuantityUnit
Version
MaintOrdProcessPhaseCode I_NetworkActivityByInternalKey MaintOrdProcessPhaseCode Process Phase
EAMProcessPhaseCodeDesc Process Phase Description
MaintOrdProcessSubPhaseCode I_NetworkActivityByInternalKey MaintOrdProcessSubPhaseCode Process Subphase
EAMProcessSubPhaseCodeDesc Process Subphase Description
_NetworkActivityDatesQuantity _NetworkActivityDatesQuantity
_MaintenanceOrder _MaintenanceOrder
_WorkOrderGraphOverview _WorkOrderGraphOverview
_ActivityConfirmed _ActivityConfirmed
_ActivityPartiallyConfirmed _ActivityPartiallyConfirmed
_EAMProcessPhaseText _EAMProcessPhaseText
_EAMProcessSubPhaseText _EAMProcessSubPhaseText
_Successor _Successor
_Predecessor _Predecessor

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_ProjSchedOperationGraph.
-- 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: COPERATIONGROVW

CREATE VIEW C_ProjSchedOperationGraph AS
SELECT
  cast (NetworkActivity.ProjectNetworkInternalID as co_aufpl preserving type) AS OrderInternalBillOfOperations,
  NetworkActivity.NetworkActivityInternalID AS NetworkActivityInternalID,
  _MaintenanceOrder.MaintenanceOrder AS MaintenanceOrder,
  NetworkActivity.NetworkActivity AS MaintenanceOrderOperation,
  _MaintenanceOrder._WBSElementData.WBSElementExternalID AS WBSElementExternalID,
  NetworkActivity.NetworkActivityDescription AS OperationDescription,
  _MaintenanceOrder.OrderDescription AS OrderDescription,
  _MaintenanceOrder._WBSElementData.WBSDescription AS WBSDescription,
  _MaintenanceOrder.OrderType AS OrderType,
  _MaintenanceOrder._OrderType._Text[1:Language = $session.system_language].OrderTypeName AS MaintenanceOrderTypeName,
  NetworkActivity.NetworkActivityControlProfile AS OperationControlKey,
  cast ( _OperationControlProfileText.OperationControlProfileName as ps_s4_pph_steutxt ) AS OperationControlProfileName,
  NetworkActivity._WorkCenter.WorkCenter AS OperationWorkCenter,
  NetworkActivity._WorkCenter._Text[1:Language=$session.system_language].WorkCenterText AS WorkCenterText,
  NetworkActivity.Plant AS Plant,
  _Plant.PlantName AS PlantName,
  NetworkActivity.Assembly AS Assembly,
  _AssemblyText.MaterialName AS AssemblyName,
  NetworkActivity.FunctionalLocation AS FunctionalLocation,
  _FunctionalLocationLabel.FunctionalLocationLabelName AS FunctionalLocationLabelName,
  _FunctionalLocationText.FunctionalLocationName AS FunctionalLocationName,
  NetworkActivity.Equipment AS Equipment,
  _EquipmentText.EquipmentName AS EquipmentName,
  NetworkActivity.IsMarkedForDeletion AS IsMarkedForDeletion,
  NetworkActivity.NetworkActivityObject AS NetworkActivityObject,
  _NetworkActivityDatesQuantity.SchedldBasicEarliestStartDate AS SchedldBasicEarliestStartDate,
  _NetworkActivityDatesQuantity.SchedldBasicEarliestEndDate AS SchedldBasicEarliestEndDate,
  _NetworkActivityDatesQuantity.SchedldBasicLatestStartDate AS SchedldBasicLatestStartDate,
  _NetworkActivityDatesQuantity.ScheduledBasicLatestEndDate AS ScheduledBasicLatestEndDate,
  _NetworkActivityDatesQuantity.StandardDuration AS StandardDuration,
  _NetworkActivityDatesQuantity.StandardDurationUnit AS StandardDurationUnit,
  _NetworkActivityDatesQuantity.ActualStartDate AS ActualStartDate,
  _NetworkActivityDatesQuantity.ActualEndDate AS ActualEndDate,
  _NetworkActivityDatesQuantity.ActyConfFcstdEndDate AS ActyConfFcstdEndDate,
  _NetworkActivityDatesQuantity.ActyBscStartDateConstraintType AS ActyBscStartDateConstraintType,
  _NetworkActivityDatesQuantity._BscStartConstraintTypeText[1:Language = $session.system_language].StartConstraintTypeText AS ActyBscStartDateConstraintText,
  _NetworkActivityDatesQuantity.ActyBscEndDateConstraintType AS ActyBscEndDateConstraintType,
  _NetworkActivityDatesQuantity._BscFinishConstraintTypeText[1:Language = $session.system_language].FinishConstraintTypeText AS ActyBscEndDateConstraintText,
  _NetworkActivityDatesQuantity.ConstraintDateForBscStartDate AS ConstraintDateForBscStartDate,
  _NetworkActivityDatesQuantity.ConstraintDateForBscEndDate AS ConstraintDateForBscEndDate,
  _NetworkActivityDatesQuantity.TotalFloatForBasicDates AS TotalFloatForBasicDates,
  _NetworkActivityDatesQuantity.BasicDatesFreeFloat AS BasicDatesFreeFloat,
  _NetworkActivityDatesQuantity.PlannedWorkQuantity AS PlannedWorkQuantity,
  _NetworkActivityDatesQuantity.ActualWorkQuantity AS ActualWorkQuantity,
  _NetworkActivityDatesQuantity.NtwkActivityWorkQuantityUnit AS NtwkActivityWorkQuantityUnit,
  cast( '' as vsnmr_v ) AS Version,
  NetworkActivity.MaintOrdProcessPhaseCode AS MaintOrdProcessPhaseCode,
  _EAMProcessPhaseText[1:Language = $session.system_language].EAMProcessPhaseCodeDesc AS EAMProcessPhaseCodeDesc,
  NetworkActivity.MaintOrdProcessSubPhaseCode AS MaintOrdProcessSubPhaseCode,
  _EAMProcessSubPhaseText[1:Language = $session.system_language].EAMProcessSubPhaseCodeDesc AS EAMProcessSubPhaseCodeDesc
FROM I_NetworkActivityByInternalKey AS NetworkActivity
LEFT OUTER JOIN I_NetworkActivityDatesQuantity AS _NetworkActivityDatesQuantity ON OrderInternalBillOfOperations = _NetworkActivityDatesQuantity.ProjectNetworkInternalID AND NetworkActivityInternalID = _NetworkActivityDatesQuantity.NetworkActivityInternalID  -- association [1..1]
LEFT OUTER JOIN I_ProjSchedMaintOrderData AS _MaintenanceOrder ON OrderInternalBillOfOperations = _MaintenanceOrder.OrderInternalBillOfOperations  -- association [0..1]
LEFT OUTER JOIN C_ProjectShedMaintOrderGraph AS _WorkOrderGraphOverview ON MaintenanceOrder = _WorkOrderGraphOverview.MaintenanceOrder  -- association [0..1]
LEFT OUTER JOIN I_StatusObjectStatusBasic AS _ActivityConfirmed ON NetworkActivityObject = _ActivityConfirmed.StatusObject AND _ActivityConfirmed.StatusCode = 'I0009'  -- association [0..1]
LEFT OUTER JOIN I_StatusObjectStatusBasic AS _ActivityPartiallyConfirmed ON NetworkActivityObject = _ActivityPartiallyConfirmed.StatusObject AND _ActivityPartiallyConfirmed.StatusCode = 'I0010'  -- association [0..1]
LEFT OUTER JOIN I_OperationControlProfileText AS _OperationControlProfileText ON OperationControlKey = _OperationControlProfileText.OperationControlProfile AND _OperationControlProfileText.Language = $session.system_language  -- association [0..1]
LEFT OUTER JOIN I_Plant AS _Plant ON Plant = _Plant.Plant  -- association [0..1]
LEFT OUTER JOIN I_MaterialText AS _AssemblyText ON Assembly = _AssemblyText.Material AND _AssemblyText.Language = $session.system_language  -- association [0..1]
LEFT OUTER JOIN I_EquipmentText AS _EquipmentText ON Equipment = _EquipmentText.Equipment AND _EquipmentText.Language = $session.system_language  -- association [0..1]
LEFT OUTER JOIN I_FunctionalLocationLabel AS _FunctionalLocationLabel ON FunctionalLocation = _FunctionalLocationLabel.FunctionalLocation  -- association [0..1]
LEFT OUTER JOIN I_FunctionalLocationText AS _FunctionalLocationText ON FunctionalLocation = _FunctionalLocationText.FunctionalLocation AND _FunctionalLocationText.Language = $session.system_language  -- association [0..1]
LEFT OUTER JOIN I_EAMProcessPhaseText AS _EAMProcessPhaseText ON MaintOrdProcessPhaseCode = _EAMProcessPhaseText.EAMProcessPhaseCode  -- association [0..*]
LEFT OUTER JOIN I_EAMProcessSubPhaseText AS _EAMProcessSubPhaseText ON MaintOrdProcessSubPhaseCode = _EAMProcessSubPhaseText.EAMProcessSubPhaseCode  -- association [0..*]
LEFT OUTER JOIN C_ProjectNetworkRelationship AS _Successor ON _Successor.PredecessorProjNtwkIntID = OrderInternalBillOfOperations AND _Successor.PredecessorNtwkActyIntID = NetworkActivityInternalID  -- association [0..*]
LEFT OUTER JOIN C_ProjectNetworkRelationship AS _Predecessor ON _Predecessor.SuccessorProjNtwkIntID = OrderInternalBillOfOperations AND _Predecessor.SuccessorNtwkActyIntID = NetworkActivityInternalID  -- association [0..*]
;