P_EWM_HandlingUnitItem02
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)
| Source | Alias | Join Type |
|---|---|---|
| P_EWM_HandlingUnitItem01 | P_EWM_HandlingUnitItem01 | from |
Associations (3)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [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)
| Name | Value | Level | Field |
|---|---|---|---|
| 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)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| 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]
;
Learn More
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- CDS View Annotations — A Complete Guide
- What Is a CDS View in SAP S/4HANA?
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- CDS View Field Mapping and Associations
- Understanding the SAP S/4HANA Data Model
- CDS View Extensions and Custom Fields in SAP S/4HANA
- Released APIs and Stability Contracts in SAP S/4HANA
- BSEG to ACDOCA: The Universal Journal Migration
- Business Partner Migration: KNA1/LFA1 to BUT000
- Material Document Migration: MSEG/MKPF to MATDOC
- How to Find the Right CDS View for an SAP Table
- BW Extractor to CDS View Migration Guide
- S/4HANA CDS View Deprecation: What You Need to Know
- ABAP CDS View Tutorial — From Basics to Real-World Examples
- RAP and CDS Views — Building Transactional Apps in SAP S/4HANA
- Sales Document Status Migration: VBUP/VBUK Removal in S/4HANA
- CO Tables in S/4HANA: COEP, COBK, COSS, COSP to ACDOCA