C_EWM_WhseOrderLeanQ_2
Warehouse Order Lean - Query
C_EWM_WhseOrderLeanQ_2 (Consumption)
Package: Explore, extend and adapt the SAP S/4HANA Cloud Private Edition with built-in and side-by-side extension capabilities.
Supply Chain
C_EWM_WhseOrderLeanQ_2 is a Consumption CDS View that provides data about "Warehouse Order Lean - Query" in SAP S/4HANA. It reads from 1 data source (I_EWM_WhseOrderCube_2) and exposes 36 fields with key fields EWMWarehouse, WarehouseOrder.
SAP Help Documentation
| Category | CDS Views for Cross Processes |
|---|---|
| Data Category | Query |
| Corresponding DataSource | 2CCEWMWOLQ3 |
Purpose
This CDS view provides the prerequisites for answering questions about the total number of warehouse orders in your warehouse. This CDS view provides the data to answer the following business questions: How many warehouse orders are there in your warehouse? What is the warehouse-order-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 One of the following business catalogs needs to be assigned to a user to be able to use this CDS view: SAP_SCM_BC_EWM_MON_PC : WM – Monitoring Users who want to use this CDS view must have a role that includes authorization based on at least one of the business catalogs listed above. In this role, the following restriction types must be set to read access: Warehouse Number / Warehouse Complex These restriction types are edited in the Maintain Business Roles app.
Structure
Parameters The parameters of the CDS view are as follows: P_Language (optional) used to specify the system language Fields used for filtering The main filters are as follows: Warehouse Order Creation Date and Time of Warehouse Order Confirmation Date and Time of Warehouse Order Further important fields Important fields in this view include the following: Field Name Description Measure or Attribute NumberOfWarehouseOrders Number of Warehouse Orders Measure EWMWarehouse Warehouse Attribute WarehouseOrder Warehouse Order Attribute
SAP Business Warehouse (SAP BW) Extraction
Data extraction type Full (physical deletions are possible in source tables) Corresponding DataSource (Extractor) 2CCEWMWOLQ3 Note The corresponding DataSource (Extractor) and this CDS view may have different functionalities. For details about the DataSource, see the related documentation on the SAP Help Portal at https://help.sap.com/viewer/p/BI_CONTENT_757 under Use SAP Library BI Content . For more information about data extraction, see Extracting Data Through CDS Views to SAP BW/4HANA .
This CDS view provides the prerequisites for answering questions about the total number of warehouse orders in your warehouse. This CDS view provides the data to answer the following business questions: How many warehouse orders are there in your warehouse? What is the warehouse-order-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 One of the following business catalogs needs to be assigned to a user to be able to use this CDS view: SAP_SCM_BC_EWM_MON_PC : WM – Monitoring Users who want to use this CDS view must have a role that includes authorization based on at least one of the business catalogs listed above. In this role, the following restriction types must be set to read access: Warehouse Number / Warehouse Complex These restriction types are edited in the Maintain Business Roles app.
Structure
Parameters The parameters of the CDS view are as follows: P_Language (optional) used to specify the system language Fields used for filtering The main filters are as follows: Warehouse Order Creation Date and Time of Warehouse Order Confirmation Date and Time of Warehouse Order Further important fields Important fields in this view include the following: Field Name Description Measure or Attribute NumberOfWarehouseOrders Number of Warehouse Orders Measure EWMWarehouse Warehouse Attribute WarehouseOrder Warehouse Order Attribute
SAP Business Warehouse (SAP BW) Extraction
Data extraction type Full (physical deletions are possible in source tables) Corresponding DataSource (Extractor) 2CCEWMWOLQ3 Note The corresponding DataSource (Extractor) and this CDS view may have different functionalities. For details about the DataSource, see the related documentation on the SAP Help Portal at https://help.sap.com/viewer/p/BI_CONTENT_757 under Use SAP Library BI Content . For more information about data extraction, see Extracting Data Through CDS Views to SAP BW/4HANA .
SAP API Hub
| State | C1 |
|---|---|
| Line of Business | Supply Chain |
| Application Component | SCM-EWM-WOP |
| Capabilities | Analytical Query |
| Package | Supply Chain for SAP S/4HANA Cloud Private Edition |
| Description | <p>This CDS view provides the prerequisites for answering questions about the total number of warehouse orders in your warehouse.</p> This CDS view provides the data to answer the following business questions:<ul> <li><p>How many warehouse orders are there in your warehouse?</p></li> <li><p>What is the warehouse-order-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
- Analytics with CDS Views — Build Analytics for S/4HANA Cloud Private Edition ABAP CDS views replicated to SAP Cloud Platform
- CDS Views on SAP Business Accelerator Hub — Explore SAP S/4HANA Cloud Private Edition Private Edition CDS Views on SAP Business Accelerator Hub
- Create CDS View as API — Create CDS views in SAP S/4HANA Cloud Private Edition and consume them as APIs
- Custom CDS Views — Access data using a Custom Core Data Service view (Custom CDS view)
- Key User Extensibility Tools — The Key User Extensibility Tools of S/4HANA
- SAP Extensibility Explorer for SAP S/4HANA Cloud Private Edition — Explore SAP S/4HANA Cloud Private Edition Extensibility options by leveraging the sample scenarios from SAP
- SAP S/4HANA Extensibility — SAP S/4HANA Extensibility Tutorial
- VDM View Types — The Virtual Data Model in SAP S/4HANA Cloud Private Edition
- View Browser — Search, browse and tag CDS Views
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_EWM_WhseOrderCube_2 | I_EWM_WhseOrderCube_2 | from |
Annotations (11)
| Name | Value | Level | Field |
|---|---|---|---|
| AccessControl.authorizationCheck | #PRIVILEGED_ONLY | view | |
| EndUserText.label | Warehouse Order Lean - Query | view | |
| ObjectModel.usageType.serviceQuality | #D | view | |
| ObjectModel.usageType.dataClass | #MIXED | view | |
| ObjectModel.usageType.sizeCategory | #XL | view | |
| ObjectModel.modelingPattern | #ANALYTICAL_QUERY | view | |
| Metadata.ignorePropagatedAnnotations | true | view | |
| VDM.viewType | #CONSUMPTION | view | |
| OData.publish | true | view | |
| Analytics.query | true | view | |
| Analytics.technicalName | CEWMWOLQ3 | view |
Fields (36)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | EWMWarehouse | EWMWarehouse | Warehouse Number/Warehouse Complex | |
| KEY | WarehouseOrder | WarehouseOrder | Warehouse Order Number | |
| WarehouseOrderCreationRule | WarehouseOrderCreationRule | Warehouse Order Creation Rule | ||
| WarehouseOrderStatus | WarehouseOrderStatus | Warehouse Order Status | ||
| WarehouseOrderStatusName | WarehouseOrderStatusName | Description of Warehouse Order Status | ||
| WhseOrderOverdueHours | WhseOrderOverdueHours | Overdue Time (Hour) | ||
| WhseOrderLastChgUTCDateTime | WhseOrderLastChgUTCDateTime | WO Last Changed On (UTC) | ||
| LastChangedByUser | LastChangedByUser | WO Last Changed By | ||
| WarehouseOrderHasWhseTask | WarehouseOrderHasWhseTask | Warehouse Order Contains Warehouse Task | ||
| WarehouseOrderHasPhysInvtryDoc | WarehouseOrderHasPhysInvtryDoc | WO Contains Physical Inventory Document | ||
| WhseOrderCrtnWhseTmznDateTime | WhseOrderCrtnWhseTmznDateTime | UTC Time Stamp in Short Form (YYYYMMDDhhmmss) | ||
| WhseOrderCrtnWhseTmznYear | WhseOrderCrtnWhseTmznYear | Creation Date (Year) of Warehouse Order | ||
| WhseOrderCrtnWhseTmznMonth | WhseOrderCrtnWhseTmznMonth | Creation Date (Month) of Warehouse Order | ||
| WhseOrderCrtnWhseTmznDate | WhseOrderCrtnWhseTmznDate | Creation Date of Warehouse Order | ||
| WhseOrderCrtnWhseTmznHour | WhseOrderCrtnWhseTmznHour | Creation Time (Hour) of Warehouse Order | ||
| WhseOrderCrtnWhseTmznTime | WhseOrderCrtnWhseTmznTime | Creation Time of Warehouse Order | ||
| WhseOrdLtstStrtWhseTmznDteTme | WhseOrdLtstStrtWhseTmznDteTme | UTC Time Stamp in Short Form (YYYYMMDDhhmmss) | ||
| WhseOrdLtstStrtWhseTmznYear | WhseOrdLtstStrtWhseTmznYear | Latest Start Date (Year) of Whse Order | ||
| WhseOrdLtstStrtWhseTmznMonth | WhseOrdLtstStrtWhseTmznMonth | Latest Start Date (Month) of Whse Order | ||
| WhseOrdLtstStrtWhseTmznDate | WhseOrdLtstStrtWhseTmznDate | Latest Start Date of Whse Order | ||
| WhseOrdLtstStrtWhseTmznHour | WhseOrdLtstStrtWhseTmznHour | Latest Start Time (Hour) of Whse Order | ||
| WhseOrdLtstStrtWhseTmznTime | WhseOrdLtstStrtWhseTmznTime | Latest Start Time of Warehouse Order | ||
| WhseOrderConfWhseTmznDateTime | WhseOrderConfWhseTmznDateTime | UTC Time Stamp in Short Form (YYYYMMDDhhmmss) | ||
| WhseOrderConfWhseTmznYear | WhseOrderConfWhseTmznYear | Confirmation Date (Year) of Whse Order | ||
| WhseOrderConfWhseTmznMonth | WhseOrderConfWhseTmznMonth | Confirmation Date (Month) of Whse Order | ||
| WhseOrderConfWhseTmznDate | WhseOrderConfWhseTmznDate | Confirmation Date of Warehouse Order | ||
| WhseOrderConfWhseTmznHour | WhseOrderConfWhseTmznHour | Confirmation Time (Hour) of Whse Order | ||
| WhseOrderConfWhseTmznTime | WhseOrderConfWhseTmznTime | Confirmation Time of Warehouse Order | ||
| WrhsOrdStrtUTCDateTime | WrhsOrdStrtUTCDateTime | WO Started On (UTC) | ||
| WhseOrderConfUTCDateTime | WhseOrderConfUTCDateTime | WO Confirmed On (UTC) | ||
| WarehouseOrderConfirmedBy | WarehouseOrderConfirmedBy | WO Confirmed By | ||
| ActivityArea | ActivityArea | Activity Area | ||
| ActivityAreaName | Description of Activity Area | |||
| WrhsOrdCrtnUTCDateTime | WrhsOrdCrtnUTCDateTime | WO Created On (UTC) | ||
| CreatedByUser | CreatedByUser | WO Created By | ||
| NumberOfWarehouseOrders | NumberOfWarehouseOrders | Number of Warehouse Orders |
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 C_EWM_WhseOrderLeanQ_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 C_EWM_WhseOrderLeanQ_2 AS
SELECT
EWMWarehouse,
WarehouseOrder,
WarehouseOrderCreationRule,
WarehouseOrderStatus,
WarehouseOrderStatusName,
WhseOrderOverdueHours,
WhseOrderLastChgUTCDateTime,
LastChangedByUser,
WarehouseOrderHasWhseTask,
WarehouseOrderHasPhysInvtryDoc,
WhseOrderCrtnWhseTmznDateTime,
WhseOrderCrtnWhseTmznYear,
WhseOrderCrtnWhseTmznMonth,
WhseOrderCrtnWhseTmznDate,
WhseOrderCrtnWhseTmznHour,
WhseOrderCrtnWhseTmznTime,
WhseOrdLtstStrtWhseTmznDteTme,
WhseOrdLtstStrtWhseTmznYear,
WhseOrdLtstStrtWhseTmznMonth,
WhseOrdLtstStrtWhseTmznDate,
WhseOrdLtstStrtWhseTmznHour,
WhseOrdLtstStrtWhseTmznTime,
WhseOrderConfWhseTmznDateTime,
WhseOrderConfWhseTmznYear,
WhseOrderConfWhseTmznMonth,
WhseOrderConfWhseTmznDate,
WhseOrderConfWhseTmznHour,
WhseOrderConfWhseTmznTime,
WrhsOrdStrtUTCDateTime,
WhseOrderConfUTCDateTime,
WarehouseOrderConfirmedBy,
ActivityArea,
_ActivityArea._Text[1:Language = $parameters.P_Language].ActivityAreaName AS ActivityAreaName,
WrhsOrdCrtnUTCDateTime,
CreatedByUser,
NumberOfWarehouseOrders
FROM I_EWM_WhseOrderCube_2
;
Learn More
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- CDS View Annotations — A Complete Guide
- What Is a CDS View in SAP S/4HANA?
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- CDS View Field Mapping and Associations
- Understanding the SAP S/4HANA Data Model
- CDS View Extensions and Custom Fields in SAP S/4HANA
- Released APIs and Stability Contracts in SAP S/4HANA
- BSEG to ACDOCA: The Universal Journal Migration
- Business Partner Migration: KNA1/LFA1 to BUT000
- Material Document Migration: MSEG/MKPF to MATDOC
- How to Find the Right CDS View for an SAP Table
- BW Extractor to CDS View Migration Guide
- S/4HANA CDS View Deprecation: What You Need to Know
- ABAP CDS View Tutorial — From Basics to Real-World Examples
- RAP and CDS Views — Building Transactional Apps in SAP S/4HANA
- Sales Document Status Migration: VBUP/VBUK Removal in S/4HANA
- CO Tables in S/4HANA: COEP, COBK, COSS, COSP to ACDOCA