P_EWM_TopHandlingUnit

DDL: P_EWM_TOPHANDLINGUNIT Type: view_entity COMPOSITE

Top Handling Unit

P_EWM_TopHandlingUnit is a Composite CDS View that provides data about "Top Handling Unit" in SAP S/4HANA. It reads from 1 data source (I_EWM_HandlingUnitHdr_2) and exposes 8 fields with key fields HandlingUnitExternalID, EWMWarehouse. It has 2 associations to related views.

Data Sources (1)

SourceAliasJoin Type
I_EWM_HandlingUnitHdr_2 I_EWM_HandlingUnitHdr_2 from

Associations (2)

CardinalityTargetAliasCondition
[1..1] P_EWM_TopHandlingUnitLocation _Location $projection.HandlingUnitUUID = _Location.HandlingUnitUUID
[1..1] I_EWM_StorageBin_2 _StorageBin $projection.EWMWarehouse = _StorageBin.EWMWarehouse and $projection.ewmstoragebin = _StorageBin.EWMStorageBin

Annotations (8)

NameValueLevelField
AccessControl.authorizationCheck #NOT_REQUIRED view
EndUserText.label Top Handling Unit view
Metadata.ignorePropagatedAnnotations true view
ObjectModel.usageType.serviceQuality #X view
ObjectModel.usageType.sizeCategory #S view
ObjectModel.usageType.dataClass #MIXED view
VDM.viewType #COMPOSITE view
VDM.private true view

Fields (8)

KeyFieldSource TableSource FieldDescription
KEY HandlingUnitExternalID HandlingUnitNumber
KEY EWMWarehouse EWMWarehouse Warehouse No.
EWMStorageType _Location EWMStorageType Storage Type
EWMStorageBin _Location EWMStorageBin Storage Bin
EWMResource _Location EWMResource
TranspUnitInternalNumber _Location TranspUnitInternalNumber
HandlingUnitUUID HandlingUnitUUID Parent
_StorageBin _StorageBin

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_EWM_TopHandlingUnit.
-- 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_EWM_TopHandlingUnit AS
SELECT
  HandlingUnitNumber AS HandlingUnitExternalID,
  EWMWarehouse,
  _Location.EWMStorageType AS EWMStorageType,
  _Location.EWMStorageBin AS EWMStorageBin,
  _Location.EWMResource AS EWMResource,
  _Location.TranspUnitInternalNumber AS TranspUnitInternalNumber,
  HandlingUnitUUID
FROM I_EWM_HandlingUnitHdr_2
LEFT OUTER JOIN P_EWM_TopHandlingUnitLocation AS _Location ON HandlingUnitUUID = _Location.HandlingUnitUUID  -- association [1..1]
LEFT OUTER JOIN I_EWM_StorageBin_2 AS _StorageBin ON EWMWarehouse = _StorageBin.EWMWarehouse AND ewmstoragebin = _StorageBin.EWMStorageBin  -- association [1..1]
;