I_EWM_WhseOrderCube_2

DDL: I_EWM_WHSEORDERCUBE_2 Type: view_entity COMPOSITE

Warehouse Order - Cube

I_EWM_WhseOrderCube_2 (Composite)

Package: Explore, extend and adapt the SAP S/4HANA Cloud Private Edition with built-in and side-by-side extension capabilities.

Supply Chain

I_EWM_WhseOrderCube_2 is a Composite CDS View (Cube) that provides data about "Warehouse Order - Cube" in SAP S/4HANA. It reads from 1 data source (P_EWM_WarehouseOrder_2) and exposes 83 fields with key fields EWMWarehouse, WarehouseOrder. It has 6 associations to related views.

SAP Help Documentation

CategoryCDS Views for Cross Processes
Data CategoryCube
Purpose
This CDS view provides information about warehouse orders in your warehouse. This CDS view provides the data to answer the following business questions: What are the existing warehouse orders with their related information in your warehouse? To help you decide which CDS view to use for your purposes, SAP has introduced the annotation ObjectModel.supportedCapabilities that indicates the most appropriate use cases for each CDS view. To find out what use cases are best supported by this CDS view, access the entry of the CDS view in the View Browser app and find the values for this annotation under the Annotation tab. For more information, see Supported Capabilities for CDS Views .

Prerequisites
Authorizations Users who want to use this CDS view must have the following authorization objects assigned: /SCWM/TOHA ( EWM Warehouse Task Processing )

Structure
Parameters The parameters of the CDS view are as follows: P_Language used to specify the system language Further important fields Important fields in this view include the following: Field Name Description EWMWarehouse Warehouse WarehouseOrder Warehouse Order

View on SAP Help Portal →

SAP API Hub

StateC1
Line of BusinessSupply Chain
Application ComponentSCM-EWM-WOP
CapabilitiesData Provider for Analytical Queries, Data Source for Defining CDS Entities, Data Source in SQL Select
PackageSupply Chain for SAP S/4HANA Cloud Private Edition
Description <p>This CDS view provides information about warehouse orders in your warehouse.</p> This CDS view provides the data to answer the following business questions:<ul> <li><p>What are the existing warehouse orders with their related information in your warehouse?</p></li> </ul> <p>To help you decide which CDS view to use for your purposes, SAP has introduced the annotation ObjectModel.supportedCapabilities that indicates the most appropriate use cases for each CDS view. To find out what use cases are best supported by this CDS view, access the entry of the CDS view in the View Browser app and find the values for this annotation under the Annotation tab. For more information, see Supported Capabilities for CDS Views.</p>

Documentation

Data Sources (1)

SourceAliasJoin Type
P_EWM_WarehouseOrder_2 P_EWM_WarehouseOrder_2 from

Associations (6)

CardinalityTargetAliasCondition
[0..1] I_EWM_WarehouseNumber_2 _Warehouse $projection.EWMWarehouse = _Warehouse.EWMWarehouse
[0..*] I_EWM_WarehouseOrderStatusText _WarehouseOrderStatusText $projection.WarehouseOrderStatus = _WarehouseOrderStatusText.WarehouseOrderStatus
[0..1] I_EWM_WhseOrderCtnRule_2 _WhseOrderCtnRule $projection.WarehouseOrderCreationRule = _WhseOrderCtnRule.WarehouseOrderCreationRule and $projection.EWMWarehouse = _WhseOrderCtnRule.EWMWarehouse
[0..1] I_EWM_ActivityArea_2 _ActivityArea $projection.ActivityArea = _ActivityArea.ActivityArea and $projection.EWMWarehouse = _ActivityArea.EWMWarehouse
[0..1] I_EWM_WaveHeader_2 _Wave $projection.Wave = _Wave.Wave and $projection.EWMWarehouse = _Wave.EWMWarehouse
[0..1] I_EWM_WarehouseOrderQueue_2 _WarehouseOrderQueue $projection.WarehouseOrderQueue = _WarehouseOrderQueue.WarehouseOrderQueue and $projection.EWMWarehouse = _WarehouseOrderQueue.EWMWarehouse

Annotations (13)

