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

P_EWM_OutboundDlvOrderItem01

DDL: P_EWM_OUTBOUNDDLVORDERITEM01 SQL: POUTBDLVORDITM01 Type: view COMPOSITE

P_EWM_OutboundDlvOrderItem01 is a Composite CDS View in SAP S/4HANA. It reads from 1 data source (I_EWM_OutbDelivOrdItemBasic) and exposes 43 fields with key fields OutboundDeliveryOrder, OutboundDeliveryOrderItem. It has 5 associations to related views.

Data Sources (1)

SourceAliasJoin Type
I_EWM_OutbDelivOrdItemBasic pdo_i from

Associations (5)

CardinalityTargetAliasCondition
[1..1] I_EWM_OutbDelivOrdSts _PickingStatus $projection.OutboundDeliveryOrderUUID = _PickingStatus.OutboundDeliveryOrderUUID and $projection.OutboundDeliveryOrderItemUUID = _PickingStatus.OutboundDeliveryOrderItemUUID and _PickingStatus.DeliveryStatusType = 'DPI'
[0..1] I_EWM_DeliveryReferenceDoc _ManufacturingOrder $projection.OutboundDeliveryOrderUUID = _ManufacturingOrder.DeliveryUUID and $projection.OutboundDeliveryOrderItemUUID = _ManufacturingOrder.DeliveryItemUUID and $projection.DeliveryCategory = _ManufacturingOrder.DeliveryCategory and _ManufacturingOrder.ReferenceDocumentCategory = 'PPO'
[0..1] I_WBSElementBasicData _ProjectStock $projection.StockDocumentNumber = _ProjectStock.WBSElementInternalID and $projection.StockDocumentCategory = 'PJS'
[0..1] I_EWM_WBSElementDecentralized _ProjectStockDecentralized $projection.StockDocumentNumber = _ProjectStockDecentralized.StockDocumentNumber and $projection.StockDocumentCategory = 'PJS'
[0..1] I_EWM_WhseSystIsDecentralized _WhseSystemIsDecentralized _WhseSystemIsDecentralized.WarehouseSystemIsDecentralized = 'X'

Annotations (12)

NameValueLevelField
AbapCatalog.sqlViewName POUTBDLVORDITM01 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_OutbDlvOrderItem01_2 view
ClientHandling.algorithm #SESSION_VARIABLE view

Fields (43)

KeyFieldSource TableSource FieldDescription
KEY OutboundDeliveryOrder OutboundDeliveryOrder
KEY OutboundDeliveryOrderItem OutboundDeliveryOrderItem
Warehouse Warehouse Warehouse No.
DeliveryCategory DeliveryCategory
OutbDeliveryOrderItemCategory OutbDeliveryOrderItemCategory
OutboundDeliveryOrderItemType OutboundDeliveryOrderItemType
Product Product Sold
ProductExternalID Material
ProductBatch ProductBatch
ProductQuantity ProductQuantity Quantity
QuantityUnit Unit of measure
StagingArea StagingArea Stag. Area
StagingAreaGroup StagingAreaGroup Stg. Area Group
StagingBay StagingBay Staging Bay
GoodsIssueStatus GoodsIssueStatus Status Value
PlannedPickingStatus PlannedPickingStatus Status Value
PickingStatus _PickingStatus Status Workflow Status
CompletionStatus CompletionStatus Status Value
WarehouseProcessType WarehouseProcessType Whse Proc. Type
ShippingCondition ShippingCondition Shipping Conditions
GoodsMovementBin GoodsMovementBin Goods Mvt Bin
ProductionSupplyArea ProductionSupplyArea Supply Area
StorageType StorageType Storage Type
StorageSection StorageSection Storage Section
PlndGoodsIssueStartUTCDateTime PlndGoodsIssueStartUTCDateTime Time Stamp
ActlGoodsIssueStartUTCDateTime ActlGoodsIssueStartUTCDateTime Time Stamp
RouteSchedule RouteSchedule Route Schedule
EntitledToDisposeParty EntitledToDisposeParty Disposal Party
StockUsage StockUsage Usage
WarehouseStockCategory WarehouseStockCategory Stock Type
StockOwner Owner of stock
DeliveryItemStockTypeDetnCode DeliveryItemStockTypeDetnCode Determin. Ind.
StockDocumentCategory StockDocumentCategory Special Reference Stock Type
StockDocumentNumber StockDocumentNumber
StockItemNumber StockItemNumber
SpecialStockIdfgSalesOrder Stock Ident Header
SpecialStockIdfgSalesOrderItem
CountryOfOrigin CountryOfOrigin Country/Region of Origin
SalesOrder
SalesOrderItem
ManufacturingOrder _ManufacturingOrder ReferenceDocumentNumber
OutboundDeliveryOrderUUID I_EWM_OutbDelivOrdItemBasic OutboundDeliveryOrderUUID Document ID
OutboundDeliveryOrderItemUUID I_EWM_OutbDelivOrdItemBasic OutboundDeliveryOrderItemUUID 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_OutboundDlvOrderItem01.
-- 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: POUTBDLVORDITM01

