P_EWM_WarehouseOrder_2

DDL: P_EWM_WAREHOUSEORDER_2 Type: view_entity COMPOSITE

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

Data Sources (1)

SourceAliasJoin Type
I_EWM_WarehouseOrder_2 I_EWM_WarehouseOrder_2 from

Annotations (3)

NameValueLevelField
AccessControl.authorizationCheck #NOT_REQUIRED view
VDM.private true view
VDM.viewType #COMPOSITE view

Fields (41)

KeyFieldSource TableSource FieldDescription
KEY EWMWarehouse EWMWarehouse 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
EWMStorageType EWMStorageType Storage Type
EWMStorageBin EWMStorageBin Storage Bin
WrhsOrdCrtnUTCDateTime WrhsOrdCrtnUTCDateTime
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
WhseOrderLastChgUTCDateTime WhseOrderLastChgUTCDateTime
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_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_WarehouseOrder_2 AS
SELECT
  EWMWarehouse,
  WarehouseOrder,
  WarehouseOrderCreationRule,
  WhseOrderCreationRuleCategory,
  WhseProcessTypeDocumentHdr,
  Wave,
  WarehouseOrderStatus,
  ActivityArea,
  EWMStorageType,
  EWMStorageBin,
  WrhsOrdCrtnUTCDateTime,
  CreatedByUser,
  Queue,
  WarehouseOrderStartDateTime,
  WarehouseOrderStartTimeIsFixed,
  WhseOrderConfirmedDateTime,
  WarehouseOrderConfirmedBy,
  Processor,
  ExecutingResource,
  ProcessorIsManualAssigned,
  WarehouseOrderHasPhysInvtryDoc,
  WhseOrderForSplitWhseOrder,
  WarehouseOrderIsSplit,
  ResourceStartBin,
  WhseOrderLatestStartDateTime,
  WarehouseOrderPlannedDuration,
  WhseOrderPlanDurationTimeUnit,
  WhseOrderLastChgUTCDateTime,
  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_2
;