P_EWM_PINVCOUNTITEM04

DDL: P_EWM_PINVCOUNTITEM04 SQL: PEWMPICNTLIST04 Type: view CONSUMPTION

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)

SourceAliasJoin Type
P_EWM_PINVCOUNTITEM03 higherParent left_outer
P_EWM_PINVCOUNTITEM02 item from

Annotations (7)

NameValueLevelField
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)

KeyFieldSource TableSource FieldDescription
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 */
;