P_EWM_InboundDlvItem01_2
Helper Inb Dlv Item ETAG and Ref Doc
P_EWM_InboundDlvItem01_2 is a Composite CDS View that provides data about "Helper Inb Dlv Item ETAG and Ref Doc" in SAP S/4HANA. It reads from 1 data source (I_EWM_InbDeliveryItemBasic) and exposes 40 fields with key fields EWMInboundDelivery, EWMInboundDeliveryItem. It has 5 associations to related views. Part of development package VDM_EWM_DLV_RAP.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_EWM_InbDeliveryItemBasic | pdi_i | from |
Associations (5)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..1] | I_EWM_DeliveryReferenceDoc_2 | _ManufacturingOrder | pdi_i.InboundDeliveryUUID = _ManufacturingOrder.DeliveryUUID and pdi_i.InboundDeliveryItemUUID = _ManufacturingOrder.DeliveryItemUUID and $projection.EWMDeliveryDocumentCategory = _ManufacturingOrder.EWMDeliveryDocumentCategory and _ManufacturingOrder.EWMReferenceDocumentCategory = 'PPO' |
| [0..1] | I_WBSElementBasicData | _ProjectStockEmbedded | $projection.StockDocumentNumber = _ProjectStockEmbedded.WBSElementInternalID and $projection.StockDocumentCategory = 'PJS' |
| [0..1] | I_EWM_WBSElementDecentralized | _ProjectStockDecentral | $projection.StockDocumentNumber = _ProjectStockDecentral.StockDocumentNumber and $projection.StockDocumentCategory = 'PJS' |
| [0..1] | I_EWM_WhseSystIsDecentralized | _WhseSystemIsDecentralized | _WhseSystemIsDecentralized.WarehouseSystemIsDecentralized = 'X' |
| [0..1] | I_UnitOfMeasure | _UnitOfMeasure | $projection.QuantityUnit = _UnitOfMeasure.UnitOfMeasureSAPCode |
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 (40)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | EWMInboundDelivery | EWMInboundDelivery | Document Number | |
| KEY | EWMInboundDeliveryItem | InboundDeliveryItem | Item | |
| EWMWarehouse | EWMWarehouse | Warehouse No. | ||
| EWMDeliveryDocumentCategory | DeliveryDocumentCategory | |||
| EWMInboundDeliveryItemCategory | DeliveryItemCategory | |||
| EWMInboundDeliveryItemType | InboundDeliveryItemType | |||
| Product | Product Sold | |||
| ProductExternalID | Material | |||
| Batch | Lot No. | |||
| EWMBatchBySupplierPlanned | _ExtProdBatch | EWMBatchBySupplierPlanned | Supplier Batch | |
| CountryOfOrigin | CountryOfOrigin | Country/Region of Origin | ||
| ProductQuantity | ProductQuantity | Quantity | ||
| QuantityUnit | Unit of measure | |||
| EWMInbDelivItmQuantitySAPCode | _UnitOfMeasure | UnitOfMeasureSAPCode | ||
| EWMInbDelivItmQuantityISOCode | _UnitOfMeasure | UnitOfMeasureISOCode | ||
| StagingAreaGroup | StagingAreaGroup | Stg. Area Group | ||
| StagingArea | StagingArea | Stag. Area | ||
| StagingBay | StagingBay | Staging Bay | ||
| GoodsReceiptStatus | GoodsReceiptStatus | Status Value | ||
| PlanningPutawayStatus | ||||
| PutawayStatus | ||||
| CompletionStatus | CompletionStatus | Status Value | ||
| WarehouseProcessType | WarehouseProcessType | Whse Proc. Type | ||
| GoodsMovementBin | GoodsMovementBin | Goods Mvt Bin | ||
| EWMProductionSupplyArea | EWMProductionSupplyArea | PSA | ||
| EntitledToDisposeParty | EntitledToDisposeParty | Disposal Party | ||
| EWMStockUsage | StockUsage | |||
| EWMStockType | StockType | Stock Type | ||
| EWMStockOwner | Owner of stock | |||
| DeliveryItemStockTypeDetnCode | DeliveryItemStockTypeDetnCode | Determin. Ind. | ||
| StockDocumentCategory | StockDocumentCategory | Special Reference Stock Type | ||
| StockDocumentNumber | StockDocumentNumber | |||
| StockItemNumber | StockItemNumber | |||
| SpecialStockIdfgSalesOrder | Stock Ident Header | |||
| SpecialStockIdfgSalesOrderItem | Stock Ident Item | |||
| PurchasingDocument | Purchasing Document | |||
| PurchasingDocumentItem | ||||
| ManufacturingOrder | ||||
| InboundDeliveryUUID | InboundDeliveryUUID | Document ID | ||
| InboundDeliveryItemUUID | InboundDeliveryItemUUID | Item ID |
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_InboundDlvItem01_2.
-- 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_InboundDlvItem01_2 AS
SELECT
EWMInboundDelivery,
InboundDeliveryItem AS EWMInboundDeliveryItem,
EWMWarehouse,
DeliveryDocumentCategory AS EWMDeliveryDocumentCategory,
DeliveryItemCategory AS EWMInboundDeliveryItemCategory,
InboundDeliveryItemType AS EWMInboundDeliveryItemType,
cast( Product as char40 preserving type ) AS Product,
cast( ProductExternalID as char40 preserving type ) AS ProductExternalID,
cast( Batch as charg_d ) AS Batch,
_ExtProdBatch.EWMBatchBySupplierPlanned AS EWMBatchBySupplierPlanned,
CountryOfOrigin,
ProductQuantity,
cast( QuantityUnit as /scwm/de_base_uom preserving type ) AS QuantityUnit,
_UnitOfMeasure.UnitOfMeasureSAPCode AS EWMInbDelivItmQuantitySAPCode,
_UnitOfMeasure.UnitOfMeasureISOCode AS EWMInbDelivItmQuantityISOCode,
StagingAreaGroup,
StagingArea,
StagingBay,
GoodsReceiptStatus,
_ItemStatus[1:DeliveryStatusType = 'DEU'].Status AS PlanningPutawayStatus,
_ItemStatus[1:DeliveryStatusType = 'DPT'].Status AS PutawayStatus,
CompletionStatus,
WarehouseProcessType,
GoodsMovementBin,
EWMProductionSupplyArea,
EntitledToDisposeParty,
StockUsage AS EWMStockUsage,
StockType AS EWMStockType,
cast( StockOwner as char10 preserving type ) AS EWMStockOwner,
DeliveryItemStockTypeDetnCode,
StockDocumentCategory,
StockDocumentNumber,
StockItemNumber,
cast( SpecialStockIdfgSalesOrder as mat_kdauf ) AS SpecialStockIdfgSalesOrder,
cast( SpecialStockIdfgSalesOrderItem as mat_kdpos ) AS SpecialStockIdfgSalesOrderItem,
cast( PurchasingDocument as fis_ebeln ) AS PurchasingDocument,
cast( ltrim( PurchasingDocumentItem, '0' ) as fis_ebelp ) AS PurchasingDocumentItem,
cast(_ManufacturingOrder.EWMRefDeliveryDocumentNumber as manufacturingorder ) AS ManufacturingOrder,
InboundDeliveryUUID,
InboundDeliveryItemUUID
FROM I_EWM_InbDeliveryItemBasic AS pdi_i
LEFT OUTER JOIN I_EWM_DeliveryReferenceDoc_2 AS _ManufacturingOrder ON pdi_i.InboundDeliveryUUID = _ManufacturingOrder.DeliveryUUID AND pdi_i.InboundDeliveryItemUUID = _ManufacturingOrder.DeliveryItemUUID AND EWMDeliveryDocumentCategory = _ManufacturingOrder.EWMDeliveryDocumentCategory AND _ManufacturingOrder.EWMReferenceDocumentCategory = 'PPO' -- association [0..1]
LEFT OUTER JOIN I_WBSElementBasicData AS _ProjectStockEmbedded ON StockDocumentNumber = _ProjectStockEmbedded.WBSElementInternalID AND StockDocumentCategory = 'PJS' -- association [0..1]
LEFT OUTER JOIN I_EWM_WBSElementDecentralized AS _ProjectStockDecentral ON StockDocumentNumber = _ProjectStockDecentral.StockDocumentNumber AND StockDocumentCategory = 'PJS' -- association [0..1]
LEFT OUTER JOIN I_EWM_WhseSystIsDecentralized AS _WhseSystemIsDecentralized ON _WhseSystemIsDecentralized.WarehouseSystemIsDecentralized = 'X' -- association [0..1]
LEFT OUTER JOIN I_UnitOfMeasure AS _UnitOfMeasure ON QuantityUnit = _UnitOfMeasure.UnitOfMeasureSAPCode -- 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