CREATE VIEW P_EWM_OutboundDlvOrderItem01 AS
SELECT
  OutboundDeliveryOrder,
  OutboundDeliveryOrderItem,
  Warehouse,
  DeliveryCategory,
  OutbDeliveryOrderItemCategory,
  OutboundDeliveryOrderItemType,
  cast( Product as char40 preserving type ) AS Product,
  cast( ProductExternalID as char40 preserving type ) AS ProductExternalID,
  ProductBatch,
  ProductQuantity,
  cast( QuantityUnit as /scwm/de_base_uom preserving type ) AS QuantityUnit,
  StagingArea,
  StagingAreaGroup,
  StagingBay,
  GoodsIssueStatus,
  PlannedPickingStatus,
  _PickingStatus.Status AS PickingStatus,
  CompletionStatus,
  WarehouseProcessType,
  ShippingCondition,
  GoodsMovementBin,
  ProductionSupplyArea,
  StorageType,
  StorageSection,
  PlndGoodsIssueStartUTCDateTime,
  ActlGoodsIssueStartUTCDateTime,
  RouteSchedule,
  EntitledToDisposeParty,
  StockUsage,
  WarehouseStockCategory,
  cast( StockOwner as char10 preserving type ) AS StockOwner,
  DeliveryItemStockTypeDetnCode,
  StockDocumentCategory,
  StockDocumentNumber,
  StockItemNumber,
  cast( SpecialStockIdfgSalesOrder as /scdl/dl_refdocno ) AS SpecialStockIdfgSalesOrder,
  cast( ltrim( SpecialStockIdfgSalesOrderItem , '0') as abap.char( 10 ) ) AS SpecialStockIdfgSalesOrderItem,
  CountryOfOrigin,
  cast( ltrim( SalesOrder, '0' ) as /scdl/dl_refdocno ) AS SalesOrder,
  cast( ltrim( SalesOrderItem, '0') as /scdl/dl_refitemno ) AS SalesOrderItem,
  _ManufacturingOrder.ReferenceDocumentNumber AS ManufacturingOrder,
  pdo_i.OutboundDeliveryOrderUUID AS OutboundDeliveryOrderUUID,
  pdo_i.OutboundDeliveryOrderItemUUID AS OutboundDeliveryOrderItemUUID
FROM I_EWM_OutbDelivOrdItemBasic AS pdo_i
LEFT OUTER JOIN I_EWM_OutbDelivOrdSts AS _PickingStatus ON OutboundDeliveryOrderUUID = _PickingStatus.OutboundDeliveryOrderUUID AND OutboundDeliveryOrderItemUUID = _PickingStatus.OutboundDeliveryOrderItemUUID AND _PickingStatus.DeliveryStatusType = 'DPI'  -- association [1..1]
LEFT OUTER JOIN I_EWM_DeliveryReferenceDoc AS _ManufacturingOrder ON OutboundDeliveryOrderUUID = _ManufacturingOrder.DeliveryUUID AND OutboundDeliveryOrderItemUUID = _ManufacturingOrder.DeliveryItemUUID AND DeliveryCategory = _ManufacturingOrder.DeliveryCategory AND _ManufacturingOrder.ReferenceDocumentCategory = 'PPO'  -- association [0..1]
LEFT OUTER JOIN I_WBSElementBasicData AS _ProjectStock ON StockDocumentNumber = _ProjectStock.WBSElementInternalID AND StockDocumentCategory = 'PJS'  -- association [0..1]
LEFT OUTER JOIN I_EWM_WBSElementDecentralized AS _ProjectStockDecentralized ON StockDocumentNumber = _ProjectStockDecentralized.StockDocumentNumber AND StockDocumentCategory = 'PJS'  -- association [0..1]
LEFT OUTER JOIN I_EWM_WhseSystIsDecentralized AS _WhseSystemIsDecentralized ON _WhseSystemIsDecentralized.WarehouseSystemIsDecentralized = 'X'  -- association [0..1]
;