R_HierRtmeRprstnAddlAttrib

DDL: R_HIERRTMERPRSTNADDLATTRIB SQL: RHRRPADDLATTRDIR Type: view BASIC

Hierarchy Directory Attribute

R_HierRtmeRprstnAddlAttrib is a Basic CDS View that provides data about "Hierarchy Directory Attribute" in SAP S/4HANA. It reads from 1 data source (hrrp_attr_dir_n) and exposes 9 fields with key fields RuntimeHierarchy, HierarchyVersion, ValidityEndDate, HierarchyAttributeName, HierAttributeRangeFromVal. It has 1 association to related views.

Data Sources (1)

SourceAliasJoin Type
hrrp_attr_dir_n hrrp_attr_dir_n from

Associations (1)

CardinalityTargetAliasCondition
[0..1] R_HierRuntimeRepresentation _Hierarchy $projection.RuntimeHierarchy = _Hierarchy.HierarchyID and $projection.ValidityEndDate = _Hierarchy.ValidityEndDate and $projection.HierarchyVersion = _Hierarchy.HierarchyVersion

Annotations (10)

NameValueLevelField
AbapCatalog.sqlViewName RHRRPADDLATTRDIR view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #MANDATORY view
EndUserText.label Hierarchy Directory Attribute view
VDM.lifecycle.contract.type #SAP_INTERNAL_API view
VDM.viewType #BASIC view
ObjectModel.usageType.dataClass #MASTER view
ObjectModel.usageType.serviceQuality #B view
ObjectModel.usageType.sizeCategory #XXL view
ClientHandling.algorithm #SESSION_VARIABLE view

Fields (9)

KeyFieldSource TableSource FieldDescription
KEY RuntimeHierarchy hryid Hierarchy ID
KEY HierarchyVersion
KEY ValidityEndDate Valid To
KEY HierarchyAttributeName hryattrname Attribute Name
KEY HierAttributeRangeFromVal hryattrvalue Attribute Value
HierarchyType hrytyp Hierarchy Type
HierAttributeRangeToVal hryattrhvalue Attribute High Value
HierarchyNodeIsTimeDependent node_timedep
_Hierarchy _Hierarchy

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_HierRtmeRprstnAddlAttrib.
-- 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: RHRRPADDLATTRDIR

CREATE VIEW R_HierRtmeRprstnAddlAttrib AS
SELECT
  hryid AS RuntimeHierarchy,
  cast( '000000000000001' as hryversn preserving type ) AS HierarchyVersion,
  cast(hryvalto as fis_datbi preserving type ) AS ValidityEndDate,
  hryattrname AS HierarchyAttributeName,
  hryattrvalue AS HierAttributeRangeFromVal,
  hrytyp AS HierarchyType,
  hryattrhvalue AS HierAttributeRangeToVal,
  node_timedep AS HierarchyNodeIsTimeDependent
FROM hrrp_attr_dir_n
LEFT OUTER JOIN R_HierRuntimeRepresentation AS _Hierarchy ON RuntimeHierarchy = _Hierarchy.HierarchyID AND ValidityEndDate = _Hierarchy.ValidityEndDate AND HierarchyVersion = _Hierarchy.HierarchyVersion  -- association [0..1]
;