I_CustUnivHierNodeText
Customer Hierarchy Node - Text
I_CustUnivHierNodeText is a Basic CDS View that provides data about "Customer Hierarchy Node - Text" in SAP S/4HANA. It reads from 2 data sources (hrrp_directory, hrrp_nodet) and exposes 8 fields with key fields Language, CustomerUniversalHierarchy, HierarchyNode, CustHierarchyValidityEndDate. It has 2 associations to related views.
Data Sources (2)
| Source | Alias | Join Type |
|---|---|---|
| hrrp_directory | dir | inner |
| hrrp_nodet | nodet | from |
Associations (2)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [1..*] | I_CustUnivHierarchyBase | _CustomerHierarchy | $projection.CustomerUniversalHierarchy = _CustomerHierarchy.CustomerUniversalHierarchy |
| [1..*] | I_CustUnivHierarchyNodeBase | _CustomerHierarchyNode | $projection.CustomerUniversalHierarchy = _CustomerHierarchyNode.CustomerUniversalHierarchy and $projection.HierarchyNode = _CustomerHierarchyNode.HierarchyNode |
Annotations (14)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | ICUSTUHFNDT | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AbapCatalog.preserveKey | true | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| VDM.viewType | #BASIC | view | |
| EndUserText.label | Customer Hierarchy Node - Text | view | |
| Analytics.internalName | #LOCAL | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| ObjectModel.representativeKey | HierarchyNode | view | |
| ObjectModel.usageType.dataClass | #MASTER | view | |
| ObjectModel.usageType.serviceQuality | #A | view | |
| ObjectModel.usageType.sizeCategory | #XL | view | |
| ObjectModel.dataCategory | #TEXT | view | |
| Metadata.ignorePropagatedAnnotations | true | view |
Fields (8)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | Language | spras | ||
| KEY | CustomerUniversalHierarchy | hrrp_directory | hrysid | |
| KEY | HierarchyNode | hrrp_nodet | hrynode | |
| KEY | CustHierarchyValidityEndDate | |||
| CustHierarchyValidityStartDate | ||||
| CustUnivHierarchyNodeText | ||||
| _CustomerHierarchy | _CustomerHierarchy | |||
| _CustomerHierarchyNode | _CustomerHierarchyNode |
@AbapCatalog: {
sqlViewName: 'ICUSTUHFNDT',
compiler.compareFilter: true,
preserveKey: true
}
@AccessControl.authorizationCheck: #CHECK
@VDM.viewType: #BASIC
@EndUserText.label: 'Customer Hierarchy Node - Text'
@Analytics: {
internalName: #LOCAL
}
@ClientHandling.algorithm: #SESSION_VARIABLE
@ObjectModel: {
representativeKey: 'HierarchyNode',
usageType: {
dataClass: #MASTER,
serviceQuality: #A,
sizeCategory: #XL
},
dataCategory: #TEXT
}
@Metadata.ignorePropagatedAnnotations: true
@ObjectModel.supportedCapabilities: [ #SQL_DATA_SOURCE,
#CDS_MODELING_DATA_SOURCE,
#CDS_MODELING_ASSOCIATION_TARGET,
#LANGUAGE_DEPENDENT_TEXT
]
define view I_CustUnivHierNodeText
as select from hrrp_nodet as nodet
inner join hrrp_directory as dir on dir.hryid = nodet.hryid
and dir.hryvalto = nodet.hryvalto
and dir.hryver = nodet.hryver
//[1..*] as they are temporal assoc
association [1..*] to I_CustUnivHierarchyBase as _CustomerHierarchy on $projection.CustomerUniversalHierarchy = _CustomerHierarchy.CustomerUniversalHierarchy
association [1..*] to I_CustUnivHierarchyNodeBase as _CustomerHierarchyNode on $projection.CustomerUniversalHierarchy = _CustomerHierarchyNode.CustomerUniversalHierarchy
and $projection.HierarchyNode = _CustomerHierarchyNode.HierarchyNode
{
@Semantics.language: true
key spras as Language,
@ObjectModel.foreignKey.association: '_CustomerHierarchy'
key dir.hrysid as CustomerUniversalHierarchy,
@ObjectModel.foreignKey.association: '_CustomerHierarchyNode'
key nodet.hrynode as HierarchyNode,
@Semantics.businessDate.to: true
key cast(nodet.hryvalto as custhierarchyvalidityenddate preserving type ) as CustHierarchyValidityEndDate,
@Semantics.businessDate.from: true
cast(nodet.hryvalfrom as custhierarchyvaliditystartdate preserving type ) as CustHierarchyValidityStartDate,
@Semantics.text: true
cast(nodetxt as cust_hier_node_value_text ) as CustUnivHierarchyNodeText,
_CustomerHierarchy,
_CustomerHierarchyNode // Make association public
}
where
dir.hrytyp = 'CH02'
or dir.hrytyp = 'CH01'
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"HRRP_DIRECTORY",
"HRRP_NODET"
],
"ASSOCIATED":
[
"I_CUSTUNIVHIERARCHYBASE",
"I_CUSTUNIVHIERARCHYNODEBASE"
],
"BASE":
[],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/
Learn More
- What Is a CDS View in SAP S/4HANA?
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- CDS View Annotations — A Complete Guide
- 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