I_LineHierarchy
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.
Associations (5)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [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)
| Name | Value | Level | Field |
|---|---|---|---|
| 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)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| 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]
;
Learn More
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- CDS View Annotations — A Complete Guide
- What Is a CDS View in SAP S/4HANA?
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- 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
- BSEG to ACDOCA: The Universal Journal Migration
- Business Partner Migration: KNA1/LFA1 to BUT000
- Material Document Migration: MSEG/MKPF to MATDOC
- How to Find the Right CDS View for an SAP Table
- BW Extractor to CDS View Migration Guide
- S/4HANA CDS View Deprecation: What You Need to Know
- ABAP CDS View Tutorial — From Basics to Real-World Examples
- RAP and CDS Views — Building Transactional Apps in SAP S/4HANA
- Sales Document Status Migration: VBUP/VBUK Removal in S/4HANA
- CO Tables in S/4HANA: COEP, COBK, COSS, COSP to ACDOCA