P_EWM_PInvCountItem01

DDL: P_EWM_PINVCOUNTITEM01 SQL: PEWMPICNTLIST01 Type: view CONSUMPTION

Help view of PInv Items filter

P_EWM_PInvCountItem01 is a Consumption CDS View that provides data about "Help view of PInv Items filter" in SAP S/4HANA. It reads from 1 data source (I_EWM_PhysicalInventoryDocItem) and exposes 32 fields with key fields PhysicalInventoryDocumentUUID, PhysicalInventoryItemNumber, LineIndexOfPInvItem, PhysicalInventoryChangeVersion, PInvDocumentItemType.

Data Sources (1)

SourceAliasJoin Type
I_EWM_PhysicalInventoryDocItem item from

Annotations (8)

NameValueLevelField
AbapCatalog.sqlViewName PEWMPICNTLIST01 view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #NOT_REQUIRED view
ClientHandling.type #INHERITED view
ClientHandling.algorithm #SESSION_VARIABLE view
EndUserText.label Help view of PInv Items filter view
VDM.private true view
VDM.viewType #CONSUMPTION view

Fields (32)

KeyFieldSource TableSource FieldDescription
KEY PhysicalInventoryDocumentUUID I_EWM_PhysicalInventoryDocItem PhysicalInventoryDocumentUUID GUID
KEY PhysicalInventoryItemNumber I_EWM_PhysicalInventoryDocItem PhysicalInventoryItemNumber Sort No.
KEY LineIndexOfPInvItem I_EWM_PhysicalInventoryDocItem LineIndexOfPInvItem Table Row
KEY PhysicalInventoryChangeVersion I_EWM_PhysicalInventoryDocItem PhysicalInventoryChangeVersion Version
KEY PInvDocumentItemType I_EWM_PhysicalInventoryDocItem PInvDocumentItemType Type
PhysicalInventoryDocumentType I_EWM_PhysicalInventoryDocItem PhysicalInventoryDocumentType VAT Document Type
PhysicalInventoryStatusText I_EWM_PhysicalInventoryDocItem PhysicalInventoryStatusText VL Doc Status
WhseTaskGoodsReceiptDateTime I_EWM_PhysicalInventoryDocItem WhseTaskGoodsReceiptDateTime Reqstd date
ShelfLifeExpirationDate I_EWM_PhysicalInventoryDocItem ShelfLifeExpirationDate SLED/BBD
CountryOfOrigin I_EWM_PhysicalInventoryDocItem CountryOfOrigin Country/Region of Origin
PInvItemParentUUID I_EWM_PhysicalInventoryDocItem PInvItemParentUUID Parent
PInvItemParentType I_EWM_PhysicalInventoryDocItem PInvItemParentType ObjectType
PhysicalInventoryStockUUID I_EWM_PhysicalInventoryDocItem PhysicalInventoryStockUUID GUID
SequenceOfPInvDocumentItems I_EWM_PhysicalInventoryDocItem SequenceOfPInvDocumentItems Sequence
ProductUUID _KeyItem ProductUUID UUID
BatchUUID _KeyItem BatchUUID Target Grp GUID
HandlingUnitNumber _KeyItem HandlingUnitNumber
EntitledToDisposeParty _KeyItem EntitledToDisposeParty Disposal Party
StockOwner _KeyItem StockOwner Owner of stock
EWMStockOwner _KeyItem EWMStockOwner Character Field with Length 10
StockType _KeyItem StockType Stock Type
EWMStockType _KeyItem EWMStockType Stock Type
StockUsage _KeyItem StockUsage
EWMStockUsage _KeyItem EWMStockUsage Usage
StockDocumentCategory _KeyItem StockDocumentCategory Special Reference Stock Type
StockDocumentNumber _KeyItem StockDocumentNumber
StockItemNumber _KeyItem StockItemNumber
ProducedMaterial _KeyItem ProducedMaterial
Warehouse _KeyItem Warehouse Warehouse No.
EWMWarehouse _KeyItem EWMWarehouse Warehouse No.
ParentStorageBin _ParentItem StorageBin Storage Bin
ParentHandlingUnitNumber _ParentItem HandlingUnitNumber

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_PInvCountItem01.
-- 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: PEWMPICNTLIST01

CREATE VIEW P_EWM_PInvCountItem01 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,
  _KeyItem.ProductUUID AS ProductUUID,
  _KeyItem.BatchUUID AS BatchUUID,
  _KeyItem.HandlingUnitNumber AS HandlingUnitNumber,
  _KeyItem.EntitledToDisposeParty AS EntitledToDisposeParty,
  _KeyItem.StockOwner AS StockOwner,
  _KeyItem.EWMStockOwner AS EWMStockOwner,
  _KeyItem.StockType AS StockType,
  _KeyItem.EWMStockType AS EWMStockType,
  _KeyItem.StockUsage AS StockUsage,
  _KeyItem.EWMStockUsage AS EWMStockUsage,
  _KeyItem.StockDocumentCategory AS StockDocumentCategory,
  _KeyItem.StockDocumentNumber AS StockDocumentNumber,
  _KeyItem.StockItemNumber AS StockItemNumber,
  _KeyItem.ProducedMaterial AS ProducedMaterial,
  _KeyItem.Warehouse AS Warehouse,
  _KeyItem.EWMWarehouse AS EWMWarehouse,
  _ParentItem.StorageBin AS ParentStorageBin,
  _ParentItem.HandlingUnitNumber AS ParentHandlingUnitNumber
FROM I_EWM_PhysicalInventoryDocItem AS item
;