NameValueLevelField
AccessControl.authorizationCheck #CHECK view
AccessControl.personalData.blocking #REQUIRED view
EndUserText.label Warehouse Order - Cube view
ObjectModel.compositionRoot true view
ObjectModel.usageType.serviceQuality #D view
ObjectModel.usageType.dataClass #MIXED view
ObjectModel.usageType.sizeCategory #XL view
ObjectModel.modelingPattern #ANALYTICAL_CUBE view
Metadata.allowExtensions true view
VDM.viewType #COMPOSITE view
Analytics.dataCategory #CUBE view
Metadata.ignorePropagatedAnnotations true view
Analytics.internalName #LOCAL view

Fields (83)

KeyFieldSource TableSource FieldDescription
KEY EWMWarehouse EWMWarehouse Warehouse Number/Warehouse Complex
KEY WarehouseOrder WarehouseOrder Warehouse Order Number
NumberOfWarehouseOrders 1 0
WarehouseOrderCreationRule WarehouseOrderCreationRule Warehouse Order Creation Rule
WhseOrderCreationRuleCategory WhseOrderCreationRuleCategory Category of Warehouse Order Creation Rule
WhseProcessTypeDocumentHdr WhseProcessTypeDocumentHdr Document Header Warehouse Process Type
Wave Wave Warehouse Order Number
WarehouseOrderStatus WarehouseOrderStatus Warehouse Order Status
WarehouseOrderStatusName Short Text for Fixed Values
ActivityArea ActivityArea Activity Area
EWMStorageType EWMStorageType Storage Type
EWMStorageBin EWMStorageBin Storage Bin
WrhsOrdCrtnUTCDateTime WrhsOrdCrtnUTCDateTime Creation Time
CreatedByUser CreatedByUser Created By
WarehouseOrderQueue Queue Queue
WrhsOrdStrtUTCDateTime WarehouseOrderStartDateTime Start Time
WarehouseOrderStartTimeIsFixed WarehouseOrderStartTimeIsFixed Warehouse Order Start Time Fixed
WhseOrderConfUTCDateTime WhseOrderConfirmedDateTime Time of Confirmation
WarehouseOrderConfirmedBy WarehouseOrderConfirmedBy Confirmed By
Processor Processor User Name
ExecutingResource ExecutingResource Resource (Means of Transportation or User)
ProcessorIsManualAssigned ProcessorIsManualAssigned Manual Assignment of Processor
WarehouseOrderHasPhysInvtryDoc WarehouseOrderHasPhysInvtryDoc WO Contains Physical Inventory Document
WhseOrderForSplitWhseOrder WhseOrderForSplitWhseOrder Warehouse Order Number of WO That Was Split
WarehouseOrderIsSplit WarehouseOrderIsSplit Warehouse Order Was Split
ResourceStartBin ResourceStartBin Starting Point for Processing Resource
LatestStartUTCDateTime WhseOrderLatestStartDateTime Latest Starting Date (LSD)
WarehouseOrderPlannedDuration WarehouseOrderPlannedDuration Planned Execution Time of Warehouse Order
WhseOrderPlanDurationTimeUnit WhseOrderPlanDurationTimeUnit Warehouse Order: Time Unit
WhseOrderLastChgUTCDateTime WhseOrderLastChgUTCDateTime Time of Change
LastChangedByUser LastChangedByUser Changed By
WhseOrderHigherLevelWhseOrder WhseOrderHigherLevelWhseOrder Warehouse Order Number of Higher-Level Warehouse Order
WhseOrderSubsequentWhseOrder WhseOrderSubsequentWhseOrder Warehouse Order Number of Subsequent Warehouse Order
WhseOrderHasSubsqntWhseOrder WhseOrderHasSubsqntWhseOrder WO Contains Warehouse Order
WarehouseOrderHasWhseTask WarehouseOrderHasWhseTask Warehouse Order Contains Warehouse Task
HzdsSubstanceIsRlvtForStorage HzdsSubstanceIsRlvtForStorage Hazardous Substance Relevant for Storage
WhseOrderCrtnWhseTmznDateTime WhseOrderCrtnWhseTmznDateTime UTC Time Stamp in Short Form (YYYYMMDDhhmmss)
WhseOrderCrtnWhseTmznYear
WhseOrderCrtnWhseTmznMonth
WhseOrderCrtnWhseTmznDate
WhseOrderCrtnWhseTmznHour
WhseOrderCrtnWhseTmznTime
WhseOrderCrtnRnddTo10MinsTime
WhseOrdLtstStrtWhseTmznDteTme WhseOrdLtstStrtWhseTmznDteTme UTC Time Stamp in Short Form (YYYYMMDDhhmmss)
WhseOrdLtstStrtWhseTmznYear
WhseOrdLtstStrtWhseTmznMonth
WhseOrdLtstStrtWhseTmznDate
WhseOrdLtstStrtWhseTmznHour
WhseOrdLtstStrtWhseTmznTime
WhseOrdLtstStrtRnddTo10MinsTme
WhseOrderConfWhseTmznDateTime WhseOrderConfWhseTmznDateTime UTC Time Stamp in Short Form (YYYYMMDDhhmmss)
WhseOrderConfWhseTmznYear
WhseOrderConfWhseTmznMonth
WhseOrderConfWhseTmznDate
WhseOrderConfWhseTmznHour
WhseOrderConfWhseTmznTime
WhseOrderConfRnddTo10MinsTime
WaveItem
PlndLoadCompletionUTCDateTime _Wave PlndLoadCompletionUTCDateTime UTC Time Stamp in Short Form (YYYYMMDDhhmmss)
PlndPackCompletionUTCDateTime _Wave PlndPackCompletionUTCDateTime UTC Time Stamp in Short Form (YYYYMMDDhhmmss)
PlndPickCompltnUTCDateTime _Wave PlndPickCompltnUTCDateTime UTC Time Stamp in Short Form (YYYYMMDDhhmmss)
PlndStagingCompltnUTCDateTime _Wave PlndStagingCompltnUTCDateTime UTC Time Stamp in Short Form (YYYYMMDDhhmmss)
WaveActlReleasedUTCDateTime _Wave WaveActlReleasedUTCDateTime UTC Time Stamp in Short Form (YYYYMMDDhhmmss)
WaveCutoffWhseTmznDateTime _Wave WaveCutoffWhseTmznDateTime UTC Time Stamp in Short Form (YYYYMMDDhhmmss)
WavePlndRelWhseTmznDateTime _Wave WavePlndRelWhseTmznDateTime UTC Time Stamp in Short Form (YYYYMMDDhhmmss)
PlndPickCmpltWhseTmznDateTime _Wave PlndPickCmpltWhseTmznDateTime UTC Time Stamp in Short Form (YYYYMMDDhhmmss)
PlndPackCmpltWhseTmznDateTime _Wave PlndPackCmpltWhseTmznDateTime UTC Time Stamp in Short Form (YYYYMMDDhhmmss)
PlndStggCmpltWhseTmznDateTime _Wave PlndStggCmpltWhseTmznDateTime UTC Time Stamp in Short Form (YYYYMMDDhhmmss)
WaveCompletionWhseTmznDateTime _Wave WaveCompletionWhseTmznDateTime UTC Time Stamp in Short Form (YYYYMMDDhhmmss)
WaveActualReldWhseTmznDateTime _Wave WaveActualReldWhseTmznDateTime UTC Time Stamp in Short Form (YYYYMMDDhhmmss)
WaveActualReldWhseTmznYear
WaveActualReldWhseTmznMonth
WaveActualReldWhseTmznDate
WaveActualReldWhseTmznHour
WaveActualReldWhseTmznTime
WaveTemplate Numeric Character Field, Length 10
WaveTemplateName Description
_Warehouse _Warehouse
_WarehouseOrderStatusText _WarehouseOrderStatusText
_WhseOrderCtnRule _WhseOrderCtnRule
_ActivityArea _ActivityArea
_WarehouseOrderQueue _WarehouseOrderQueue
_Wave _Wave

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 I_EWM_WhseOrderCube_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 I_EWM_WhseOrderCube_2 AS
SELECT
  EWMWarehouse,
  WarehouseOrder,
  1.0 AS NumberOfWarehouseOrders,
  WarehouseOrderCreationRule,
  WhseOrderCreationRuleCategory,
  WhseProcessTypeDocumentHdr,
  Wave,
  WarehouseOrderStatus,
  _WarehouseOrderStatusText[1:Language = $parameters.P_Language].WarehouseOrderStatusName AS WarehouseOrderStatusName,
  ActivityArea,
  EWMStorageType,
  EWMStorageBin,
  WrhsOrdCrtnUTCDateTime,
  CreatedByUser,
  Queue AS WarehouseOrderQueue,
  WarehouseOrderStartDateTime AS WrhsOrdStrtUTCDateTime,
  WarehouseOrderStartTimeIsFixed,
  WhseOrderConfirmedDateTime AS WhseOrderConfUTCDateTime,
  WarehouseOrderConfirmedBy,
  Processor,
  ExecutingResource,
  ProcessorIsManualAssigned,
  WarehouseOrderHasPhysInvtryDoc,
  WhseOrderForSplitWhseOrder,
  WarehouseOrderIsSplit,
  ResourceStartBin,
  WhseOrderLatestStartDateTime AS LatestStartUTCDateTime,
  WarehouseOrderPlannedDuration,
  WhseOrderPlanDurationTimeUnit,
  WhseOrderLastChgUTCDateTime,
  LastChangedByUser,
  WhseOrderHigherLevelWhseOrder,
  WhseOrderSubsequentWhseOrder,
  WhseOrderHasSubsqntWhseOrder,
  WarehouseOrderHasWhseTask,
  HzdsSubstanceIsRlvtForStorage,
  WhseOrderCrtnWhseTmznDateTime,
  cast(substring(cast(WhseOrderCrtnWhseTmznDateTime as abap.char( 17 )), 1, 4) as abap.numc( 4 ) ) AS WhseOrderCrtnWhseTmznYear,
  cast(substring(cast(WhseOrderCrtnWhseTmznDateTime as abap.char( 17 )), 1, 6) as abap.numc( 6 ) ) AS WhseOrderCrtnWhseTmznMonth,
  cast(substring(cast(WhseOrderCrtnWhseTmznDateTime as abap.char( 17 )), 1, 8) as abap.dats) AS WhseOrderCrtnWhseTmznDate,
  cast(substring(cast(WhseOrderCrtnWhseTmznDateTime as abap.char( 17 )), 1, 10) as abap.numc( 10 ) ) AS WhseOrderCrtnWhseTmznHour,
  cast(substring(cast(WhseOrderCrtnWhseTmznDateTime as abap.char( 17 )), 9, 6) as abap.tims) AS WhseOrderCrtnWhseTmznTime,
  cast(concat(substring(cast(WhseOrderCrtnWhseTmznDateTime as abap.char( 17 )), 9, 3),'000') as abap.tims) AS WhseOrderCrtnRnddTo10MinsTime,
  WhseOrdLtstStrtWhseTmznDteTme,
  cast(substring(cast(WhseOrdLtstStrtWhseTmznDteTme as abap.char( 17 )), 1, 4) as abap.numc( 4 ) ) AS WhseOrdLtstStrtWhseTmznYear,
  cast(substring(cast(WhseOrdLtstStrtWhseTmznDteTme as abap.char( 17 )), 1, 6) as abap.numc( 6 ) ) AS WhseOrdLtstStrtWhseTmznMonth,
  cast(substring(cast(WhseOrdLtstStrtWhseTmznDteTme as abap.char( 17 )), 1, 8) as abap.dats) AS WhseOrdLtstStrtWhseTmznDate,
  cast(substring(cast(WhseOrdLtstStrtWhseTmznDteTme as abap.char( 17 )), 1, 10) as abap.numc( 10 ) ) AS WhseOrdLtstStrtWhseTmznHour,
  cast(substring(cast(WhseOrdLtstStrtWhseTmznDteTme as abap.char( 17 )), 9, 6) as abap.tims) AS WhseOrdLtstStrtWhseTmznTime,
  cast(concat( substring(cast(WhseOrdLtstStrtWhseTmznDteTme as abap.char( 17 )), 9, 3), '000') as abap.tims) AS WhseOrdLtstStrtRnddTo10MinsTme,
  WhseOrderConfWhseTmznDateTime,
  cast(substring(cast(WhseOrderConfWhseTmznDateTime as abap.char( 17 )), 1, 4) as abap.numc( 4 ) ) AS WhseOrderConfWhseTmznYear,
  cast(substring(cast(WhseOrderConfWhseTmznDateTime as abap.char( 17 )), 1, 6) as abap.numc( 6 ) ) AS WhseOrderConfWhseTmznMonth,
  cast(substring(cast(WhseOrderConfWhseTmznDateTime as abap.char( 17 )), 1, 8) as abap.dats) AS WhseOrderConfWhseTmznDate,
  cast(substring(cast(WhseOrderConfWhseTmznDateTime as abap.char( 17 )), 1, 10) as abap.numc( 10 ) ) AS WhseOrderConfWhseTmznHour,
  cast(substring(cast(WhseOrderConfWhseTmznDateTime as abap.char( 17 )), 9, 6) as abap.tims) AS WhseOrderConfWhseTmznTime,
  cast(concat(substring(cast(WhseOrderConfWhseTmznDateTime as abap.char( 17 )), 9, 3),'000') as abap.tims) AS WhseOrderConfRnddTo10MinsTime,
  '000000' AS WaveItem,
  _Wave.PlndLoadCompletionUTCDateTime AS PlndLoadCompletionUTCDateTime,
  _Wave.PlndPackCompletionUTCDateTime AS PlndPackCompletionUTCDateTime,
  _Wave.PlndPickCompltnUTCDateTime AS PlndPickCompltnUTCDateTime,
  _Wave.PlndStagingCompltnUTCDateTime AS PlndStagingCompltnUTCDateTime,
  _Wave.WaveActlReleasedUTCDateTime AS WaveActlReleasedUTCDateTime,
  _Wave.WaveCutoffWhseTmznDateTime AS WaveCutoffWhseTmznDateTime,
  _Wave.WavePlndRelWhseTmznDateTime AS WavePlndRelWhseTmznDateTime,
  _Wave.PlndPickCmpltWhseTmznDateTime AS PlndPickCmpltWhseTmznDateTime,
  _Wave.PlndPackCmpltWhseTmznDateTime AS PlndPackCmpltWhseTmznDateTime,
  _Wave.PlndStggCmpltWhseTmznDateTime AS PlndStggCmpltWhseTmznDateTime,
  _Wave.WaveCompletionWhseTmznDateTime AS WaveCompletionWhseTmznDateTime,
  _Wave.WaveActualReldWhseTmznDateTime AS WaveActualReldWhseTmznDateTime,
  cast(substring(cast(_Wave.WaveActualReldWhseTmznDateTime as abap.char( 17 )), 1, 4) as abap.numc( 4 ) ) AS WaveActualReldWhseTmznYear,
  cast(substring(cast(_Wave.WaveActualReldWhseTmznDateTime as abap.char( 17 )), 1, 6) as abap.numc( 6 ) ) AS WaveActualReldWhseTmznMonth,
  cast(substring(cast(_Wave.WaveActualReldWhseTmznDateTime as abap.char( 17 )), 1, 8) as abap.dats) AS WaveActualReldWhseTmznDate,
  cast(substring(cast(_Wave.WaveActualReldWhseTmznDateTime as abap.char( 17 )), 1, 10) as abap.numc( 10 ) ) AS WaveActualReldWhseTmznHour,
  cast(substring(cast(_Wave.WaveActualReldWhseTmznDateTime as abap.char( 17 )), 9, 6) as abap.tims) AS WaveActualReldWhseTmznTime,
  _Wave._WaveTmpl.WaveTemplate AS WaveTemplate,
  _Wave._WaveTmpl._Text[1:Language = $parameters.P_Language].WaveTemplateName AS WaveTemplateName
