Deprecated
This CDS view is deprecated in S/4HANA. Use P_EWM_HandlingUnitHeader05_2 instead. View all deprecated CDS views →

P_EWM_HandlingUnitHeader05

DDL: P_EWM_HANDLINGUNITHEADER05 SQL: PEWMHUHDR05 Type: view COMPOSITE

P_EWM_HandlingUnitHeader05 is a Composite CDS View in SAP S/4HANA. It reads from 1 data source (P_EWM_HandlingUnitHeader03) and exposes 3 fields with key fields HandlingUnitExternalID, Warehouse. It has 1 association to related views.

Data Sources (1)

SourceAliasJoin Type
P_EWM_HandlingUnitHeader03 _HandlingUnitUnion from

Associations (1)

CardinalityTargetAliasCondition
[0..1] P_EWM_HandlingUnitHeader04 _CountHandlingUnits $projection.HandlingUnitExternalID = _CountHandlingUnits.HandlingUnitExternalID and $projection.Warehouse = _CountHandlingUnits.Warehouse

Annotations (12)

NameValueLevelField
AbapCatalog.sqlViewName PEWMHUHDR05 view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
AccessControl.authorizationCheck #NOT_REQUIRED view
ObjectModel.usageType.serviceQuality #D view
ObjectModel.usageType.sizeCategory #M view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
ClientHandling.algorithm #SESSION_VARIABLE view
VDM.viewType #COMPOSITE view
VDM.private true view
VDM.lifecycle.status #DEPRECATED view
VDM.lifecycle.successor P_EWM_HandlingUnitHeader05_2 view

Fields (3)

KeyFieldSource TableSource FieldDescription
KEY HandlingUnitExternalID HandlingUnitExternalID Handling Unit
KEY Warehouse Warehouse Warehouse No.
ActiveEntriesendasActiveEntries

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_HandlingUnitHeader05.
-- 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: PEWMHUHDR05

CREATE VIEW P_EWM_HandlingUnitHeader05 AS
SELECT
  HandlingUnitExternalID,
  Warehouse,
  case when _CountHandlingUnits.ActiveEntries is null then cast( 0 as int1 preserving type ) else _CountHandlingUnits.ActiveEntries end as ActiveEntries AS ActiveEntriesendasActiveEntries
FROM P_EWM_HandlingUnitHeader03 AS _HandlingUnitUnion
LEFT OUTER JOIN P_EWM_HandlingUnitHeader04 AS _CountHandlingUnits ON HandlingUnitExternalID = _CountHandlingUnits.HandlingUnitExternalID AND Warehouse = _CountHandlingUnits.Warehouse  -- association [0..1]
;