C_WorkCenterGroupTree

DDL: C_WORKCENTERGROUPTREE SQL: CWRKCTRGRPTREE Type: view CONSUMPTION

Work Center Groups Tree

C_WorkCenterGroupTree is a Consumption CDS View that provides data about "Work Center Groups Tree" in SAP S/4HANA. It reads from 1 data source (I_WorkCenterGroupTreeAggrgn) and exposes 37 fields with key fields HierarchyRootNode, HierarchyParentNode, HierarchyNode, HierarchyNodeType. It has 8 associations to related views.

Data Sources (1)

SourceAliasJoin Type
I_WorkCenterGroupTreeAggrgn I_WorkCenterGroupTreeAggrgn from

Associations (8)

CardinalityTargetAliasCondition
[0..*] C_WorkCenterGroupStructure _WorkCenterGroupStructure $projection.HierarchyNodeType = _WorkCenterGroupStructure.WorkCenterGroupTypeCode and $projection.HierarchyNode = _WorkCenterGroupStructure.WorkCenterGroupInternalID
[1..*] C_WorkCenterGroupWhereUsed _WorkCenterGroupWhereUsed $projection.HierarchyNodeType = _WorkCenterGroupWhereUsed.ObjectTypeCode and $projection.HierarchyNode = _WorkCenterGroupWhereUsed.ObjectInternalID
[0..1] I_WorkCenterGroupObjectCount _ObjectCount $projection.HierarchyNodeType = _ObjectCount.ObjectTypeCode and $projection.HierarchyNode = _ObjectCount.ObjectInternalID
[1..1] C_WorkCenterGroupAdminvData _AdminData $projection.HierarchyNodeType = _AdminData.ObjectTypeCode and $projection.HierarchyNode = _AdminData.ObjectInternalID
[1..*] C_ManageWrkCtrGrpWorkCenterVH _WorkCenterVH $projection.HierarchyNodeType = 'G'
[1..1] C_WorkCenterGroupSubTree _SubTree $projection.HierarchyRootNode = _SubTree.HierarchyNode
[0..1] C_ShiftReportTypeVH _RepoTypeVH _RepoTypeVH.ShiftReportType = $projection.ShiftReportType
[0..1] C_ShiftNoteTypeVH _NoteTypeVH _NoteTypeVH.ShiftNoteType = $projection.ShiftNoteType

Annotations (15)

NameValueLevelField
AbapCatalog.sqlViewName CWRKCTRGRPTREE view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #CHECK view
EndUserText.label Work Center Groups Tree view
ObjectModel.usageType.serviceQuality #X view
ObjectModel.usageType.sizeCategory #XXL view
ObjectModel.usageType.dataClass #MIXED view
VDM.viewType #CONSUMPTION view
ClientHandling.algorithm #SESSION_VARIABLE view
AbapCatalog.preserveKey true view
ObjectModel.compositionRoot true view
UI.headerInfo.title.value ObjectName view
UI.headerInfo.description.value ObjectDescription view
UI.headerInfo.typeName Work Center Group view
UI.headerInfo.typeNamePlural Work Center Groups view

Fields (37)

KeyFieldSource TableSource FieldDescription
KEY HierarchyRootNode WrkCtrGroupHierarchyRootNode
KEY HierarchyParentNode WrkCtrGroupHierarchyParentNode
KEY HierarchyNode WorkCenterGroupHierarchyNode
KEY HierarchyNodeType WrkCtrGroupHierarchyNodeType
ParentNode WrkCtrGrpHierParNodeUniqueID
HierarchyNodeUniqueID WrkCtrGrpHierarchyNodeUniqueID
WorkCenterGroupRoot WorkCenterGroupRoot Group
WorkCenterGroup WorkCenterGroup
ObjectName ObjectName Name
ObjectDescription ObjectDescription Description
ObjectTypeText ObjectTypeText Object Type
WorkCenterGroupType WorkCenterGroupType Group Type
WorkCenterGroupTypeDescription WorkCenterGroupTypeDescription Group Type Description
WorkCenterGroupRootType WorkCenterGroupRootType Group Type
WorkCenterGroupRootTypeDesc WorkCenterGroupRootTypeDesc Group Type
NumberOfWorkCenters NumberOfWorkCenters No. of Work Centers
WorkCenterGroupObjectCount _ObjectCount WorkCenterGroupObjectCount Where Used
Plant Plant Plant
PlantName _PlantName PlantName Plant Name
WrkCtrGrpNodeID WrkCtrGrpHierNodeOrdinalNumber
WrkCtrGrpParentNodeID WrkCtrGrpHierParNodeOrdnlNmbr
WrkCtrGrpHierNodeSubTreeSize WrkCtrGrpHierNodeSubTreeSize
WrkCtrGrpHierarchyLevel WrkCtrGrpHierarchyLevel
WrkCtrGrpHierarchyNodeIsOrphan WrkCtrGrpHierarchyNodeIsOrphan
WrkCtrGrpHierNodeIsCycEndPoint WrkCtrGrpHierNodeIsCycEndPoint
WrkCtrGrpDrillState WrkCtrGrpDrillState
WorkCenterGroupIsUpdateEnabled
WorkCenterGroupIsDeleteEnabled
_WorkCenterGroupStructure _WorkCenterGroupStructure
_WorkCenterGroupWhereUsed _WorkCenterGroupWhereUsed
_WorkCenterVH _WorkCenterVH
_AdminData _AdminData
_SubTree _SubTree
ShiftNoteType ShiftNoteType
ShiftReportType ShiftReportType
ShiftReportDescription _RepoTypeVH ShiftReportDescription
ShiftNoteTypeDescription _NoteTypeVH ShiftNoteTypeDescription

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_WorkCenterGroupTree.
-- 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: CWRKCTRGRPTREE

