I_SponsoredClassHierarchyNode
Sponsored Class Hierarchy Node
I_SponsoredClassHierarchyNode is a Basic CDS View that provides data about "Sponsored Class Hierarchy Node" in SAP S/4HANA. It reads from 1 data source (hrrp_node) and exposes 12 fields with key fields SponsoredClassHierarchy, HierarchyNode, ValidityEndDate. It has 3 associations to related views.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| hrrp_node | hrrp_node | from |
Associations (3)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..*] | I_SponsoredClassHierarchyNodeT | _Text | $projection.SponsoredClassHierarchy = _Text.SponsoredClassHierarchy and $projection.HierarchyNode = _Text.HierarchyNode |
| [0..1] | I_SponsoredClassCore | _SponsoredClassCore | $projection.SponsoredClass = _SponsoredClassCore.SponsoredClass |
| [1..1] | I_SponsoredClassHierarchy | _Hierarchy | $projection.SponsoredClassHierarchy = _Hierarchy.SponsoredClassHierarchy and $projection.ValidityEndDate = _Hierarchy.ValidityEndDate |
Annotations (12)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | IGMSPCLASSHN | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AbapCatalog.preserveKey | true | view | |
| AccessControl.authorizationCheck | #PRIVILEGED_ONLY | view | |
| EndUserText.label | Sponsored Class Hierarchy Node | view | |
| VDM.viewType | #BASIC | view | |
| Analytics.dataExtraction.enabled | true | view | |
| ObjectModel.dataCategory | #HIERARCHY | view | |
| ObjectModel.usageType.dataClass | #MASTER | view | |
| ObjectModel.usageType.serviceQuality | #A | view | |
| ObjectModel.usageType.sizeCategory | #XL | view |
Fields (12)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | SponsoredClassHierarchy | |||
| KEY | HierarchyNode | hrrp_node | hrynode | |
| KEY | ValidityEndDate | |||
| ParentNode | hrrp_node | parnode | ||
| HierarchyVersion | hrrp_node | hryver | ||
| ValidityStartDate | ||||
| HierarchyNodeSequence | hrrp_node | hryseqnbr | ||
| HierarchyNodeLevel | hrrp_node | hrylevel | ||
| NodeType | hrrp_node | nodetype | ||
| _Text | _Text | |||
| _SponsoredClassCore | _SponsoredClassCore | |||
| _Hierarchy | _Hierarchy |
@AbapCatalog.sqlViewName: 'IGMSPCLASSHN'
@ClientHandling.algorithm: #SESSION_VARIABLE
@AbapCatalog.compiler.compareFilter: true
@AbapCatalog.preserveKey: true
@AccessControl.authorizationCheck: #PRIVILEGED_ONLY
@EndUserText.label: 'Sponsored Class Hierarchy Node'
@VDM.viewType: #BASIC
@Hierarchy.parentChild:[
{ recurse: { parent: 'ParentNode', child: 'HierarchyNode' },
siblingsOrder: { by: 'HierarchyNodeSequence', direction: 'ASC' },
directory: '_Hierarchy'
}]
@Analytics: { dataExtraction: {enabled:true} }
@ObjectModel: {
dataCategory: #HIERARCHY,
usageType: {
dataClass: #MASTER,
serviceQuality: #A,
sizeCategory: #XL
}
}
define view I_SponsoredClassHierarchyNode
as select from hrrp_node
association [0..*] to I_SponsoredClassHierarchyNodeT as _Text on $projection.SponsoredClassHierarchy = _Text.SponsoredClassHierarchy
and $projection.HierarchyNode = _Text.HierarchyNode
//and $projection.SposnoredClass = '' // just to show that this association is only to be followed if Grants center is blank
association [0..1] to I_SponsoredClassCore as _SponsoredClassCore on $projection.SponsoredClass = _SponsoredClassCore.SponsoredClass
association [1..1] to I_SponsoredClassHierarchy as _Hierarchy on $projection.SponsoredClassHierarchy = _Hierarchy.SponsoredClassHierarchy
and $projection.ValidityEndDate = _Hierarchy.ValidityEndDate
{
@Consumption.filter: {mandatory : true, selectionType : #SINGLE, multipleSelections : false }
@ObjectModel.foreignKey.association: '_Hierarchy'
key cast( hrrp_node.hryid as gmis_hryid_sponsoredclass preserving type ) as SponsoredClassHierarchy,
@ObjectModel.text.association: '_Text'
key hrrp_node.hrynode as HierarchyNode,
@Consumption.filter: {mandatory : true, selectionType : #SINGLE, multipleSelections : false }
@Semantics.businessDate.to: true
key cast( hrrp_node.hryvalto as fis_datbi preserving type ) as ValidityEndDate,
hrrp_node.parnode as ParentNode,
hrrp_node.hryver as HierarchyVersion,
@Semantics.businessDate.from: true
cast( hrrp_node.hryvalfrom as fis_datab preserving type) as ValidityStartDate,
@ObjectModel.foreignKey.association: '_SponsoredClassCore'
@Consumption.filter.businessDate.at:true
cast ( case nodetype
when 'L' then hrrp_node.nodevalue
else ''
end as gm_sponsored_class ) as SponsoredClass,
hrrp_node.hryseqnbr as HierarchyNodeSequence,
hrrp_node.hrylevel as HierarchyNodeLevel,
hrrp_node.nodetype as NodeType,
_Text,
_SponsoredClassCore,
_Hierarchy
}
where
hrrp_node.nodetype <> 'D'
and hrrp_node.hrytype = '0116';
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"HRRP_NODE"
],
"ASSOCIATED":
[
"I_SPONSOREDCLASSCORE",
"I_SPONSOREDCLASSHIERARCHY",
"I_SPONSOREDCLASSHIERARCHYNODET"
],
"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