I_LineHierarchy

DDL: I_LINEHIERARCHY SQL: IPPLINEHIERARCHY Type: view_entity BASIC

Line Hierarchy

I_LineHierarchy is a Basic CDS View (Dimension) that provides data about "Line Hierarchy" in SAP S/4HANA. It reads from 2 data sources (crhd, ldlh) and exposes 14 fields with key field LineHierarchyInternalID. It has 5 associations to related views.

Data Sources (2)

SourceAliasJoin Type
crhd crhd inner
ldlh ldlh from

Associations (5)

CardinalityTargetAliasCondition
[1..1] I_Plant _Plant $projection.Plant = _Plant.Plant
[0..*] I_LineHierarchyText_2 _Text $projection.LineHierarchyInternalID = _Text.LineHierarchyInternalID and _Text.WorkCenterTypeCode = 'A'
[1..1] I_User _CreatedByUser $projection.CreatedByUser = _CreatedByUser.UserID
[0..1] I_User _LastChangedByUser $projection.LastChangedByUser = _LastChangedByUser.UserID
[0..1] I_UnitOfMeasure _RateUnit $projection.LineHierarchyRateUnit = _RateUnit.UnitOfMeasure

Annotations (14)

NameValueLevelField
AccessControl.authorizationCheck #CHECK view
AccessControl.personalData.blocking #NOT_REQUIRED view
Analytics.dataCategory #DIMENSION view
Metadata.allowExtensions true view
Metadata.ignorePropagatedAnnotations true view
ObjectModel.modelingPattern #ANALYTICAL_DIMENSION view
ObjectModel.representativeKey LineHierarchyInternalID view
ObjectModel.usageType.serviceQuality #B view
ObjectModel.usageType.sizeCategory #M view
ObjectModel.usageType.dataClass #MASTER view
VDM.viewType #BASIC view
VDM.lifecycle.contract.type #PUBLIC_LOCAL_API view
Search.searchable true view
EndUserText.label Line Hierarchy view

Fields (14)

KeyFieldSource TableSource FieldDescription
KEY LineHierarchyInternalID ldlh lnid Object ID
LineHierarchy
Plant crhd werks Receiving Plant
CreationDate ldlh andat Created On
CreatedByUser
LastChangeDate ldlh aedat Obsolete
LastChangedByUser
LineHierarchyRateUnit ldlh lunit Rate Unit
lrateasMaximumRateQuantity
_Plant _Plant
_Text _Text
_CreatedByUser _CreatedByUser
_LastChangedByUser _LastChangedByUser
_RateUnit _RateUnit

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_LineHierarchy.
-- 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: IPPLINEHIERARCHY

CREATE VIEW I_LineHierarchy AS
SELECT
  ldlh.lnid AS LineHierarchyInternalID,
  cast(crhd.arbpl as ld_line preserving type) AS LineHierarchy,
  crhd.werks AS Plant,
  ldlh.andat AS CreationDate,
  cast(ldlh.annam as vdm_createdbyuserid preserving type) AS CreatedByUser,
  ldlh.aedat AS LastChangeDate,
  cast(ldlh.aenam as vdm_lastchangedbyuserid preserving type) AS LastChangedByUser,
  ldlh.lunit AS LineHierarchyRateUnit
FROM ldlh
INNER JOIN crhd ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_Plant AS _Plant ON Plant = _Plant.Plant  -- association [1..1]
LEFT OUTER JOIN I_LineHierarchyText_2 AS _Text ON LineHierarchyInternalID = _Text.LineHierarchyInternalID AND _Text.WorkCenterTypeCode = 'A'  -- association [0..*]
LEFT OUTER JOIN I_User AS _CreatedByUser ON CreatedByUser = _CreatedByUser.UserID  -- association [1..1]
LEFT OUTER JOIN I_User AS _LastChangedByUser ON LastChangedByUser = _LastChangedByUser.UserID  -- association [0..1]
LEFT OUTER JOIN I_UnitOfMeasure AS _RateUnit ON LineHierarchyRateUnit = _RateUnit.UnitOfMeasure  -- association [0..1]
;