R_HierRuntimeRprstnText

DDL: R_HIERRUNTIMERPRSTNTEXT SQL: RHRRPDIRT Type: view BASIC

Hierarchy Directory Text

R_HierRuntimeRprstnText is a Basic CDS View that provides data about "Hierarchy Directory Text" in SAP S/4HANA. It reads from 1 data source (hrrp_dirt_n) and exposes 17 fields with key fields HierarchyID, HierarchyVersion, ValidityEndDate, Language. It has 2 associations to related views.

Data Sources (1)

SourceAliasJoin Type
hrrp_dirt_n hrrp_dirt_n from

Associations (2)

CardinalityTargetAliasCondition
[0..1] I_Language _Language $projection.Language = _Language.Language
[0..1] R_HierRuntimeRepresentation _Hierarchy $projection.HierarchyID = _Hierarchy.HierarchyID and $projection.ValidityEndDate = _Hierarchy.ValidityEndDate and $projection.HierarchyVersion = _Hierarchy.HierarchyVersion

Annotations (11)

NameValueLevelField
AbapCatalog.sqlViewName RHRRPDIRT view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
AccessControl.authorizationCheck #CHECK view
EndUserText.label Hierarchy Directory Text 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 (17)

KeyFieldSource TableSource FieldDescription
KEY HierarchyID hryid_42 Hierarchy ID
KEY HierarchyVersion
KEY ValidityEndDate Valid To
KEY Language spras Off. Language
HierarchyType hrytyp Hierarchy Type
ValidityStartDate Valid From
HierarchyName hrytxt Description
HierarchyClass hrycls Hierarchy Class
ControllingArea kokrs Org. Value
ChartOfAccounts ktopl G/L Chart of Accounts
ConsolidationChartOfAccounts itclg Consolidation COA
SubItemCategory sityp Trip Schedule Type
ValidationScenarioID scen_id Scenario
FinancialManagementArea fikrs FM Area
FinMgmtAreaFiscalYear fma_fisyear FMA Fiscal Year
_Hierarchy _Hierarchy
_Language _Language

Derived SQL interpretation, reconstructed from the parsed view metadata (data sources, associations, and field mappings). SAP annotations are omitted and the structure is reformulated as SQL — this is a functional approximation, not the verbatim SAP source.

-- Derived SQL interpretation of CDS view R_HierRuntimeRprstnText.
-- Reconstructed from parsed metadata (data sources, associations, fields).
-- SAP annotations are omitted and the structure is reformulated as SQL;
-- this is a functional approximation, not the verbatim SAP source. Some join
-- conditions may be unavailable and a few CDS constructs are kept as-is.
-- SQL view name: RHRRPDIRT

CREATE VIEW R_HierRuntimeRprstnText AS
SELECT
  hryid_42 AS HierarchyID,
  cast( '000000000000001' as hryversn preserving type) AS HierarchyVersion,
  cast(hryvalto as fis_datbi preserving type ) AS ValidityEndDate,
  spras AS Language,
  hrytyp AS HierarchyType,
  cast(hryvalfrom as fis_datab preserving type ) AS ValidityStartDate,
  hrytxt AS HierarchyName,
  hrycls AS HierarchyClass,
  kokrs AS ControllingArea,
  ktopl AS ChartOfAccounts,
  itclg AS ConsolidationChartOfAccounts,
  sityp AS SubItemCategory,
  scen_id AS ValidationScenarioID,
  fikrs AS FinancialManagementArea,
  fma_fisyear AS FinMgmtAreaFiscalYear
FROM hrrp_dirt_n
LEFT OUTER JOIN I_Language AS _Language ON Language = _Language.Language  -- association [0..1]
LEFT OUTER JOIN R_HierRuntimeRepresentation AS _Hierarchy ON HierarchyID = _Hierarchy.HierarchyID AND ValidityEndDate = _Hierarchy.ValidityEndDate AND HierarchyVersion = _Hierarchy.HierarchyVersion  -- association [0..1]
;