P_EWM_WhseDocument
P_EWM_WhseDocument is a Composite CDS View in SAP S/4HANA. It reads from 1 data source (I_EWM_ConfirmedWarehouseTask_2) and exposes 62 fields with key fields EWMWarehouse, EWMWarehouseDocument, EWMWarehouseDocumentItem. It has 1 association to related views.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_EWM_ConfirmedWarehouseTask_2 | I_EWM_ConfirmedWarehouseTask_2 | from |
Associations (1)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..1] | I_EWM_WarehouseNumber_2 | _WarehouseNumber | $projection.EWMWarehouse = _WarehouseNumber.EWMWarehouse |
Annotations (7)
| Name | Value | Level | Field |
|---|---|---|---|
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| VDM.viewType | #COMPOSITE | view | |
| VDM.private | true | view | |
| Metadata.ignorePropagatedAnnotations | true | view | |
| ObjectModel.usageType.serviceQuality | #B | view | |
| ObjectModel.usageType.sizeCategory | #L | view | |
| ObjectModel.usageType.dataClass | #MIXED | view |
Fields (62)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | EWMWarehouse | EWMWarehouse | Warehouse No. | |
| KEY | EWMWarehouseDocument | Warehouse Task | ||
| KEY | EWMWarehouseDocumentItem | |||
| WarehouseTimeZone | _WarehouseNumber | TimeZoneID | Time Zone | |
| Product | ProductName | Description | ||
| Batch | Batch | Lot No. | ||
| EWMStockType | EWMStockType | Stock Type | ||
| StockDocumentCategory | Special Reference Stock Type | |||
| StockItemNumber | StockItemNumber | Ref. Doc. Itm | ||
| EWMStockUsage | EWMStockUsage | Usage | ||
| EWMStockOwner | Character Field with Length 10 | |||
| EntitledToDisposeParty | EntitledToDisposeParty | Disposal Party | ||
| ShelfLifeExpirationDate | ShelfLifeExpirationDate | SLED/BBD | ||
| CountryOfOrigin | CountryOfOrigin | Country/Region of Origin | ||
| WhseTaskCapacityConsumption | WhseTaskCapacityConsumption | Capacity Usage | ||
| WhseTaskCrtnWhseTmznDateTime | ||||
| WhseTaskCrtnUTCDateTime | ||||
| CreatedByUser | CreatedByUser | User Name | ||
| WhseTaskConfWhseTmznDateTime | ||||
| ConfirmationUTCDateTime | Confirmation Date Time | |||
| ConfirmedByUser | ConfirmedByUser | Confirmed By | ||
| WhseTaskGoodsReceiptDateTime | WhseTaskGoodsReceiptDateTime | |||
| IsHandlingUnitWarehouseTask | IsHandlingUnitWarehouseTask | HU Whse Task | ||
| WarehouseProcessType | Whse Proc. Type | |||
| WarehouseProcessCategory | Shipment Type | |||
| EWMWarehouseDocumentItemStatus | WT Status | |||
| WarehouseMovementsReason | WarehouseMovementsReason | Sp.Tax Code Reason | ||
| WarehouseMovementsText | WarehouseMovementsText | Text | ||
| EWMGoodsMovementProcess | EWMGoodsMovementProcess | Reason | ||
| ActualQuantityInBaseUnit | Actual Quantity | |||
| BaseUnit | BaseUnit | Unit of Measure | ||
| ActualQuantityInAltvUnit | Actual Quantity | |||
| AlternativeUnit | AlternativeUnit | Base UoM | ||
| EWMValuationQuantity | Val. Quantity | |||
| EWMValuationQuantityUnit | EWMValuationQuantityUnit | Val. Quantity | ||
| EWMValuationQuantityStatus | Val. Measured | |||
| EWMDifferenceValuationQuantity | Val. Quantity | |||
| EWMDiffValuationQuantityStatus | Val. Measured | |||
| EWMAccountAssignmentCategory | Acct.Assig.Cat. | |||
| EWMAccountAssignmentSubObject | AASubobj. | |||
| WhseTaskNetWeight | NetWeight | Net weight | ||
| WhseTaskNetWeightUnitOfMeasure | WhseTaskNetWeightUnitOfMeasure | Weight Unit | ||
| WhseTaskNetVolume | WhseTaskNetVolume | Volume | ||
| WhseTaskNetVolumeUnitOfMeasure | WhseTaskNetVolumeUnitOfMeasure | Volume Unit | ||
| EWMCanceledWarehouseDocument | ||||
| ProductionOrder | ProductionOrder | Order | ||
| Kanban | Kanban | Kanban ID | ||
| EWMWarehouseTaskIsJITRelevant | EWMWarehouseTaskIsJITRelevant | JIT Relevance | ||
| MaterialDocument | MaterialDocument | Material Doc. | ||
| MaterialDocumentYear | Material Document Year | |||
| MaterialDocumentItem | Material Document Item | |||
| PostingDate | Posting Date for GR | |||
| LogicalRecordTransactionCode | LogicalRecordTransactionCode | Undefined range (can be used for patch levels) | ||
| EWMWarehouseDocumentItemUUID | GUID WT | |||
| SourceStorageType | SourceStorageType | Srce Stor. Type | ||
| SourceStorageSection | Src.stor.sectn | |||
| SourceStorageBin | SourceStorageBin | Source Stor.Bin | ||
| SourceHandlingUnit | Source SU no. | |||
| DestinationStorageType | DestStorType | |||
| DestinationStorageSection | Dest.stor.sect. | |||
| DestinationStorageBin | DestinationStorageBin | Destination Bin | ||
| DestinationHandlingUnit | Destination HU |
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_WhseDocument.
-- 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_WhseDocument AS
SELECT
EWMWarehouse,
cast( WarehouseTask as ewm_de_whsedocument preserving type ) AS EWMWarehouseDocument,
cast( WarehouseTaskItem as ewm_de_warehousedocumentitem preserving type ) AS EWMWarehouseDocumentItem,
_WarehouseNumber.TimeZoneID AS WarehouseTimeZone,
ProductName AS Product,
Batch,
EWMStockType,
cast( StockDocumentCategory as ewm_de_stockdocumentcat preserving type ) AS StockDocumentCategory,
StockItemNumber,
EWMStockUsage,
cast( EWMStockOwner as ewm_de_stockowner preserving type ) AS EWMStockOwner,
EntitledToDisposeParty,
ShelfLifeExpirationDate,
CountryOfOrigin,
WhseTaskCapacityConsumption,
cast( WhseTaskCrtnWhseTmznDateTime as ewm_de_created_dt_wh_no_conv preserving type ) AS WhseTaskCrtnWhseTmznDateTime,
cast( WhseTaskCrtnUTCDateTime as ewm_de_created_dt_wh_no_conv) AS WhseTaskCrtnUTCDateTime,
CreatedByUser,
cast( WhseTaskConfWhseTmznDateTime as ewm_de_confirmed_dt_wh_no_conv preserving type ) AS WhseTaskConfWhseTmznDateTime,
cast( ConfirmationUTCDateTime as ewm_de_confirmed_dt_wh_no_conv) AS ConfirmationUTCDateTime,
ConfirmedByUser,
WhseTaskGoodsReceiptDateTime,
IsHandlingUnitWarehouseTask,
cast(WarehouseProcessType as ewm_de_warehouseprocesstype preserving type ) AS WarehouseProcessType,
cast(WarehouseProcessCategory as ewm_de_whseprocesscategory preserving type ) AS WarehouseProcessCategory,
cast( WarehouseTaskStatus as ewm_de_whsedocitemstatus preserving type ) AS EWMWarehouseDocumentItemStatus,
WarehouseMovementsReason,
WarehouseMovementsText,
EWMGoodsMovementProcess,
cast( ActualQuantityInBaseUnit as ewm_de_actqtyinbaseuom preserving type ) AS ActualQuantityInBaseUnit,
BaseUnit,
cast( ActualQuantityInAltvUnit as ewm_de_actqtyinaltuom preserving type ) AS ActualQuantityInAltvUnit,
AlternativeUnit,
cast( EWMValuationQuantity as ewm_de_valuationquantity preserving type ) AS EWMValuationQuantity,
EWMValuationQuantityUnit,
cast( EWMValuationQuantityStatus as ewm_de_valuationquantitystatus preserving type ) AS EWMValuationQuantityStatus,
cast( EWMDifferenceValuationQuantity as ewm_de_differencevaluationqty preserving type ) AS EWMDifferenceValuationQuantity,
cast( EWMDiffValuationQuantityStatus as ewm_de_diffvaluationqtystatus preserving type ) AS EWMDiffValuationQuantityStatus,
cast( EWMAccountAssignmentCategory as ewm_de_acc_cat preserving type ) AS EWMAccountAssignmentCategory,
cast( EWMAccountAssignmentSubObject as ewm_de_accsubobject preserving type ) AS EWMAccountAssignmentSubObject,
NetWeight AS WhseTaskNetWeight,
WhseTaskNetWeightUnitOfMeasure,
WhseTaskNetVolume,
WhseTaskNetVolumeUnitOfMeasure,
cast( EWMCanceledWarehouseTask as ewm_de_canceledwhsedoc preserving type ) AS EWMCanceledWarehouseDocument,
ProductionOrder,
Kanban,
EWMWarehouseTaskIsJITRelevant,
MaterialDocument,
cast( MaterialDocumentYear as ewm_de_materialdocumentyear preserving type ) AS MaterialDocumentYear,
cast( MaterialDocumentItem as ewm_de_materialdocumentitem preserving type ) AS MaterialDocumentItem,
cast( PostingDate as ewm_de_postingdate preserving type ) AS PostingDate,
LogicalRecordTransactionCode,
cast(WarehouseTaskUUID as ewm_de_whsedocumentitemuuid preserving type ) AS EWMWarehouseDocumentItemUUID,
SourceStorageType,
cast( SourceStorageSection as ewm_de_sourcestoragesection preserving type ) AS SourceStorageSection,
SourceStorageBin,
cast( SourceHandlingUnit as ewm_de_sourcehuident preserving type ) AS SourceHandlingUnit,
cast( DestinationStorageType as ewm_de_destinationstoragetype preserving type ) AS DestinationStorageType,
cast( DestinationStorageSection as ewm_de_deststoragesection preserving type ) AS DestinationStorageSection,
DestinationStorageBin,
cast( DestinationHandlingUnit as ewm_de_destinationhuident preserving type ) AS DestinationHandlingUnit
FROM I_EWM_ConfirmedWarehouseTask_2
LEFT OUTER JOIN I_EWM_WarehouseNumber_2 AS _WarehouseNumber ON EWMWarehouse = _WarehouseNumber.EWMWarehouse -- association [0..1]
;
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