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

P_EWM_WarehouseOrder

DDL: P_EWM_WAREHOUSEORDER SQL: PEWMWO Type: view COMPOSITE

P_EWM_WarehouseOrder is a Composite CDS View in SAP S/4HANA. It reads from 1 data source (I_EWM_WarehouseOrder) and exposes 41 fields with key fields Warehouse, WarehouseOrder.

Data Sources (1)

SourceAliasJoin Type
I_EWM_WarehouseOrder I_EWM_WarehouseOrder from

Annotations (9)

NameValueLevelField
AbapCatalog.sqlViewName PEWMWO view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #NOT_REQUIRED view
ClientHandling.type #INHERITED view
ClientHandling.algorithm #SESSION_VARIABLE view
VDM.private true view
VDM.viewType #COMPOSITE view
VDM.lifecycle.status #DEPRECATED view
VDM.lifecycle.successor P_EWM_WarehouseOrder_2 view

Fields (41)

KeyFieldSource TableSource FieldDescription
KEY Warehouse Warehouse Warehouse No.
KEY WarehouseOrder WarehouseOrder
WarehouseOrderCreationRule WarehouseOrderCreationRule WO Creatn Rule
WhseOrderCreationRuleCategory WhseOrderCreationRuleCategory Worklist Type
WhseProcessTypeDocumentHdr WhseProcessTypeDocumentHdr Hdr WhsePT
Wave Wave Wave
WarehouseOrderStatus WarehouseOrderStatus Workflow Status
ActivityArea ActivityArea WO Activty Area
StorageType StorageType Storage Type
StorageBin StorageBin Storage Bin
CreationDateTime CreationDateTime Timestamp
CreatedByUser CreatedByUser User Name
Queue Queue Queue
WarehouseOrderStartDateTime WarehouseOrderStartDateTime
WarehouseOrderStartTimeIsFixed WarehouseOrderStartTimeIsFixed Start Time Fix.
WhseOrderConfirmedDateTime WhseOrderConfirmedDateTime
WarehouseOrderConfirmedBy WarehouseOrderConfirmedBy Confirmed By
Processor Processor User Name
ExecutingResource ExecutingResource Resource
ProcessorIsManualAssigned ProcessorIsManualAssigned Manually
WarehouseOrderHasPhysInvtryDoc WarehouseOrderHasPhysInvtryDoc Phys. Inv. Doc.
WhseOrderForSplitWhseOrder WhseOrderForSplitWhseOrder
WarehouseOrderIsSplit WarehouseOrderIsSplit Split
ResourceStartBin ResourceStartBin Starting Point
WhseOrderLatestStartDateTime WhseOrderLatestStartDateTime
WarehouseOrderPlannedDuration WarehouseOrderPlannedDuration Plnd Exec. Time
WhseOrderPlanDurationTimeUnit WhseOrderPlanDurationTimeUnit Time Unit
LastChangeDateTime LastChangeDateTime Timestamp
LastChangedByUser LastChangedByUser User Name
WhseOrderHigherLevelWhseOrder WhseOrderHigherLevelWhseOrder
WhseOrderSubsequentWhseOrder WhseOrderSubsequentWhseOrder
WhseOrderHasSubsqntWhseOrder WhseOrderHasSubsqntWhseOrder Warehouse Order
WarehouseOrderHasWhseTask WarehouseOrderHasWhseTask Contains WT
HzdsSubstanceIsRlvtForStorage HzdsSubstanceIsRlvtForStorage Hazardous Subs.
WhseOrderCrtnWhseTmznDateTime WhseOrderCrtnWhseTmznDateTime
WhseOrderStrtWhseTmznDateTime WhseOrderStrtWhseTmznDateTime
WhseOrdLtstStrtWhseTmznDteTme WhseOrdLtstStrtWhseTmznDteTme
WhseOrderConfWhseTmznDateTime WhseOrderConfWhseTmznDateTime
WhseOrderChgdWhseTmznDateTime WhseOrderChgdWhseTmznDateTime
OpenMod
ConfirmedMod

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_WarehouseOrder.
-- 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: PEWMWO

CREATE VIEW P_EWM_WarehouseOrder AS
SELECT
  Warehouse,
  WarehouseOrder,
  WarehouseOrderCreationRule,
  WhseOrderCreationRuleCategory,
  WhseProcessTypeDocumentHdr,
  Wave,
  WarehouseOrderStatus,
  ActivityArea,
  StorageType,
  StorageBin,
  CreationDateTime,
  CreatedByUser,
  Queue,
  WarehouseOrderStartDateTime,
  WarehouseOrderStartTimeIsFixed,
  WhseOrderConfirmedDateTime,
  WarehouseOrderConfirmedBy,
  Processor,
  ExecutingResource,
  ProcessorIsManualAssigned,
  WarehouseOrderHasPhysInvtryDoc,
  WhseOrderForSplitWhseOrder,
  WarehouseOrderIsSplit,
  ResourceStartBin,
  WhseOrderLatestStartDateTime,
  WarehouseOrderPlannedDuration,
  WhseOrderPlanDurationTimeUnit,
  LastChangeDateTime,
  LastChangedByUser,
  WhseOrderHigherLevelWhseOrder,
  WhseOrderSubsequentWhseOrder,
  WhseOrderHasSubsqntWhseOrder,
  WarehouseOrderHasWhseTask,
  HzdsSubstanceIsRlvtForStorage,
  WhseOrderCrtnWhseTmznDateTime,
  WhseOrderStrtWhseTmznDateTime,
  WhseOrdLtstStrtWhseTmznDteTme,
  WhseOrderConfWhseTmznDateTime,
  WhseOrderChgdWhseTmznDateTime,
  ABS(tstmp_seconds_between (WhseOrderLatestStartDateTime, tstmp_current_utctimestamp(), 'NULL'))-ABS(DIV(tstmp_seconds_between (WhseOrderLatestStartDateTime, tstmp_current_utctimestamp(), 'NULL'), 3600)*3600) AS OpenMod,
  ABS(tstmp_seconds_between (WhseOrderLatestStartDateTime, WhseOrderConfirmedDateTime, 'NULL'))-ABS(DIV(tstmp_seconds_between (WhseOrderLatestStartDateTime, WhseOrderConfirmedDateTime, 'NULL'), 3600)*3600) AS ConfirmedMod
FROM I_EWM_WarehouseOrder
;