FROM P_EWM_WarehouseOrder_2
LEFT OUTER JOIN I_EWM_WarehouseNumber_2 AS _Warehouse ON EWMWarehouse = _Warehouse.EWMWarehouse  -- association [0..1]
LEFT OUTER JOIN I_EWM_WarehouseOrderStatusText AS _WarehouseOrderStatusText ON WarehouseOrderStatus = _WarehouseOrderStatusText.WarehouseOrderStatus  -- association [0..*]
LEFT OUTER JOIN I_EWM_WhseOrderCtnRule_2 AS _WhseOrderCtnRule ON WarehouseOrderCreationRule = _WhseOrderCtnRule.WarehouseOrderCreationRule AND EWMWarehouse = _WhseOrderCtnRule.EWMWarehouse  -- association [0..1]
LEFT OUTER JOIN I_EWM_ActivityArea_2 AS _ActivityArea ON ActivityArea = _ActivityArea.ActivityArea AND EWMWarehouse = _ActivityArea.EWMWarehouse  -- association [0..1]
LEFT OUTER JOIN I_EWM_WaveHeader_2 AS _Wave ON Wave = _Wave.Wave AND EWMWarehouse = _Wave.EWMWarehouse  -- association [0..1]
LEFT OUTER JOIN I_EWM_WarehouseOrderQueue_2 AS _WarehouseOrderQueue ON WarehouseOrderQueue = _WarehouseOrderQueue.WarehouseOrderQueue AND EWMWarehouse = _WarehouseOrderQueue.EWMWarehouse  -- association [0..1]
;