Deprecated
This CDS view is deprecated in S/4HANA. Use P_EWM_InboundDlvItem01_2 instead. View all deprecated CDS views →

P_EWM_InboundDlvItem01

DDL: P_EWM_INBOUNDDLVITEM01 SQL: PINBDLVITEM01 Type: view COMPOSITE Package: WME_ODATA_API

Helper View inb Dlv Item ETAG and Ref Doc

P_EWM_InboundDlvItem01 is a Composite CDS View that provides data about "Helper View inb Dlv Item ETAG and Ref Doc" 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. Part of development package WME_ODATA_API.

Data Sources (1)

SourceAliasJoin Type
I_EWM_InbDeliveryItemBasic pdi_i from

Associations (4)

CardinalityTargetAliasCondition
[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)

NameValueLevelField
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)

KeyFieldSource TableSource FieldDescription
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]
;