P_EWM_HandlingUnitItem05

DDL: P_EWM_HANDLINGUNITITEM05 Type: view_entity COMPOSITE Package: WME_ODATA_API

Association To Storage Location

P_EWM_HandlingUnitItem05 is a Composite CDS View that provides data about "Association To Storage Location" in SAP S/4HANA. It reads from 1 data source (P_EWM_HandlingUnitItem04_2) and exposes 35 fields with key fields EWMWarehouse, HandlingUnitNumber, StockItemUUID. It has 2 associations to related views. Part of development package WME_ODATA_API.

Data Sources (1)

SourceAliasJoin Type
P_EWM_HandlingUnitItem04_2 P_EWM_HandlingUnitItem04_2 from

Associations (2)

CardinalityTargetAliasCondition
[1..1] I_EWM_PlantStorLocMapToWhse _PlantMapping $projection.EWMWarehouse = _PlantMapping.EWMWarehouse and $projection.Plant = _PlantMapping.Plant and $projection.LogicalSystem = _PlantMapping.ERPLogicalSystem and $projection.EWMAvailabilityGroup = _PlantMapping.EWMAvailabilityGroup
[1..1] P_EWM_HandlingUnitItemSrlNo02 _CountSerialNo $projection.ParentHandlingUnitUUID = _CountSerialNo.ParentHandlingUnitUUID and $projection.StockItemUUID = _CountSerialNo.StockItemUUID

Annotations (7)

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

Fields (35)

KeyFieldSource TableSource FieldDescription
KEY EWMWarehouse EWMWarehouse Warehouse No.
KEY HandlingUnitNumber HandlingUnitNumber
KEY StockItemUUID StockItemUUID
CurrentNumberOfKeyTable CurrentNumberOfKeyTable
EWMStockType EWMStockType Stock Type
EWMAvailabilityGroup EWMAvailabilityGroup
EWMLocIndepStockType EWMLocIndepStockType
StockType StockType Stock Type
DeliveryCategory DeliveryCategory
EWMDocumentCategory EWMDocumentCategory
DeliveryUUID DeliveryUUID
EWMRefDeliveryDocumentNumber EWMRefDeliveryDocumentNumber
DeliveryItemUUID DeliveryItemUUID
EWMRefDeliveryDocumentItem EWMRefDeliveryDocumentItem
ProductUUID ProductUUID UUID
Product Product Product Sold
ProductName ProductName Description
BatchUUID BatchUUID Target Grp GUID
Batch Batch Lot No.
EntitledToDisposeParty EntitledToDisposeParty Disposal Party
EWMStockOwner EWMStockOwner Character Field with Length 10
BusinessPartnerUUID BusinessPartnerUUID UUID
Supplier Supplier Supplier
Plant Plant Valuation Area
StorageLocation _PlantMapping StorageLocation StorageLocation
LogicalSystem LogicalSystem Logical System
HandlingUnitQuantity HandlingUnitQuantity Packed Quantity
HandlingUnitBaseUnitOfMeasure HandlingUnitBaseUnitOfMeasure
HandlingUnitAltUnitOfMeasure HandlingUnitAltUnitOfMeasure
ShelfLifeExpirationDate ShelfLifeExpirationDate SLED/BBD
GoodsReceiptUTCDateTime GoodsReceiptUTCDateTime
CountryOfOrigin CountryOfOrigin Country/Region of Origin
HandlingUnitNumberOfSerialNumb _CountSerialNo HandlingUnitNumberOfSerialNumb
SerialNumberProfile SerialNumberProfile SerialNoProfile
ParentHandlingUnitUUID ParentHandlingUnitUUID

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_HandlingUnitItem05.
-- 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_HandlingUnitItem05 AS
SELECT
  EWMWarehouse,
  HandlingUnitNumber,
  StockItemUUID,
  CurrentNumberOfKeyTable,
  EWMStockType,
  EWMAvailabilityGroup,
  EWMLocIndepStockType,
  StockType,
  DeliveryCategory,
  EWMDocumentCategory,
  DeliveryUUID,
  EWMRefDeliveryDocumentNumber,
  DeliveryItemUUID,
  EWMRefDeliveryDocumentItem,
  ProductUUID,
  Product,
  ProductName,
  BatchUUID,
  Batch,
  EntitledToDisposeParty,
  EWMStockOwner,
  BusinessPartnerUUID,
  Supplier,
  Plant,
  _PlantMapping.StorageLocation AS StorageLocation,
  LogicalSystem,
  HandlingUnitQuantity,
  HandlingUnitBaseUnitOfMeasure,
  HandlingUnitAltUnitOfMeasure,
  ShelfLifeExpirationDate,
  GoodsReceiptUTCDateTime,
  CountryOfOrigin,
  _CountSerialNo.HandlingUnitNumberOfSerialNumb AS HandlingUnitNumberOfSerialNumb,
  SerialNumberProfile,
  ParentHandlingUnitUUID
FROM P_EWM_HandlingUnitItem04_2
LEFT OUTER JOIN I_EWM_PlantStorLocMapToWhse AS _PlantMapping ON EWMWarehouse = _PlantMapping.EWMWarehouse AND Plant = _PlantMapping.Plant AND LogicalSystem = _PlantMapping.ERPLogicalSystem AND EWMAvailabilityGroup = _PlantMapping.EWMAvailabilityGroup  -- association [1..1]
LEFT OUTER JOIN P_EWM_HandlingUnitItemSrlNo02 AS _CountSerialNo ON ParentHandlingUnitUUID = _CountSerialNo.ParentHandlingUnitUUID AND StockItemUUID = _CountSerialNo.StockItemUUID  -- association [1..1]
;