A_CnsldtnCustomerGroupHier

DDL: A_CNSLDTNCUSTOMERGROUPHIER Type: view BASIC

Combined Customer Group Hierarchy

A_CnsldtnCustomerGroupHier is a Basic CDS View that provides data about "Combined Customer Group Hierarchy" in SAP S/4HANA. It reads from 1 data source (I_CnsldtnCustGroupHierNode) and exposes 15 fields with key fields AdditionalMasterDataHierarchy, HierarchyNode, ValidityEndDate. It has 3 associations to related views.

Data Sources (1)

SourceAliasJoin Type
I_CnsldtnCustGroupHierNode _CnsldtnCustGroupHierNode from

Associations (3)

CardinalityTargetAliasCondition
[0..1] A_CnsldtnCustomerGroup _CnsldtnCustomerGroup $projection.CustomerGroup = _CnsldtnCustomerGroup.CustomerGroup
[0..*] A_CnsldtnCustomerGroupHierT _CnsldtnCustomerGroupHierT $projection.AdditionalMasterDataHierarchy = _CnsldtnCustomerGroupHierT.AdditionalMasterDataHierarchy and $projection.HierarchyNode = _CnsldtnCustomerGroupHierT.HierarchyNode and $projection.ValidityEndDate = _CnsldtnCustomerGroupHierT.ValidityEndDate and $projection.CustomerGroup = ''
[0..*] A_CnsldtnCustomerGroupT _CnsldtnCustomerGroupT $projection.CustomerGroup = _CnsldtnCustomerGroupT.CustomerGroup

Annotations (13)

NameValueLevelField
AbapCatalog.sqlViewName ACSCUSGROUPHIER view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
AccessControl.authorizationCheck #CHECK view
ClientHandling.algorithm #SESSION_VARIABLE view
Metadata.ignorePropagatedAnnotations true view
ObjectModel.usageType.dataClass #MASTER view
ObjectModel.usageType.serviceQuality #A view
ObjectModel.usageType.sizeCategory #XL view
VDM.viewType #BASIC view
VDM.lifecycle.contract.type #PUBLIC_REMOTE_API view
EndUserText.label Combined Customer Group Hierarchy view
OData.entitySet.name CustomerGroupHier view

Fields (15)

KeyFieldSource TableSource FieldDescription
KEY AdditionalMasterDataHierarchy I_CnsldtnCustGroupHierNode CnsldtnCustomerGroupHierarchy
KEY HierarchyNode HierarchyNode Node
KEY ValidityEndDate I_CnsldtnCustGroupHierNode ValidityEndDate ValidTo
ParentNode ParentNode Parent Node
ValidityStartDate I_CnsldtnCustGroupHierNode ValidityStartDate Validity Start Date
CustomerGroup I_CnsldtnCustGroupHierNode CustomerGroup Customer Group
SequenceNumber
HierarchyNodeSequence I_CnsldtnCustGroupHierNode HierarchyNodeSequence
HierarchyNodeLevel I_CnsldtnCustGroupHierNode HierarchyNodeLevel Hierarchy Node Level
NodeType I_CnsldtnCustGroupHierNode NodeType Object Type
MDHierType
HierarchyType
_CnsldtnCustomerGroup _CnsldtnCustomerGroup
_CnsldtnCustomerGroupHierT _CnsldtnCustomerGroupHierT
_CnsldtnCustomerGroupT _CnsldtnCustomerGroupT

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 A_CnsldtnCustomerGroupHier.
-- 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 A_CnsldtnCustomerGroupHier AS
SELECT
  _CnsldtnCustGroupHierNode.CnsldtnCustomerGroupHierarchy AS AdditionalMasterDataHierarchy,
  HierarchyNode,
  _CnsldtnCustGroupHierNode.ValidityEndDate AS ValidityEndDate,
  ParentNode,
  _CnsldtnCustGroupHierNode.ValidityStartDate AS ValidityStartDate,
  _CnsldtnCustGroupHierNode.CustomerGroup AS CustomerGroup,
  cast(_CnsldtnCustGroupHierNode.HierarchyNodeSequence as abap.char( 56 ) ) AS SequenceNumber,
  _CnsldtnCustGroupHierNode.HierarchyNodeSequence AS HierarchyNodeSequence,
  _CnsldtnCustGroupHierNode.HierarchyNodeLevel AS HierarchyNodeLevel,
  _CnsldtnCustGroupHierNode.NodeType AS NodeType,
  cast('CS13' as hrytype preserving type ) AS MDHierType,
  cast('CS13' as hrytype preserving type ) AS HierarchyType
FROM I_CnsldtnCustGroupHierNode AS _CnsldtnCustGroupHierNode
LEFT OUTER JOIN A_CnsldtnCustomerGroup AS _CnsldtnCustomerGroup ON CustomerGroup = _CnsldtnCustomerGroup.CustomerGroup  -- association [0..1]
LEFT OUTER JOIN A_CnsldtnCustomerGroupHierT AS _CnsldtnCustomerGroupHierT ON AdditionalMasterDataHierarchy = _CnsldtnCustomerGroupHierT.AdditionalMasterDataHierarchy AND HierarchyNode = _CnsldtnCustomerGroupHierT.HierarchyNode AND ValidityEndDate = _CnsldtnCustomerGroupHierT.ValidityEndDate AND CustomerGroup = ''  -- association [0..*]
LEFT OUTER JOIN A_CnsldtnCustomerGroupT AS _CnsldtnCustomerGroupT ON CustomerGroup = _CnsldtnCustomerGroupT.CustomerGroup  -- association [0..*]
;