I_CompanyCodeHierSubtree
Company Code Hierarchy Subtree
I_CompanyCodeHierSubtree is a Basic CDS View that provides data about "Company Code Hierarchy Subtree" in SAP S/4HANA. It reads from 1 data source (hrrp_node_n) and exposes 4 fields with key fields CompanyCodeHierarchy, HierarchyNode, CompanyCode. It has 1 association to related views.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| hrrp_node_n | hrrp_node_n | from |
Associations (1)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [1..*] | I_CompanyCodeHierarchy | _Hierarchy | $projection.CompanyCodeHierarchy = _Hierarchy.CompanyCodeHierarchy |
Annotations (12)
| Name | Value | Level | Field |
|---|---|---|---|
| VDM.lifecycle.contract.type | #PUBLIC_LOCAL_API | view | |
| AbapCatalog.preserveKey | true | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AbapCatalog.sqlViewName | IFICCODEHIERST | view | |
| VDM.viewType | #BASIC | view | |
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| EndUserText.label | Company Code Hierarchy Subtree | view | |
| ObjectModel.representativeKey | HierarchyNode | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| ObjectModel.usageType.dataClass | #MASTER | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| ObjectModel.usageType.sizeCategory | #XL | view |
Fields (4)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | CompanyCodeHierarchy | |||
| KEY | HierarchyNode | |||
| KEY | CompanyCode | hrrp_node_n | bukrs | |
| _Hierarchy | _Hierarchy |
@VDM.lifecycle.contract.type: #PUBLIC_LOCAL_API
@AbapCatalog.preserveKey: true
@AbapCatalog.compiler.compareFilter: true
@AbapCatalog.sqlViewName: 'IFICCODEHIERST'
@VDM.viewType: #BASIC
@AccessControl.authorizationCheck: #NOT_REQUIRED
@EndUserText.label: 'Company Code Hierarchy Subtree'
@ObjectModel.representativeKey: 'HierarchyNode'
@ClientHandling.algorithm: #SESSION_VARIABLE
@ObjectModel.usageType: {
dataClass: #MASTER,
serviceQuality: #C,
sizeCategory: #XL
}
define view I_CompanyCodeHierSubtree
as select from hrrp_node_n
association [1..*] to I_CompanyCodeHierarchy as _Hierarchy on $projection.CompanyCodeHierarchy = _Hierarchy.CompanyCodeHierarchy
{
@ObjectModel.foreignKey.association: '_Hierarchy'
key cast(hrrp_node_n.hryid_42 as fis_hryid_ccode_42 preserving type) as CompanyCodeHierarchy,
key cast(hrrp_node_n.parnode as fis_hrynid_ccode_50 preserving type) as HierarchyNode,
key hrrp_node_n.bukrs as CompanyCode,
_Hierarchy
}
where
hrrp_node_n.hrytyp = 'COCD'
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_COMPANYCODEHIERARCHY"
],
"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