P_EHSLocationHierarchyLevel

DDL: P_EHSLOCATIONHIERARCHYLEVEL Type: view COMPOSITE Package: EHFND_BO_LHR_IMPL

Determine the level of a EHS location within the hierarchy

P_EHSLocationHierarchyLevel is a Composite CDS View that provides data about "Determine the level of a EHS location within the hierarchy" in SAP S/4HANA. It reads from 1 data source (I_EHSLocHierarchyPath) and exposes 4 fields with key fields EHSLocHierarchyRevisionUUID, EHSLocationUUID. Part of development package EHFND_BO_LHR_IMPL.

Data Sources (1)

SourceAliasJoin Type
I_EHSLocHierarchyPath I_EHSLocHierarchyPath from

Annotations (9)

NameValueLevelField
AbapCatalog.sqlViewName PEHSLHRLOCLVL view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #NOT_REQUIRED view
VDM.private true view
VDM.viewType #COMPOSITE view
ClientHandling.algorithm #SESSION_VARIABLE view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #L view
ObjectModel.usageType.dataClass #MASTER view

Fields (4)

KeyFieldSource TableSource FieldDescription
KEY EHSLocHierarchyRevisionUUID EHSLocHierarchyRevisionUUID
KEY EHSLocationUUID EHSLocationUUID NodeID
EHSLocationHierarchyLevel
_EHSLocation _EHSLocation

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 P_EHSLocationHierarchyLevel.
-- 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.

CREATE VIEW P_EHSLocationHierarchyLevel AS
SELECT
  EHSLocHierarchyRevisionUUID,
  EHSLocationUUID,
  count( * ) AS EHSLocationHierarchyLevel
FROM I_EHSLocHierarchyPath
;