I_CNSLDTNCUSTGROUPHIERNODE

CDS View

Consolidation Customer Group - HierNode

I_CNSLDTNCUSTGROUPHIERNODE is a CDS View in S/4HANA. Consolidation Customer Group - HierNode. It contains 7 fields. 1 CDS views read from this table.

CDS Views using this table (1)

ViewTypeJoinVDMDescription
A_CnsldtnCustomerGroupHier view from BASIC Combined Customer Group Hierarchy

Fields (7)

KeyField CDS FieldsUsed in Views
KEY CnsldtnCustomerGroupHierarchy AdditionalMasterDataHierarchy 1
KEY ValidityEndDate ValidityEndDate 1
CustomerGroup CustomerGroup 1
HierarchyNodeLevel HierarchyNodeLevel 1
HierarchyNodeSequence HierarchyNodeSequence 1
NodeType NodeType 1
ValidityStartDate ValidityStartDate 1
@Analytics: {
  dataExtraction.enabled: true
}
@Hierarchy.parentChild: [{
  recurse: {
    parent: ['ParentNode'],
    child:     ['HierarchyNode']
  },
  siblingsOrder: [{
    by: 'HierarchyNodeSequence',
    direction: #ASC
  }],
  directory: '_Hierarchy'
}]
@AccessControl:{
  authorizationCheck: #MANDATORY
}
@Metadata:{
  ignorePropagatedAnnotations: true
}
@ObjectModel: {
  usageType: {
    dataClass: #MASTER,
    serviceQuality: #B,
    sizeCategory: #M
  },
  dataCategory: #HIERARCHY,
  representativeKey: 'HierarchyNode',
  modelingPattern: #ANALYTICAL_PARENT_CHILD_HIERARCHY_NODE,
  supportedCapabilities: [#CDS_MODELING_DATA_SOURCE,
                          #CDS_MODELING_ASSOCIATION_TARGET,
                          #SQL_DATA_SOURCE,
                          #EXTRACTION_DATA_SOURCE,
                          #ANALYTICAL_PARENT_CHILD_HIERARCHY_NODE
                          ],
  sapObjectNodeType.name: 'CnsldtnCustomerGroupHierNode'
}
@VDM:{
  viewType: #BASIC,
  lifecycle.contract.type: #PUBLIC_LOCAL_API
}
@EndUserText.label: 'Consolidation Customer Group - HierNode'

/*+[hideWarning] { "IDS" : [ "KEY_CHECK" ]  } */
define view entity I_CnsldtnCustGroupHierNode
  as select from P_CnsldtnUnivHierNode_3(P_HierarchyType : 'CS13', P_MasterDataType : 'KDGRP' ) as _HierarchyNode

  association [0..1] to I_CnsldtnCustomerGroup      as _CustomerGroup on  $projection.CustomerGroup = _CustomerGroup.CustomerGroup

  association [1..1] to I_CnsldtnCustomerGroupHier  as _Hierarchy     on  $projection.CnsldtnCustomerGroupHierarchy = _Hierarchy.CnsldtnCustomerGroupHierarchy
                                                                      and $projection.ValidityEndDate               = _Hierarchy.ValidityEndDate

  association [0..*] to I_CnsldtnCustGroupHierNodeT as _Text          on  $projection.CnsldtnCustomerGroupHierarchy = _Text.CnsldtnCustomerGroupHierarchy
                                                                      and $projection.HierarchyNode                 = _Text.HierarchyNode
                                                                      and $projection.CustomerGroup                 = ''
{

      @Consumption.filter: {mandatory : true, selectionType : #SINGLE, multipleSelections : false }
      @ObjectModel.foreignKey.association: '_Hierarchy'
  key cast(_HierarchyNode.UniversalHierarchy as fincs_customergrouphierarchy preserving type ) as CnsldtnCustomerGroupHierarchy,

      @ObjectModel.text.association: '_Text'
  key _HierarchyNode.HierarchyNode,

      @Consumption.filter: {mandatory : true, selectionType : #SINGLE, multipleSelections : false }
      @Semantics.businessDate.to: true
  key _HierarchyNode.ValidityEndDate,

      @Semantics.businessDate.from: true
      _HierarchyNode.ValidityStartDate,

      _HierarchyNode.ParentNode,

      _HierarchyNode.HierarchyVersion,

      @ObjectModel.foreignKey.association: '_CustomerGroup'
      @Consumption.valueHelpDefinition: [{
        entity: {
          name: 'I_CnsldtnCustomerGroupVH',
          element: 'CustomerGroup'
        }
      }]
      CustomerGroup,

      _HierarchyNode.HierarchyNodeSequence,

      _HierarchyNode.HierarchyNodeLevel,

      _HierarchyNode.NodeType,


      _Text,
      _CustomerGroup,
      _Hierarchy
};