R_HierRuntimeRprstnNode
Hierarchy Node
R_HierRuntimeRprstnNode is a Basic CDS View that provides data about "Hierarchy Node" in SAP S/4HANA. It reads from 1 data source (hrrp_node_n) and exposes 76 fields with key fields HierarchyID, HierarchyVersion, ValidityEndDate, HierarchyNode, HierarchyNodeClass. It has 4 associations to related views.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| hrrp_node_n | hrrp_node_n | from |
Associations (4)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..*] | R_HierRuntimeRprstnNodeText | _Text | $projection.HierarchyID = _Text.HierarchyID and $projection.ValidityEndDate = _Text.ValidityEndDate and $projection.HierarchyNode = _Text.HierarchyNode and $projection.HierarchyNodeClass = _Text.HierarchyNodeClass and $projection.ParentNode = _Text.ParentNode and $projection.HierarchyVersion = _Text.HierarchyVersion |
| [0..1] | R_HierRuntimeRepresentation | _Hierarchy | $projection.HierarchyID = _Hierarchy.HierarchyID and $projection.HierarchyVersion = _Hierarchy.HierarchyVersion and $projection.ValidityEndDate = _Hierarchy.ValidityEndDate |
| [0..1] | I_WBSElementBasicData | _WBSElementBasicData | $projection.WBSElement = _WBSElementBasicData.WBSElement |
| [0..1] | I_ProjectBasicData | _ProjectBasicData | $projection.Project = _ProjectBasicData.Project |
Annotations (11)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | RHRRPNODE | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AbapCatalog.preserveKey | true | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| EndUserText.label | Hierarchy Node | view | |
| VDM.viewType | #BASIC | view | |
| VDM.lifecycle.contract.type | #SAP_INTERNAL_API | view | |
| ObjectModel.usageType.dataClass | #MASTER | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| ObjectModel.usageType.sizeCategory | #XXL | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view |
Fields (76)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | HierarchyID | hryid_42 | ||
| KEY | HierarchyVersion | |||
| KEY | ValidityEndDate | |||
| KEY | HierarchyNode | hrynode | ||
| KEY | HierarchyNodeClass | nodecls | ||
| KEY | ParentNode | parnode | ||
| HierarchyType | hrytyp | |||
| ValidityStartDate | ||||
| DebitCreditCode | balind | |||
| NodeType | nodetype | |||
| HierarchyNodeVal | nodevalue | |||
| SequenceNumber | hryseqnbr | |||
| HierarchyNodeLevel | hrylevel | |||
| ControllingArea | kokrs | |||
| ChartOfAccounts | ktopl | |||
| ConsolidationChartOfAccounts | itclg | |||
| SubItemCategory | sityp | |||
| ValidationScenarioID | scen_id | |||
| FinancialManagementArea | fikrs | |||
| FinMgmtAreaFiscalYear | fma_fisyear | |||
| GLAccount | saknr | |||
| CostCenter | kostl | |||
| ProfitCenter | prctr | |||
| StatisticalKeyFigure | stagr | |||
| ActivityType | lstar | |||
| WBSElementExternalID | _WBSElementBasicData | WBSElementExternalID | ||
| WBSElement | ||||
| FunctionalArea | fkber | |||
| CompanyCode | bukrs | |||
| Segment | segment | |||
| BusinessTransactionType | cbttype | |||
| OrderID | aufnr | |||
| Fund | fincode | |||
| GrantID | grant_nbr | |||
| BudgetPeriod | budget_pd | |||
| SponsoredClass | sponsored_class | |||
| FundCenterText | fictr | |||
| SponsoredProgram | sponsored_prog | |||
| FundedProgram | measure | |||
| BusinessPartnerNumber | partner | |||
| BankAccountInternalID | acc_id | |||
| LiquidityItem | lqpos | |||
| AssetBusinessArea | gsber | |||
| FinancialTransactionType | trtyp | |||
| CustomerNum | kunnr | |||
| AssetSupplier | lifnr | |||
| Project | ||||
| ProjectExternalID | _ProjectBasicData | ProjectExternalID | ||
| Material | matnr | |||
| CustomerGroup | kdgrp | |||
| CountryOrRegion | land1 | |||
| FinancialStatementItemTemplate | item | |||
| ConsolidationUnit | bunit | |||
| SubItem | sitem | |||
| ConsolidationDocumentType | docty | |||
| Company | rcomp | |||
| MaterialGroup | matkl | |||
| ValidationRuleID | rule_num | |||
| SalesDistrict | bzirk | |||
| BillingDocumentType | fkart | |||
| Division | spart | |||
| SalesOrganization | vkorg | |||
| DistributionChannel | vtweg | |||
| Plant | werks | |||
| Industry | brsch | |||
| CommitmentItem | fipex | |||
| PostingLevel | plevl | |||
| FinancialServicesProductGroup | fs_product_group | |||
| PricingIsRelevant | pricingrelevant | |||
| SignIsInverted | sign | |||
| GeneralLedgerAgingIncrement | regrouping | |||
| FinancialStatementLeafItem | fs_leafitem | |||
| FinancialStatementNodeType | fs_nodetype | |||
| FinStmntNodeFormattedID | hrynodeext | |||
| _Text | _Text | |||
| _Hierarchy | _Hierarchy |
@AbapCatalog.sqlViewName: 'RHRRPNODE'
@AbapCatalog.compiler.compareFilter: true
@AbapCatalog.preserveKey: true
@AccessControl.authorizationCheck: #CHECK
@EndUserText.label: 'Hierarchy Node'
@VDM.viewType: #BASIC
@VDM.lifecycle.contract.type:#SAP_INTERNAL_API
@ObjectModel: {
usageType: {
dataClass: #MASTER,
serviceQuality: #C,
sizeCategory: #XXL
}
}
@ClientHandling.algorithm: #SESSION_VARIABLE
define view R_HierRuntimeRprstnNode
as select from hrrp_node_n
association [0..*] to R_HierRuntimeRprstnNodeText as _Text on $projection.HierarchyID = _Text.HierarchyID
and $projection.ValidityEndDate = _Text.ValidityEndDate
and $projection.HierarchyNode = _Text.HierarchyNode
and $projection.HierarchyNodeClass = _Text.HierarchyNodeClass
and $projection.ParentNode = _Text.ParentNode
and $projection.HierarchyVersion = _Text.HierarchyVersion
association [0..1] to R_HierRuntimeRepresentation as _Hierarchy on $projection.HierarchyID = _Hierarchy.HierarchyID
and $projection.HierarchyVersion = _Hierarchy.HierarchyVersion
and $projection.ValidityEndDate = _Hierarchy.ValidityEndDate
association [0..1] to I_WBSElementBasicData as _WBSElementBasicData on $projection.WBSElement = _WBSElementBasicData.WBSElement
association [0..1] to I_ProjectBasicData as _ProjectBasicData on $projection.Project = _ProjectBasicData.Project
{
key hryid_42 as HierarchyID,
key cast( '000000000000001' as hryversn preserving type ) as HierarchyVersion, //keep it for compatibility
@Semantics.businessDate.to: true
key cast(hryvalto as fis_datbi preserving type ) as ValidityEndDate,
@ObjectModel.text.association: '_Text'
key hrynode as HierarchyNode,
key nodecls as HierarchyNodeClass,
key parnode as ParentNode,
hrytyp as HierarchyType,
@Semantics.businessDate.from: true
cast(hryvalfrom as fis_datab preserving type ) as ValidityStartDate,
balind as DebitCreditCode,
nodetype as NodeType,
nodevalue as HierarchyNodeVal,
hryseqnbr as SequenceNumber,
hrylevel as HierarchyNodeLevel,
//HRRP_SI_CLFD
kokrs as ControllingArea, //FIS_KOKRS
ktopl as ChartOfAccounts, //FIS_KTOPL
itclg as ConsolidationChartOfAccounts,
sityp as SubItemCategory,
scen_id as ValidationScenarioID,
fikrs as FinancialManagementArea,
fma_fisyear as FinMgmtAreaFiscalYear,
//HRRP_SI_BETY
saknr as GLAccount, //FIS_RACCT
kostl as CostCenter, //FIS_KOSTL
prctr as ProfitCenter,
stagr as StatisticalKeyFigure, //FIS_STAGR
lstar as ActivityType, //LEARR
_WBSElementBasicData.WBSElementExternalID as WBSElementExternalID,
cast( posid as fis_wbs_no_conv preserving type ) as WBSElement,
fkber as FunctionalArea,
bukrs as CompanyCode,
segment as Segment,
cbttype as BusinessTransactionType,
aufnr as OrderID, //FIS_AUFNR
fincode as Fund,
grant_nbr as GrantID,
budget_pd as BudgetPeriod,
sponsored_class as SponsoredClass,
fictr as FundCenterText,
sponsored_prog as SponsoredProgram,
measure as FundedProgram,
partner as BusinessPartnerNumber,
acc_id as BankAccountInternalID,
lqpos as LiquidityItem,
gsber as AssetBusinessArea,
trtyp as FinancialTransactionType, //FIS_RMVCT
kunnr as CustomerNum,
lifnr as AssetSupplier,
cast( pspid as fis_project_no_conv preserving type ) as Project,
_ProjectBasicData.ProjectExternalID as ProjectExternalID,
matnr as Material,
kdgrp as CustomerGroup,
land1 as CountryOrRegion,
item as FinancialStatementItemTemplate,
bunit as ConsolidationUnit,
sitem as SubItem,
docty as ConsolidationDocumentType,
rcomp as Company,
matkl as MaterialGroup,
rule_num as ValidationRuleID,
bzirk as SalesDistrict,
fkart as BillingDocumentType,
spart as Division,
vkorg as SalesOrganization,
vtweg as DistributionChannel,
werks as Plant,
brsch as Industry,
fipex as CommitmentItem,
plevl as PostingLevel, //FC_PLEVL
fs_product_group as FinancialServicesProductGroup,
//HRRP_SI_CHSALES
pricingrelevant as PricingIsRelevant,
//HRRP_SI_FSVITM
sign as SignIsInverted,
regrouping as GeneralLedgerAgingIncrement,
fs_leafitem as FinancialStatementLeafItem,
fs_nodetype as FinancialStatementNodeType,
hrynodeext as FinStmntNodeFormattedID,
_Text,
_Hierarchy
}
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"I_PROJECTBASICDATA",
"I_WBSELEMENTBASICDATA",
"HRRP_NODE_N"
],
"ASSOCIATED":
[
"I_PROJECTBASICDATA",
"I_WBSELEMENTBASICDATA",
"R_HIERRUNTIMEREPRESENTATION",
"R_HIERRUNTIMERPRSTNNODETEXT"
],
"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