I_ProfitCenterHierSubTree
Profit Center Hierarchy Sub Tree
I_ProfitCenterHierSubTree is a Basic CDS View that provides data about "Profit Center Hierarchy Sub Tree" in SAP S/4HANA. It reads from 1 data source (hrrp_node_n) and exposes 6 fields with key fields ControllingArea, ProfitCenterHierarchy, HierarchyNode, ProfitCenter. It has 2 associations to related views.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| hrrp_node_n | hrrp_node_n | from |
Associations (2)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..1] | I_ControllingArea | _ControllingArea | $projection.ControllingArea = _ControllingArea.ControllingArea |
| [1..*] | I_ProfitCenterHierarchy | _Hierarchy | $projection.ProfitCenterHierarchy = _Hierarchy.ProfitCenterHierarchy and $projection.ControllingArea = _Hierarchy.ControllingArea |
Annotations (9)
| Name | Value | Level | Field |
|---|---|---|---|
| ObjectModel.representativeKey | HierarchyNode | view | |
| EndUserText.label | Profit Center Hierarchy Sub Tree | view | |
| VDM.viewType | #BASIC | view | |
| AbapCatalog.sqlViewName | IFIPROFITCTRHST | view | |
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| ObjectModel.usageType.dataClass | #MASTER | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| ObjectModel.usageType.sizeCategory | #XL | view |
Fields (6)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | ControllingArea | |||
| KEY | ProfitCenterHierarchy | |||
| KEY | HierarchyNode | |||
| KEY | ProfitCenter | hrrp_node_n | nodevalue | |
| _ControllingArea | _ControllingArea | |||
| _Hierarchy | _Hierarchy |
// Main usage for access policy
//
@ObjectModel.representativeKey: 'HierarchyNode'
@EndUserText.label: 'Profit Center Hierarchy Sub Tree'
@VDM.viewType: #BASIC
@AbapCatalog.sqlViewName: 'IFIPROFITCTRHST'
@AccessControl.authorizationCheck: #NOT_REQUIRED
@ClientHandling.algorithm: #SESSION_VARIABLE
@ObjectModel.usageType: {
dataClass: #MASTER,
serviceQuality: #C,
sizeCategory: #XL
}
define view I_ProfitCenterHierSubTree
as select from hrrp_node_n
association [0..1] to I_ControllingArea as _ControllingArea on $projection.ControllingArea = _ControllingArea.ControllingArea
association [1..*] to I_ProfitCenterHierarchy as _Hierarchy on $projection.ProfitCenterHierarchy = _Hierarchy.ProfitCenterHierarchy
and $projection.ControllingArea = _Hierarchy.ControllingArea
{
@ObjectModel.foreignKey.association: '_ControllingArea'
key cast( hrrp_node_n.kokrs as fis_kokrs preserving type) as ControllingArea,
@ObjectModel.foreignKey.association: '_Hierarchy'
key cast(hrrp_node_n.hryid as fis_hryid_prctr preserving type) as ProfitCenterHierarchy,
key cast(hrrp_node_n.parnode as fis_prctr_hrynid_50 preserving type) as HierarchyNode,
key hrrp_node_n.nodevalue as ProfitCenter,
_ControllingArea,
_Hierarchy
}
where
hrrp_node_n.hrytyp = '0106'
and hrrp_node_n.hryvalfrom <= $session.system_date
and hrrp_node_n.hryvalto >= $session.system_date
and(
hrrp_node_n.nodetype = 'D'
or hrrp_node_n.nodetype = 'L'
)
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"HRRP_NODE_N"
],
"ASSOCIATED":
[
"I_CONTROLLINGAREA",
"I_PROFITCENTERHIERARCHY"
],
"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