I_CnsldtnDocTypeHierNode_2

DDL: I_CNSLDTNDOCTYPEHIERNODE_2 Type: view BASIC

Cnsldtn Document Type - Hierarchy Node

I_CnsldtnDocTypeHierNode_2 is a Basic CDS View that provides data about "Cnsldtn Document Type - Hierarchy Node" in SAP S/4HANA. It reads from 1 data source (hrrp_node) and exposes 13 fields with key fields ConsolidationDocTypeHierarchy, HierarchyNode, ValidityEndDate. It has 3 associations to related views.

Data Sources (1)

SourceAliasJoin Type
hrrp_node _HierarchyNode from

Associations (3)

CardinalityTargetAliasCondition
[0..*] I_CnsldtnDocTypeHierNodeT_2 _Text $projection.ConsolidationDocTypeHierarchy = _Text.ConsolidationDocTypeHierarchy and $projection.HierarchyNode = _Text.HierarchyNode and $projection.ConsolidationDocumentType = ''
[1..1] I_CnsldtnDocTypeHierarchy_2 _Hierarchy $projection.ConsolidationDocTypeHierarchy = _Hierarchy.ConsolidationDocTypeHierarchy and $projection.ValidityEndDate = _Hierarchy.ValidityEndDate
[0..1] I_CnsldtnDocumentType_2 _DocumentType $projection.ConsolidationDocumentType = _DocumentType.ConsolidationDocumentType

Annotations (20)

NameValueLevelField
AbapCatalog.sqlViewName ICCDOCTYPEHNODE2 view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
Analytics.dataExtraction.enabled true view
Hierarchy.parentChild.recurse.parent ParentNode view
Hierarchy.parentChild.recurse.child HierarchyNode view
Hierarchy.parentChild.siblingsOrder.by HierarchyNodeSequence view
Hierarchy.parentChild.siblingsOrder.direction #ASC view
Hierarchy.parentChild.directory _Hierarchy 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 #M view
ObjectModel.dataCategory #HIERARCHY view
ObjectModel.representativeKey HierarchyNode view
ObjectModel.modelingPattern #ANALYTICAL_DIMENSION view
VDM.viewType #BASIC view
EndUserText.label Cnsldtn Document Type - Hierarchy Node view

Fields (13)

KeyFieldSource TableSource FieldDescription
KEY ConsolidationDocTypeHierarchy
KEY HierarchyNode
KEY ValidityEndDate
ValidityStartDate
ParentNode
HierarchyVersion
ConsolidationDocumentType
HierarchyNodeSequence hrrp_node hryseqnbr
HierarchyNodeLevel hrrp_node hrylevel
NodeType hrrp_node nodetype
_DocumentType _DocumentType
_Text _Text
_Hierarchy _Hierarchy
@AbapCatalog: {
  sqlViewName: 'ICCDOCTYPEHNODE2',
  compiler.compareFilter: true  ,
  preserveKey: true
}
@Analytics: {
  dataExtraction.enabled: true
}
@Hierarchy.parentChild: {
  recurse:          { parent:    'ParentNode',  child: 'HierarchyNode'   },
  siblingsOrder:    { by:        'HierarchyNodeSequence', direction: #ASC   },
  directory:        '_Hierarchy'
}
@AccessControl.authorizationCheck: #CHECK
@ClientHandling.algorithm: #SESSION_VARIABLE
@Metadata.ignorePropagatedAnnotations: true
@ObjectModel: {
  usageType: {
    dataClass: #MASTER,
    serviceQuality: #A,
    sizeCategory: #M},
  dataCategory: #HIERARCHY,
  representativeKey: 'HierarchyNode',
  modelingPattern: #ANALYTICAL_DIMENSION,
  supportedCapabilities: [#CDS_MODELING_DATA_SOURCE,
                          #CDS_MODELING_ASSOCIATION_TARGET,
                          #SQL_DATA_SOURCE,
                          #EXTRACTION_DATA_SOURCE,                          
                          #ANALYTICAL_DIMENSION ]
  }
@VDM.viewType: #BASIC
@EndUserText.label: 'Cnsldtn Document Type - Hierarchy Node'

/*+[hideWarning] { "IDS" : [ "KEY_CHECK" ]  } */
define view I_CnsldtnDocTypeHierNode_2
  as select from hrrp_node as _HierarchyNode

  association [0..*] to I_CnsldtnDocTypeHierNodeT_2 as _Text         on  $projection.ConsolidationDocTypeHierarchy = _Text.ConsolidationDocTypeHierarchy
                                                                     and $projection.HierarchyNode                 = _Text.HierarchyNode
                                                                     and $projection.ConsolidationDocumentType     = ''

  association [1..1] to I_CnsldtnDocTypeHierarchy_2 as _Hierarchy    on  $projection.ConsolidationDocTypeHierarchy = _Hierarchy.ConsolidationDocTypeHierarchy
                                                                     and $projection.ValidityEndDate               = _Hierarchy.ValidityEndDate

  association [0..1] to I_CnsldtnDocumentType_2     as _DocumentType on  $projection.ConsolidationDocumentType = _DocumentType.ConsolidationDocumentType

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

      @ObjectModel.text.association: '_Text'
  key cast(_HierarchyNode.hrynode as fincs_hierarchynode preserving type )            as HierarchyNode,

      @Consumption.filter: {mandatory : true, selectionType : #SINGLE, multipleSelections : false }
      @Semantics.businessDate.to: true
  key cast(_HierarchyNode.hryvalto as fincs_validityenddate preserving type )         as ValidityEndDate,

      @Semantics.businessDate.from: true
      cast(_HierarchyNode.hryvalfrom as fincs_validitystartdate preserving type )     as ValidityStartDate,

      cast(_HierarchyNode.parnode as fincs_parentnode preserving type )               as ParentNode,

      cast(_HierarchyNode.hryver as fincs_hierarchyversion preserving type )          as HierarchyVersion,

      @ObjectModel.foreignKey.association: '_DocumentType'
      cast( left(_HierarchyNode.leafvalue, 2) as fincs_documenttype preserving type ) as ConsolidationDocumentType,

      _HierarchyNode.hryseqnbr                                                        as HierarchyNodeSequence,
      _HierarchyNode.hrylevel                                                         as HierarchyNodeLevel,
      _HierarchyNode.nodetype                                                         as NodeType,


      _DocumentType,
      _Text,
      _Hierarchy
}
where
       _HierarchyNode.hrytype  = 'CS19'
  and(
       _HierarchyNode.nodetype = 'R'
    or _HierarchyNode.nodetype = 'N'
    or _HierarchyNode.nodetype = 'L'
  );
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"HRRP_NODE"
],
"ASSOCIATED":
[
"I_CNSLDTNDOCTYPEHIERARCHY_2",
"I_CNSLDTNDOCTYPEHIERNODET_2",
"I_CNSLDTNDOCUMENTTYPE_2"
],
"BASE":
[],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/