A_CnsldtnCustomerHierT

DDL: A_CNSLDTNCUSTOMERHIERT SQL: ACSCUSTOMERHIERT Type: view BASIC

Combined Customer Hierarchy Text

A_CnsldtnCustomerHierT is a Basic CDS View that provides data about "Combined Customer Hierarchy Text" in SAP S/4HANA. It reads from 2 data sources (A_CnsldtnCustomerHier, I_CnsldtnCustomerHierNodeT) and exposes 7 fields with key fields AdditionalMasterDataHierarchy, HierarchyNode, ValidityEndDate, Language. It has 1 association to related views.

Data Sources (2)

SourceAliasJoin Type
A_CnsldtnCustomerHier _CnsldtnCustomerHier inner
I_CnsldtnCustomerHierNodeT _NodeT from

Associations (1)

CardinalityTargetAliasCondition
[0..1] A_CnsldtnCustomerHierDir _CnsldtnCustomerHierDir $projection.AdditionalMasterDataHierarchy = _CnsldtnCustomerHierDir.AdditionalMasterDataHierarchy and $projection.ValidityEndDate = _CnsldtnCustomerHierDir.ValidityEndDate

Annotations (14)

NameValueLevelField
AbapCatalog.sqlViewName ACSCUSTOMERHIERT view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #CHECK view
ClientHandling.algorithm #SESSION_VARIABLE view
Metadata.ignorePropagatedAnnotations true view
ObjectModel.usageType.dataClass #MASTER view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #XL view
ObjectModel.dataCategory #TEXT view
ObjectModel.representativeKey HierarchyNode view
VDM.viewType #BASIC view
VDM.lifecycle.contract.type #PUBLIC_REMOTE_API view
EndUserText.label Combined Customer Hierarchy Text view
OData.entitySet.name CustomerHierText view

Fields (7)

KeyFieldSource TableSource FieldDescription
KEY AdditionalMasterDataHierarchy
KEY HierarchyNode I_CnsldtnCustomerHierNodeT HierarchyNode
KEY ValidityEndDate I_CnsldtnCustomerHierNodeT ValidityEndDate
KEY Language I_CnsldtnCustomerHierNodeT Language
HierarchyNodeText I_CnsldtnCustomerHierNodeT HierarchyNodeText Node Description
ValidityStartDate I_CnsldtnCustomerHierNodeT ValidityStartDate
_CnsldtnCustomerHierDir _CnsldtnCustomerHierDir
@AbapCatalog.sqlViewName: 'ACSCUSTOMERHIERT'
@AbapCatalog.compiler.compareFilter: true
@AccessControl.authorizationCheck: #CHECK
@ClientHandling.algorithm: #SESSION_VARIABLE
@Metadata.ignorePropagatedAnnotations: true
@ObjectModel:{
  usageType: {
    dataClass: #MASTER,
    serviceQuality: #C,
    sizeCategory: #XL},
  dataCategory: #TEXT,
  representativeKey: 'HierarchyNode'
  }
@VDM:{
  viewType: #BASIC,
  lifecycle.contract.type: #PUBLIC_REMOTE_API
  }
@EndUserText.label: 'Combined Customer Hierarchy Text'
@OData.entitySet.name: 'CustomerHierText'

define view A_CnsldtnCustomerHierT
  as select from I_CnsldtnCustomerHierNodeT as _NodeT

//    inner join   A_CnsldtnCustomerHierDir   as _CnsldtnCustomerHierDirJ on  _NodeT.ConsolidationCustomerHierarchy = _CnsldtnCustomerHierDirJ.AdditionalMasterDataHierarchy

//                                                                        and _NodeT.ValidityEndDate                = _CnsldtnCustomerHierDirJ.ValidityEndDate

//

    inner join   A_CnsldtnCustomerHier      as _CnsldtnCustomerHier     on  _NodeT.ConsolidationCustomerHierarchy = _CnsldtnCustomerHier.AdditionalMasterDataHierarchy
                                                                        and _NodeT.HierarchyNode                  = _CnsldtnCustomerHier.HierarchyNode
                                                                        and _NodeT.ValidityEndDate                = _CnsldtnCustomerHier.ValidityEndDate

  association [0..1] to A_CnsldtnCustomerHierDir as _CnsldtnCustomerHierDir on  $projection.AdditionalMasterDataHierarchy = _CnsldtnCustomerHierDir.AdditionalMasterDataHierarchy
                                                                            and $projection.ValidityEndDate               = _CnsldtnCustomerHierDir.ValidityEndDate

{
      @ObjectModel.foreignKey.association: '_CnsldtnCustomerHierDir'
  key cast(_NodeT.ConsolidationCustomerHierarchy as fincs_universalhierhierarchyid preserving type ) as AdditionalMasterDataHierarchy,

  key _NodeT.HierarchyNode,

      @Semantics.businessDate.to: true
  key _NodeT.ValidityEndDate,

      @Semantics.language: true
  key _NodeT.Language,

      @Semantics.text: true
      @EndUserText.label: 'Node Description'
      _NodeT.HierarchyNodeText,

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


      _CnsldtnCustomerHierDir
}
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"A_CNSLDTNCUSTOMERHIER",
"I_CNSLDTNCUSTOMERHIERNODET"
],
"ASSOCIATED":
[
"A_CNSLDTNCUSTOMERHIERDIR"
],
"BASE":
[],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/