P_EWM_InboundDlvItem01
P_EWM_InboundDlvItem01 is a Composite CDS View in SAP S/4HANA. It reads from 1 data source (I_EWM_InbDeliveryItemBasic) and exposes 36 fields with key fields InboundDelivery, InboundDeliveryItem. It has 4 associations to related views.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_EWM_InbDeliveryItemBasic | pdi_i | from |
Associations (4)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..1] | I_EWM_DeliveryReferenceDoc | _ReferenceDocument | pdi_i.InboundDeliveryUUID = _ReferenceDocument.DeliveryUUID and pdi_i.InboundDeliveryItemUUID = _ReferenceDocument.DeliveryItemUUID and $projection.DeliveryCategory = _ReferenceDocument.DeliveryCategory |
| [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' |
Annotations (12)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | PINBDLVITEM01 | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AbapCatalog.preserveKey | true | view | |
| 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 | |
| VDM.lifecycle.status | #DEPRECATED | view | |
| VDM.lifecycle.successor | P_EWM_InboundDlvItem01_2 | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view |
Fields (36)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | InboundDelivery | InboundDelivery | LE Delivery | |
| KEY | InboundDeliveryItem | InboundDeliveryItem | Item | |
| Warehouse | Warehouse | Warehouse No. | ||
| DeliveryCategory | DeliveryDocumentCategory | |||
| DeliveryItemCategory | DeliveryItemCategory | |||
| InboundDeliveryItemType | InboundDeliveryItemType | |||
| Product | Product Sold | |||
| ProductExternalID | Material | |||
| ProductBatch | Lot No. | |||
| CountryOfOrigin | CountryOfOrigin | Country/Region of Origin | ||
| ProductQuantity | ProductQuantity | Quantity | ||
| QuantityUnit | Unit of measure | |||
| 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 | ||
| ProductionSupplyArea | ProductionSupplyArea | Supply Area | ||
| EntitledToDisposeParty | EntitledToDisposeParty | Disposal Party | ||
| StockUsage | StockUsage | |||
| WarehouseStockCategory | StockType | Stock Type | ||
| StockOwner | Owner of stock | |||
| DeliveryItemStockTypeDetnCode | DeliveryItemStockTypeDetnCode | Determin. Ind. | ||
| StockDocumentCategory | StockDocumentCategory | Special Reference Stock Type | ||
| StockDocumentNumber | StockDocumentNumber | |||
| StockItemNumber | StockItemNumber | |||
| SpecialStockIdfgSalesOrder | Stock Ident Header | |||
| PurchasingDocument | ||||
| 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.
-- 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.
-- SQL view name: PINBDLVITEM01
CREATE VIEW P_EWM_InboundDlvItem01 AS
SELECT
InboundDelivery,
InboundDeliveryItem,
Warehouse,
DeliveryDocumentCategory AS DeliveryCategory,
DeliveryItemCategory,
InboundDeliveryItemType,
cast( Product as char40 preserving type ) AS Product,
cast( ProductExternalID as char40 preserving type ) AS ProductExternalID,
cast( Batch as /scdl/dl_batchno ) AS ProductBatch,
CountryOfOrigin,
ProductQuantity,
cast( QuantityUnit as /scwm/de_base_uom preserving type ) AS QuantityUnit,
StagingAreaGroup,
StagingArea,
StagingBay,
GoodsReceiptStatus,
_ItemStatus[1:DeliveryStatusType = 'DEU'].Status AS PlanningPutawayStatus,
_ItemStatus[1:DeliveryStatusType = 'DPT'].Status AS PutawayStatus,
CompletionStatus,
WarehouseProcessType,
GoodsMovementBin,
ProductionSupplyArea,
EntitledToDisposeParty,
StockUsage,
StockType AS WarehouseStockCategory,
cast( StockOwner as char10 preserving type ) AS StockOwner,
DeliveryItemStockTypeDetnCode,
StockDocumentCategory,
StockDocumentNumber,
StockItemNumber,
cast( SpecialStockIdfgSalesOrder as /scwm/de_stock_docno ) AS SpecialStockIdfgSalesOrder,
_ReferenceDocument[1:ReferenceDocumentCategory = 'PO'].ReferenceDocumentNumber AS PurchasingDocument,
_ReferenceDocument[1:ReferenceDocumentCategory = 'PO'].ReferenceDocumentItemNumber AS PurchasingDocumentItem,
_ReferenceDocument[1:ReferenceDocumentCategory = 'PPO'].ReferenceDocumentNumber AS ManufacturingOrder,
InboundDeliveryUUID,
InboundDeliveryItemUUID
FROM I_EWM_InbDeliveryItemBasic AS pdi_i
LEFT OUTER JOIN I_EWM_DeliveryReferenceDoc AS _ReferenceDocument ON pdi_i.InboundDeliveryUUID = _ReferenceDocument.DeliveryUUID AND pdi_i.InboundDeliveryItemUUID = _ReferenceDocument.DeliveryItemUUID AND DeliveryCategory = _ReferenceDocument.DeliveryCategory -- 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]
;
Learn More
- S/4HANA CDS View Deprecation: What You Need to Know
- 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
- 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