P_EWM_HandlingUnitItem02

DDL: P_EWM_HANDLINGUNITITEM02 Type: view_entity COMPOSITE Package: WME_ODATA_API

Helper View HU Item latest Snapshot, ProductUUID, BatchUUID

P_EWM_HandlingUnitItem02 is a Composite CDS View that provides data about "Helper View HU Item latest Snapshot, ProductUUID, BatchUUID" in SAP S/4HANA. It reads from 1 data source (P_EWM_HandlingUnitItem01) and exposes 22 fields with key fields HandlingUnitExternalID, Warehouse, StockItemUUID. It has 3 associations to related views. Part of development package WME_ODATA_API.

Data Sources (1)

SourceAliasJoin Type
P_EWM_HandlingUnitItem01 P_EWM_HandlingUnitItem01 from

Associations (3)

CardinalityTargetAliasCondition
[1..1] I_Product _Product $projection.ProductUUID = _Product.ProductUUID
[1..1] I_Batch _Batch $projection.BatchUUID = _Batch.BatchExtWhseMgmtInternalId
[0..1] P_EWM_HandlingUnitItemDlvRef01 _LogisticExecutionDelivery $projection.DeliveryUUID = _LogisticExecutionDelivery.DeliveryUUID and $projection.DeliveryItemUUID = _LogisticExecutionDelivery.DeliveryItemUUID and $projection.DeliveryCategory = _LogisticExecutionDelivery.DeliveryCategory

Annotations (6)

NameValueLevelField
AccessControl.authorizationCheck #NOT_REQUIRED view
ObjectModel.usageType.serviceQuality #D view
ObjectModel.usageType.sizeCategory #XXL view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
VDM.viewType #COMPOSITE view
VDM.private true view

Fields (22)

KeyFieldSource TableSource FieldDescription
KEY HandlingUnitExternalID HandlingUnitExternalID Handling Unit
KEY Warehouse Warehouse Warehouse No.
KEY StockItemUUID StockItemUUID
DeliveryCategory DeliveryCategory
DeliveryUUID DeliveryUUID
DeliveryItemUUID DeliveryItemUUID
ReferenceDocumentNumber _LogisticExecutionDelivery ReferenceDocumentNumber
ReferenceDocumentItemNumber _LogisticExecutionDelivery ReferenceDocumentItemNumber
ProductUUID ProductUUID UUID
Product _Product Product Product Sold
ProductName
HandlingUnitQuantity HandlingUnitQuantity Packed Quantity
HandlingUnitBaseUnitOfMeasure HandlingUnitBaseUnitOfMeasure
HandlingUnitAltUnitOfMeasure HandlingUnitAltUnitOfMeasure
BatchUUID BatchUUID Target Grp GUID
Batch _Batch Batch Lot No.
ShelfLifeExpirationDate ShelfLifeExpirationDate SLED/BBD
GoodsReceiptUTCDateTime GoodsReceiptUTCDateTime
CountryOfOrigin CountryOfOrigin Country/Region of Origin
ParentHandlingUnitUUID ParentHandlingUnitUUID
EntitledToDisposeParty EntitledToDisposeParty Disposal Party
BusinessPartnerUUID

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_HandlingUnitItem02.
-- 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_HandlingUnitItem02 AS
SELECT
  HandlingUnitExternalID,
  Warehouse,
  StockItemUUID,
  DeliveryCategory,
  DeliveryUUID,
  DeliveryItemUUID,
  _LogisticExecutionDelivery.ReferenceDocumentNumber AS ReferenceDocumentNumber,
  _LogisticExecutionDelivery.ReferenceDocumentItemNumber AS ReferenceDocumentItemNumber,
  ProductUUID,
  _Product.Product AS Product,
  _Product._Text[1: Language = $session.system_language ].ProductName AS ProductName,
  HandlingUnitQuantity,
  HandlingUnitBaseUnitOfMeasure,
  HandlingUnitAltUnitOfMeasure,
  BatchUUID,
  _Batch.Batch AS Batch,
  ShelfLifeExpirationDate,
  GoodsReceiptUTCDateTime,
  CountryOfOrigin,
  ParentHandlingUnitUUID,
  EntitledToDisposeParty,
  P_EWM_HandlingUnitItem01._BusinessPartner.BusinessPartnerUUID AS BusinessPartnerUUID
FROM P_EWM_HandlingUnitItem01
LEFT OUTER JOIN I_Product AS _Product ON ProductUUID = _Product.ProductUUID  -- association [1..1]
LEFT OUTER JOIN I_Batch AS _Batch ON BatchUUID = _Batch.BatchExtWhseMgmtInternalId  -- association [1..1]
LEFT OUTER JOIN P_EWM_HandlingUnitItemDlvRef01 AS _LogisticExecutionDelivery ON DeliveryUUID = _LogisticExecutionDelivery.DeliveryUUID AND DeliveryItemUUID = _LogisticExecutionDelivery.DeliveryItemUUID AND DeliveryCategory = _LogisticExecutionDelivery.DeliveryCategory  -- association [0..1]
;