I_OrderHierarchy

DDL: I_ORDERHIERARCHY SQL: IFIORDERH Type: view BASIC

Order Hierarchy

I_OrderHierarchy is a Basic CDS View (Dimension) that provides data about "Order Hierarchy" in SAP S/4HANA. It reads from 1 data source (hrrp_dir_n) and exposes 8 fields with key fields OrderHierarchy, ValidityEndDate. It has 1 association to related views.

Data Sources (1)

SourceAliasJoin Type
hrrp_dir_n hrrp_dir_n from

Associations (1)

CardinalityTargetAliasCondition
[1..*] I_OrderHierarchyText _Text $projection.OrderHierarchy = _Text.OrderHierarchy and $projection.ValidityEndDate = _Text.ValidityEndDate

Annotations (15)

NameValueLevelField
AbapCatalog.sqlViewName IFIORDERH view
AbapCatalog.preserveKey true view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #CHECK view
EndUserText.label Order Hierarchy view
ObjectModel.representativeKey OrderHierarchy view
Analytics.dataCategory #DIMENSION view
VDM.viewType #BASIC view
Metadata.allowExtensions true view
ClientHandling.algorithm #SESSION_VARIABLE view
ObjectModel.usageType.dataClass #MASTER view
ObjectModel.usageType.serviceQuality #A view
ObjectModel.usageType.sizeCategory #XL view
Analytics.internalName #LOCAL view
ObjectModel.sapObjectNodeType.name OrderHierarchy view

Fields (8)

KeyFieldSource TableSource FieldDescription
KEY OrderHierarchy
KEY ValidityEndDate
ValidityStartDate
LastChangedByUser hrrp_dir_n upduser Changed By
LastChangeDateTime hrrp_dir_n updtime Updated At
LastChangeTime hrrp_dir_n updtime Updated At
HierarchyShortID hrrp_dir_n hrysid Hierarchy ID
_Text _Text

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 I_OrderHierarchy.
-- 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: IFIORDERH

CREATE VIEW I_OrderHierarchy AS
SELECT
  cast ( hrrp_dir_n.hryid_42 as fis_iorder preserving type ) AS OrderHierarchy,
  cast(hrrp_dir_n.hryvalto as fis_datbi preserving type ) AS ValidityEndDate,
  cast(hrrp_dir_n.hryvalfrom as fis_datab preserving type ) AS ValidityStartDate,
  hrrp_dir_n.upduser AS LastChangedByUser,
  hrrp_dir_n.updtime AS LastChangeDateTime,
  hrrp_dir_n.updtime AS LastChangeTime,
  hrrp_dir_n.hrysid AS HierarchyShortID
FROM hrrp_dir_n
LEFT OUTER JOIN I_OrderHierarchyText AS _Text ON OrderHierarchy = _Text.OrderHierarchy AND ValidityEndDate = _Text.ValidityEndDate  -- association [1..*]
;