R_HierRuntimeRepresentation
Hierarchy Directory
R_HierRuntimeRepresentation is a Basic CDS View that provides data about "Hierarchy Directory" in SAP S/4HANA. It reads from 1 data source (hrrp_dir_n) and exposes 34 fields with key fields HierarchyID, HierarchyVersion, ValidityEndDate. It has 1 association to related views.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| hrrp_dir_n | hrrp_dir_n | from |
Associations (1)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..*] | R_HierRuntimeRprstnText | _Text | $projection.HierarchyID = _Text.HierarchyID and $projection.ValidityEndDate = _Text.ValidityEndDate |
Annotations (11)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | RHRRPDIR | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AbapCatalog.preserveKey | true | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| EndUserText.label | Hierarchy Directory | view | |
| VDM.viewType | #BASIC | view | |
| VDM.lifecycle.contract.type | #SAP_INTERNAL_API | view | |
| ObjectModel.usageType.dataClass | #MASTER | view | |
| ObjectModel.usageType.serviceQuality | #B | view | |
| ObjectModel.usageType.sizeCategory | #XXL | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view |
Fields (34)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | HierarchyID | hryid_42 | ||
| KEY | HierarchyVersion | |||
| KEY | ValidityEndDate | |||
| HierarchyType | hrytyp | |||
| ValidityStartDate | ||||
| LastChangedByUser | upduser | |||
| LastChangeDateTime | updtime | |||
| HierarchyClass | hrycls | |||
| HierarchyShortID | hrysid | |||
| FromCreationDateTime | cretime | |||
| CreatedByUser | creuser | |||
| ControllingArea | kokrs | |||
| ChartOfAccounts | ktopl | |||
| ConsolidationChartOfAccounts | itclg | |||
| SubItemCategory | sityp | |||
| ValidationScenarioID | scen_id | |||
| FinancialManagementArea | fikrs | |||
| FinMgmtAreaFiscalYear | fma_fisyear | |||
| SalesOrganization | salesorganization | |||
| DistributionChannel | distributionchannel | |||
| Division | division | |||
| Language | dspra | |||
| GroupChartOfAccountIsUsed | xergs | |||
| FinancialStatementAssetsItem | aktva | |||
| FinStatementLiabilitiesItem | pssva | |||
| FinancialStatementNetLossItem | ergak | |||
| FinStatementNetProfitItem | ergpa | |||
| FinStatementProfitAndLossItem | erggv | |||
| FinancialStatementOrphansItem | zuord | |||
| FinancialStatementNotesItem | anhng | |||
| GeneralLedgerAgingScope | aging | |||
| FunctionalAreaIsUsed | funareaassigned | |||
| SemanticTagIsUsed | semtagassigned | |||
| _Text | _Text |
@AbapCatalog.sqlViewName: 'RHRRPDIR'
@AbapCatalog.compiler.compareFilter: true
@AbapCatalog.preserveKey: true
@AccessControl.authorizationCheck: #CHECK
@EndUserText.label: 'Hierarchy Directory'
@VDM.viewType: #BASIC
@VDM.lifecycle.contract.type:#SAP_INTERNAL_API
@ObjectModel: {
usageType: {
dataClass: #MASTER,
serviceQuality: #B,
sizeCategory: #XXL
}
}
@ClientHandling.algorithm: #SESSION_VARIABLE
define view R_HierRuntimeRepresentation
as select from hrrp_dir_n
association [0..*] to R_HierRuntimeRprstnText as _Text on $projection.HierarchyID = _Text.HierarchyID
and $projection.ValidityEndDate = _Text.ValidityEndDate
{
@ObjectModel.text.association: '_Text'
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,
hrytyp as HierarchyType,
@Semantics.businessDate.from: true
cast(hryvalfrom as fis_datab preserving type ) as ValidityStartDate,
@Semantics.user.lastChangedBy: true
upduser as LastChangedByUser,
@Semantics.systemDateTime.lastChangedAt: true
updtime as LastChangeDateTime,
hrycls as HierarchyClass,
hrysid as HierarchyShortID,
cretime as FromCreationDateTime,
creuser as CreatedByUser, //VDM_CREATEDBYUSERID
//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_HATTR
salesorganization as SalesOrganization,
distributionchannel as DistributionChannel,
division as Division,
//HRRP_SI_FSV
dspra as Language,
xergs as GroupChartOfAccountIsUsed,
aktva as FinancialStatementAssetsItem,
pssva as FinStatementLiabilitiesItem,
ergak as FinancialStatementNetLossItem,
ergpa as FinStatementNetProfitItem,
erggv as FinStatementProfitAndLossItem,
zuord as FinancialStatementOrphansItem,
anhng as FinancialStatementNotesItem,
aging as GeneralLedgerAgingScope,
funareaassigned as FunctionalAreaIsUsed,
semtagassigned as SemanticTagIsUsed,
_Text
}
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"HRRP_DIR_N"
],
"ASSOCIATED":
[
"R_HIERRUNTIMERPRSTNTEXT"
],
"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