C_WorkCenterGroupTree
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)
| Source | Alias | Join Type |
|---|---|---|
| I_WorkCenterGroupTreeAggrgn | I_WorkCenterGroupTreeAggrgn | from |
Associations (8)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [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)
| Name | Value | Level | Field |
|---|---|---|---|
| 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)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| 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]
;
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