P_EWM_PINVCOUNTITEM04
P_EWM_PINVCOUNTITEM04 is a Consumption CDS View in SAP S/4HANA. It reads from 2 data sources (P_EWM_PINVCOUNTITEM03, P_EWM_PINVCOUNTITEM02) and exposes 36 fields with key fields PhysicalInventoryDocumentUUID, PhysicalInventoryItemNumber, LineIndexOfPInvItem, PhysicalInventoryChangeVersion, PInvDocumentItemType.
Data Sources (2)
| Source | Alias | Join Type |
|---|---|---|
| P_EWM_PINVCOUNTITEM03 | higherParent | left_outer |
| P_EWM_PINVCOUNTITEM02 | item | from |
Annotations (7)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | PEWMPICNTLIST04 | 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 | #CONSUMPTION | view |
Fields (36)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | PhysicalInventoryDocumentUUID | P_EWM_PINVCOUNTITEM02 | PhysicalInventoryDocumentUUID | |
| KEY | PhysicalInventoryItemNumber | P_EWM_PINVCOUNTITEM02 | PhysicalInventoryItemNumber | |
| KEY | LineIndexOfPInvItem | P_EWM_PINVCOUNTITEM02 | LineIndexOfPInvItem | |
| KEY | PhysicalInventoryChangeVersion | P_EWM_PINVCOUNTITEM02 | PhysicalInventoryChangeVersion | |
| KEY | PInvDocumentItemType | P_EWM_PINVCOUNTITEM02 | PInvDocumentItemType | |
| PhysicalInventoryDocumentType | P_EWM_PINVCOUNTITEM02 | PhysicalInventoryDocumentType | ||
| PhysicalInventoryStatusText | P_EWM_PINVCOUNTITEM02 | PhysicalInventoryStatusText | ||
| WhseTaskGoodsReceiptDateTime | P_EWM_PINVCOUNTITEM02 | WhseTaskGoodsReceiptDateTime | ||
| ShelfLifeExpirationDate | P_EWM_PINVCOUNTITEM02 | ShelfLifeExpirationDate | SLED/BBD | |
| CountryOfOrigin | P_EWM_PINVCOUNTITEM02 | CountryOfOrigin | Country/Region of Origin | |
| PInvItemParentUUID | P_EWM_PINVCOUNTITEM02 | PInvItemParentUUID | ||
| PInvItemParentType | P_EWM_PINVCOUNTITEM02 | PInvItemParentType | ||
| PhysicalInventoryStockUUID | P_EWM_PINVCOUNTITEM02 | PhysicalInventoryStockUUID | ||
| SequenceOfPInvDocumentItems | P_EWM_PINVCOUNTITEM02 | SequenceOfPInvDocumentItems | ||
| ProductUUID | P_EWM_PINVCOUNTITEM02 | ProductUUID | UUID | |
| BatchUUID | P_EWM_PINVCOUNTITEM02 | BatchUUID | Target Grp GUID | |
| HandlingUnitNumber | P_EWM_PINVCOUNTITEM02 | HandlingUnitNumber | ||
| EntitledToDisposeParty | P_EWM_PINVCOUNTITEM02 | EntitledToDisposeParty | Disposal Party | |
| StockOwner | P_EWM_PINVCOUNTITEM02 | StockOwner | Owner of stock | |
| EWMStockOwner | P_EWM_PINVCOUNTITEM02 | EWMStockOwner | Character Field with Length 10 | |
| StockType | P_EWM_PINVCOUNTITEM02 | StockType | Stock Type | |
| EWMStockType | P_EWM_PINVCOUNTITEM02 | EWMStockType | Stock Type | |
| StockUsage | P_EWM_PINVCOUNTITEM02 | StockUsage | ||
| EWMStockUsage | P_EWM_PINVCOUNTITEM02 | EWMStockUsage | Usage | |
| StockDocumentCategory | P_EWM_PINVCOUNTITEM02 | StockDocumentCategory | Special Reference Stock Type | |
| StockDocumentNumber | P_EWM_PINVCOUNTITEM02 | StockDocumentNumber | ||
| StockItemNumber | P_EWM_PINVCOUNTITEM02 | StockItemNumber | ||
| ProducedMaterial | P_EWM_PINVCOUNTITEM02 | ProducedMaterial | ||
| Warehouse | P_EWM_PINVCOUNTITEM02 | Warehouse | Warehouse No. | |
| EWMWarehouse | P_EWM_PINVCOUNTITEM02 | EWMWarehouse | Warehouse No. | |
| ParentStorageBin | P_EWM_PINVCOUNTITEM02 | ParentStorageBin | ||
| ParentHandlingUnitNumber | P_EWM_PINVCOUNTITEM02 | ParentHandlingUnitNumber | ||
| BookQtyOfPInvItemInBookQtyUoM | P_EWM_PINVCOUNTITEM02 | BookQtyOfPInvItemInBookQtyUoM | ||
| BookQuantityUnitOfMeasure | P_EWM_PINVCOUNTITEM02 | BookQuantityUnitOfMeasure | ||
| HigherParentStorageBin | P_EWM_PINVCOUNTITEM03 | HigherParentStorageBin | ||
| HigherParentHandlingUnitNumber | P_EWM_PINVCOUNTITEM03 | HigherParentHandlingUnitNumber |
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_PINVCOUNTITEM04.
-- 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: PEWMPICNTLIST04
CREATE VIEW P_EWM_PINVCOUNTITEM04 AS
SELECT
item.PhysicalInventoryDocumentUUID AS PhysicalInventoryDocumentUUID,
item.PhysicalInventoryItemNumber AS PhysicalInventoryItemNumber,
item.LineIndexOfPInvItem AS LineIndexOfPInvItem,
item.PhysicalInventoryChangeVersion AS PhysicalInventoryChangeVersion,
item.PInvDocumentItemType AS PInvDocumentItemType,
item.PhysicalInventoryDocumentType AS PhysicalInventoryDocumentType,
item.PhysicalInventoryStatusText AS PhysicalInventoryStatusText,
item.WhseTaskGoodsReceiptDateTime AS WhseTaskGoodsReceiptDateTime,
item.ShelfLifeExpirationDate AS ShelfLifeExpirationDate,
item.CountryOfOrigin AS CountryOfOrigin,
item.PInvItemParentUUID AS PInvItemParentUUID,
item.PInvItemParentType AS PInvItemParentType,
item.PhysicalInventoryStockUUID AS PhysicalInventoryStockUUID,
item.SequenceOfPInvDocumentItems AS SequenceOfPInvDocumentItems,
item.ProductUUID AS ProductUUID,
item.BatchUUID AS BatchUUID,
item.HandlingUnitNumber AS HandlingUnitNumber,
item.EntitledToDisposeParty AS EntitledToDisposeParty,
item.StockOwner AS StockOwner,
item.EWMStockOwner AS EWMStockOwner,
item.StockType AS StockType,
item.EWMStockType AS EWMStockType,
item.StockUsage AS StockUsage,
item.EWMStockUsage AS EWMStockUsage,
item.StockDocumentCategory AS StockDocumentCategory,
item.StockDocumentNumber AS StockDocumentNumber,
item.StockItemNumber AS StockItemNumber,
item.ProducedMaterial AS ProducedMaterial,
item.Warehouse AS Warehouse,
item.EWMWarehouse AS EWMWarehouse,
item.ParentStorageBin AS ParentStorageBin,
item.ParentHandlingUnitNumber AS ParentHandlingUnitNumber,
item.BookQtyOfPInvItemInBookQtyUoM AS BookQtyOfPInvItemInBookQtyUoM,
item.BookQuantityUnitOfMeasure AS BookQuantityUnitOfMeasure,
higherParent.HigherParentStorageBin AS HigherParentStorageBin,
higherParent.HigherParentHandlingUnitNumber AS HigherParentHandlingUnitNumber
FROM P_EWM_PINVCOUNTITEM02 AS item
LEFT OUTER JOIN P_EWM_PINVCOUNTITEM03 AS higherParent ON /* join condition not captured in parsed metadata */
;
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