P_EWM_InboundDlvItem01_2

DDL: P_EWM_INBOUNDDLVITEM01_2 Type: view_entity COMPOSITE Package: VDM_EWM_DLV_RAP

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)

SourceAliasJoin Type
I_EWM_InbDeliveryItemBasic pdi_i from

Associations (5)

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

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

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