CREATE VIEW C_WorkCenterGroupTree AS
SELECT
  WrkCtrGroupHierarchyRootNode AS HierarchyRootNode,
  WrkCtrGroupHierarchyParentNode AS HierarchyParentNode,
  WorkCenterGroupHierarchyNode AS HierarchyNode,
  WrkCtrGroupHierarchyNodeType AS HierarchyNodeType,
  WrkCtrGrpHierParNodeUniqueID AS ParentNode,
  WrkCtrGrpHierarchyNodeUniqueID AS HierarchyNodeUniqueID,
  WorkCenterGroupRoot,
  WorkCenterGroup,
  ObjectName,
  ObjectDescription,
  ObjectTypeText,
  WorkCenterGroupType,
  WorkCenterGroupTypeDescription,
  WorkCenterGroupRootType,
  WorkCenterGroupRootTypeDesc,
  NumberOfWorkCenters,
  _ObjectCount.WorkCenterGroupObjectCount AS WorkCenterGroupObjectCount,
  Plant,
  _PlantName.PlantName AS PlantName,
  WrkCtrGrpHierNodeOrdinalNumber AS WrkCtrGrpNodeID,
  WrkCtrGrpHierParNodeOrdnlNmbr AS WrkCtrGrpParentNodeID,
  WrkCtrGrpHierNodeSubTreeSize,
  WrkCtrGrpHierarchyLevel,
  WrkCtrGrpHierarchyNodeIsOrphan,
  WrkCtrGrpHierNodeIsCycEndPoint,
  WrkCtrGrpDrillState,
  cast( '' as abap.char(1) ) AS WorkCenterGroupIsUpdateEnabled,
  cast( '' as abap.char(1) ) AS WorkCenterGroupIsDeleteEnabled,
  ShiftNoteType,
  ShiftReportType,
  _RepoTypeVH.ShiftReportDescription AS ShiftReportDescription,
  _NoteTypeVH.ShiftNoteTypeDescription AS ShiftNoteTypeDescription
FROM I_WorkCenterGroupTreeAggrgn
LEFT OUTER JOIN C_WorkCenterGroupStructure AS _WorkCenterGroupStructure ON HierarchyNodeType = _WorkCenterGroupStructure.WorkCenterGroupTypeCode AND HierarchyNode = _WorkCenterGroupStructure.WorkCenterGroupInternalID  -- association [0..*]
LEFT OUTER JOIN C_WorkCenterGroupWhereUsed AS _WorkCenterGroupWhereUsed ON HierarchyNodeType = _WorkCenterGroupWhereUsed.ObjectTypeCode AND HierarchyNode = _WorkCenterGroupWhereUsed.ObjectInternalID  -- association [1..*]
LEFT OUTER JOIN I_WorkCenterGroupObjectCount AS _ObjectCount ON HierarchyNodeType = _ObjectCount.ObjectTypeCode AND HierarchyNode = _ObjectCount.ObjectInternalID  -- association [0..1]
LEFT OUTER JOIN C_WorkCenterGroupAdminvData AS _AdminData ON HierarchyNodeType = _AdminData.ObjectTypeCode AND HierarchyNode = _AdminData.ObjectInternalID  -- association [1..1]
LEFT OUTER JOIN C_ManageWrkCtrGrpWorkCenterVH AS _WorkCenterVH ON HierarchyNodeType = 'G'  -- association [1..*]
LEFT OUTER JOIN C_WorkCenterGroupSubTree AS _SubTree ON HierarchyRootNode = _SubTree.HierarchyNode  -- association [1..1]
LEFT OUTER JOIN C_ShiftReportTypeVH AS _RepoTypeVH ON _RepoTypeVH.ShiftReportType = ShiftReportType  -- association [0..1]
LEFT OUTER JOIN C_ShiftNoteTypeVH AS _NoteTypeVH ON _NoteTypeVH.ShiftNoteType = ShiftNoteType  -- association [0..1]
;