P_EWM_HandlingUnitItem05
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)
| Source | Alias | Join Type |
|---|---|---|
| P_EWM_HandlingUnitItem04_2 | P_EWM_HandlingUnitItem04_2 | from |
Associations (2)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [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)
| Name | Value | Level | Field |
|---|---|---|---|
| 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)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| 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]
;
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