I_EWM_PhysInvtryItemC

DDL: I_EWM_PHYSINVTRYITEMC Type: view_entity COMPOSITE Package: VDM_EWM_CORE

Warehouse Physical Inventory Item - Cube

I_EWM_PhysInvtryItemC (Composite)

Package: Explore, extend and adapt the SAP S/4HANA Cloud Public Edition with built-in and side-by-side extension capabilities.

Supply Chain

I_EWM_PhysInvtryItemC is a Composite CDS View (Cube) that provides data about "Warehouse Physical Inventory Item - Cube" in SAP S/4HANA. It reads from 1 data source (I_EWM_PhysicalInventoryItem) and exposes 73 fields with key fields PhysicalInventoryDocNumber, PhysicalInventoryDocYear, EWMWarehouse, PhysicalInventoryItemNumber. It has 13 associations to related views. Part of development package VDM_EWM_CORE.

SAP Help Documentation

CategoryCDS Views for Physical Inventory
Data CategoryCube
StatusDescription of Physical Inventory Status
Purpose
This CDS view provides information about physical inventory items 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 Users who want to use this CDS view must have a role with the following restriction types set to read access: SCWM_LGNU (Warehouse Number/Warehouse Complex) You can use the Display Restriction Types app to find out in which business catalogs these restriction types are included.

Structure
Important Fields Important fields in this view include the following: Field Name Description Measure or Attribute EWMWarehouse Warehouse Attribute PhysicalInventoryDocNumber Physical Inventory Document Number Attribute PhysicalInventoryItemNumber Physical Inventory Item Number Attribute PhysicalInventoryDocYear Document Year of Physical Inventory Document Attribute EWMNrOfPhysicalInventoryDocs Number of Physical Inventory Documents Measure EWMNrOfPhysicalInventoryItems Number of Physical Inventory Document Items Measure EWMPhysicalInventoryStatus Physical Inventory Status Attribute EWMPhysicalInventoryStatusText Description of Physical Inventory Status Attribute PhysicalInventoryDocumentType Document Type of Physical Inventory Attribute PInvCountedUTCDateTime Physical Inventory Count Date Time and Time in UTC Attribute EWMPhysInvtryCountedDate Physical Inventory Count Date in UTC Attribute PhysicalInventoryCountUserName Physical Inventory Count User Name Attribute PhysInventoryCrtnUTCDateTime Physical Inventory Creation Date and Time in UTC Attribute EWMPhysInvtryCreationDate Physical Inventory Creation Date in UTC Attribute EWMPhysInvtryPostingDateTime Physical Inventory Posting Date and Time in UTC Attribute EWMPhysInvtryPostingDate Physical Inventory Posting Date in UTC Attribute EWMPhysicalInventoryPriority Priority of Physical Inventory Attribute EWMPhysInvtryReason Reason for Physical Inventory Attribute PInvDocumentItemIsPrinted Physical Inventory Doc Item Is Printed Attribute ActivityArea Activity area Attribute EWMStorageType Storage Type Attribute EWMStorageSection Storage Section Attribute EWMStorageBin Storage Bin Attribute EWMNumberOfStorageBins Number of Storage Bins Measure EWMStorageBinType Storage Bin Type Attribute EWMStorageBinAccessType Source Storage Bin Access Type Attribute EWMStorageBinSubdivision Storage Bin Is Subdivided Attribute Product Product Attribute Batch Batch Attribute EWMStockType Stock Type Attribute EWMStockUsage Stock Usage Attribute EWMStockOwner Stock Owner Attribute StockOwnerName Stock Owner Name Attribute EntitledToDisposeParty Party Entitled to Dispose Attribute EWMPhysInventoryCountingCycle Physical Inventory Cycle Counting Attribute EWMPInvCycCountingIntvlValue Cycle Counting Interval in Working Days Attribute EWMPInvCycCountingBufferValue Cycle Counting Buffer in Working Days Attribute NameOfEntitledToDisposeParty Name of Party Entitled to Dispose Attribute StockDocumentCategory Stock Document Category Attribute WBSElementInternalID Internal ID of WBS Element Attribute WBSElementExternalID External ID of WBS Element Attribute SpecialStockIdfgSalesOrder Special Stock Identifying Sales Order Attribute SpecialStockIdfgSalesOrderItem Special Stock Identifying Sales Order Item Attribute WhseQualityInspectionType Type of Warehouse Quality Inspection Attribute QualityInspectionDocument Document Number of Quality Inspection Attribute EWMStockReferenceDocCategory Category of Stock Reference Document Attribute EWMStockReferenceDocument Stock Reference Document Attribute EWMStockReferenceDocumentItem Stock Reference Document Item Attribute StockIde

View on SAP Help Portal →

SAP API Hub

CategoryComposite
StateC1
Line of BusinessSupply Chain
Application ComponentSCM-EWM-WOP-2CL
CapabilitiesData Provider for Analytical Queries,Association Target for Defining CDS Entities,Data Source for Defining CDS Entities,Data Source in SQL Select
Extensible (Key User)No
Extensible (Developer)No
Release State (Key User)Released
Release State (Developer)Not Released
PackageSupply Chain for SAP S/4HANA Cloud Public Edition
Description <p>This CDS view provides information about physical inventory items in your warehouse.</p> <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

Data Sources (1)

SourceAliasJoin Type
I_EWM_PhysicalInventoryItem _PIItem from

Associations (13)

CardinalityTargetAliasCondition
[1..1] I_EWM_WarehouseNumber_2 _Warehouse $projection.EWMWarehouse = _Warehouse.EWMWarehouse
[0..1] I_EWM_StorageType_2 _StorageType $projection.EWMStorageType = _StorageType.EWMStorageType and $projection.EWMWarehouse = _StorageType.EWMWarehouse
[0..1] I_EWM_StorageSection_2 _StorageSection $projection.EWMStorageSection = _StorageSection.EWMStorageSection and $projection.EWMStorageType = _StorageSection.EWMStorageType and $projection.EWMWarehouse = _StorageSection.EWMWarehouse
[0..1] I_EWM_StorageBin_2 _StorageBin $projection.EWMStorageBin = _StorageBin.EWMStorageBin and $projection.EWMWarehouse = _StorageBin.EWMWarehouse
[0..1] I_EWM_StorageBinType_2 _StorageBinType $projection.EWMWarehouse = _StorageBinType.EWMWarehouse and $projection.EWMStorageBinType = _StorageBinType.EWMStorageBinType
[0..1] I_EWM_StorageBinAccessType _StorageBinAccessType $projection.EWMWarehouse = _StorageBinAccessType.EWMWarehouse and $projection.EWMStorageBinAccessType = _StorageBinAccessType.EWMStorageBinAccessType
[0..1] I_EWM_StockType_2 _StockType $projection.EWMStockType = _StockType.EWMStockType and $projection.EWMWarehouse = _StockType.EWMWarehouse
[0..1] I_EWM_StockUsage _StockUsage $projection.EWMStockUsage = _StockUsage.EWMStockUsage
[0..1] I_BusinessPartner _Owner $projection.EWMStockOwner = _Owner.BusinessPartner
[0..1] I_BusinessPartner _Entitled $projection.EntitledToDisposeParty = _Entitled.BusinessPartner
[0..1] P_EWM_PhysInvtryItemIndicator _PhysicalInventoryItemInd $projection.PhysicalInventoryDocNumber = _PhysicalInventoryItemInd.PhysicalInventoryDocNumber and $projection.PhysicalInventoryDocYear = _PhysicalInventoryItemInd.PhysicalInventoryDocYear and $projection.PhysicalInventoryItemNumber = _PhysicalInventoryItemInd.PhysicalInventoryItemNumber
[0..1] I_EWM_ActivityArea_2 _ActivityArea $projection.ActivityArea = _ActivityArea.ActivityArea and $projection.EWMWarehouse = _ActivityArea.EWMWarehouse
[0..1] I_EWM_PhysInvtryCycleCounting _PhysInvtryCycleCounting $projection.EWMPhysInventoryCountingCycle = _PhysInvtryCycleCounting.EWMPhysInventoryCountingCycle and $projection.EWMWarehouse = _PhysInvtryCycleCounting.EWMWarehouse

Annotations (12)

NameValueLevelField
AccessControl.authorizationCheck #MANDATORY view
AccessControl.personalData.blocking #NOT_REQUIRED view
Analytics.dataCategory #CUBE view
Analytics.internalName #LOCAL view
Metadata.allowExtensions true view
Metadata.ignorePropagatedAnnotations true view
ObjectModel.usageType.sizeCategory #XL view
ObjectModel.usageType.dataClass #MIXED view
ObjectModel.usageType.serviceQuality #D view
ObjectModel.modelingPattern #ANALYTICAL_CUBE view
VDM.viewType #COMPOSITE view
EndUserText.label Warehouse Physical Inventory Item - Cube view

Fields (73)

KeyFieldSource TableSource FieldDescription
KEY PhysicalInventoryDocNumber PhysicalInventoryDocNumber Physical Inventory Document Number
KEY PhysicalInventoryDocYear PhysicalInventoryDocYear Document Year of Physical Inventory Document
KEY EWMWarehouse EWMWarehouse Warehouse Number/Warehouse Complex
KEY PhysicalInventoryItemNumber PhysicalInventoryItemNumber Item
EWMNrOfPhysicalInventoryDocs Number of Physical Inventory Documents
EWMNrOfPhysicalInventoryItems Number of Physical Inventory Document Items
EWMPhysicalInventoryStatus EWMPhysicalInventoryStatus Physical Inventory Status
EWMPhysicalInventoryStatusText EWMPhysicalInventoryStatusText Status of Physical Inventory Item
PhysicalInventoryDocumentType PhysicalInventoryDocumentType Physical Inventory Procedure (Document Type of Phys. Inv.)
PInvCountedUTCDateTime UTC Time Stamp in Short Form (YYYYMMDDhhmmss)
clientNULLasEWMPhysInvtryCountedDate Physical Inventory Count Date in UTC
PhysicalInventoryCountUserName PhysicalInventoryCountUserName User Name
PhysInventoryCrtnUTCDateTime UTC Time Stamp in Short Form (YYYYMMDDhhmmss)
clientNULLasEWMPhysInvtryCreationDate Physical Inventory Creation Date in UTC
EWMPhysInvtryPostingDateTime UTC Time Stamp in Short Form (YYYYMMDDhhmmss)
clientNULLasEWMPhysInvtryPostingDate Physical Inventory Posting Date in UTC
ActivityArea ActivityArea Activity Area
EWMPhysicalInventoryPriority EWMPhysicalInventoryPriority Priority of Physical Inventory
EWMPhysInvtryReason EWMPhysInvtryReason Reason for Physical Inventory/Inventory Difference
PInvDocumentItemIsPrinted PInvDocumentItemIsPrinted Status: Physical Inventory Document Item Already Printed Out
EWMStorageType EWMStorageType Storage Type
EWMStorageBin EWMStorageBin Storage Bin
EWMNumberOfStorageBins 1 Number of Storage Bins
EWMStorageSection _StorageBin EWMStorageSection Storage Section
EWMStorageBinType _StorageBin EWMStorageBinType Storage Bin Type
EWMStorageBinAccessType _StorageBin EWMStorageBinAccessType Bin Access Type
EWMStorageBinSubdivision _StorageBin EWMStorageBinSubdivision Storage Bin is Subdivided
Product Product Product Sold
Batch Batch Batch Number
EWMStockType EWMStockType Stock Type
EWMStockUsage EWMStockUsage Stock Usage
EWMStockOwner EWMStockOwner Character Field with Length 10
StockOwnerName _Owner BusinessPartnerName Stock Owner Name
EntitledToDisposeParty EntitledToDisposeParty Party Entitled to Dispose
NameOfEntitledToDisposeParty _Entitled BusinessPartnerName Name of Party Entitled to Dispose
StockDocumentCategory StockDocumentCategory Special Reference Stock Type
WBSElementInternalID WBSElementInternalID WBS Internal ID
WBSElementExternalID WBSElementExternalID Work Breakdown Structure Element (WBS Element) Edited
SpecialStockIdfgSalesOrder SpecialStockIdfgSalesOrder Special Stock Identification Header
SpecialStockIdfgSalesOrderItem SpecialStockIdfgSalesOrderItem Sales Order Item of Valuated Sales Order Stock
WhseQualityInspectionType WhseQualityInspectionType Inspection ID Type
EWMStockReferenceDocCategory EWMStockReferenceDocCategory Doc. Category for Doc. Reference and Doc.-Related Stock
EWMStockReferenceDocument EWMStockReferenceDocument Reference Document
EWMStockReferenceDocumentItem EWMStockReferenceDocumentItem Reference Document Item
StockIdentificationNumber StockIdentificationNumber Identification Number of Stock
EWMGoodsReceiptDateTime EWMGoodsReceiptDateTime Goods Receipt Date
EWMGoodsReceiptDate Goods Receipt Date in UTC
ShelfLifeExpirationDate ShelfLifeExpirationDate Shelf Life Expiration Date
CountryOfOrigin CountryOfOrigin Country/Region of Origin
MatlBatchIsInRstrcdUseStock MatlBatchIsInRstrcdUseStock Batch in Restricted-Use Stock
EWMPhysInventoryCountingCycle EWMPhysInventoryCountingCycle Cycle Counting Indicator
EWMPInvCycCountingIntvlValue EWMPInvCycCountingIntvlValue Cycle Counting Interval in Working Days
EWMPInvCycCountingBufferValue EWMPInvCycCountingBufferValue Cycle Counting Buffer in Working Days
WarehouseOrder WarehouseOrder Warehouse Order Number
PhysicalInventoryRefDocYear PhysicalInventoryRefDocYear Document Year of Physical Inventory Document
EWMRefPhysicalInventoryDoc EWMRefPhysicalInventoryDoc Physical Inventory Document Number
PhysicalInventoryRefDocItem PhysicalInventoryRefDocItem Item
PInvFreeDefinedRefText PInvFreeDefinedRefText Document ID of Reference Document
_DocType _DocType
_Priority _Priority
_Reason _Reason
_Warehouse _Warehouse
_ActivityArea _ActivityArea
_StorageBin _StorageBin
_StorageBinType _StorageBinType
_StorageBinAccessType _StorageBinAccessType
_StorageSection _StorageSection
_StorageType _StorageType
_StockType _StockType
_StockUsage _StockUsage
_Owner _Owner
_Entitled _Entitled
_PhysInvtryCycleCounting _PhysInvtryCycleCounting

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 I_EWM_PhysInvtryItemC.
-- 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 I_EWM_PhysInvtryItemC AS
SELECT
  PhysicalInventoryDocNumber,
  PhysicalInventoryDocYear,
  EWMWarehouse,
  PhysicalInventoryItemNumber,
  cast( case when PhysicalInventoryItemNumber = '000001' then 1 else 0 end as ewm_de_pi_numberofpinvdocs ) AS EWMNrOfPhysicalInventoryDocs,
  cast( 1 as ewm_de_pi_numberofpinvitems ) AS EWMNrOfPhysicalInventoryItems,
  EWMPhysicalInventoryStatus,
  EWMPhysicalInventoryStatusText,
  PhysicalInventoryDocumentType,
  cast(PInvCountedUTCDateTime as timestamp) AS PInvCountedUTCDateTime,
  tstmp_to_dats( cast( PInvCountedUTCDateTime as tstmp), 'UTC', $session.client, 'NULL' ) as EWMPhysInvtryCountedDate AS clientNULLasEWMPhysInvtryCountedDate,
  PhysicalInventoryCountUserName,
  cast(PhysInventoryCrtnUTCDateTime as timestamp) AS PhysInventoryCrtnUTCDateTime,
  tstmp_to_dats( cast( PhysInventoryCrtnUTCDateTime as tstmp), 'UTC', $session.client, 'NULL' ) as EWMPhysInvtryCreationDate AS clientNULLasEWMPhysInvtryCreationDate,
  cast(EWMPhysInvtryPostingDateTime as timestamp) AS EWMPhysInvtryPostingDateTime,
  tstmp_to_dats( cast( EWMPhysInvtryPostingDateTime as tstmp), 'UTC', $session.client, 'NULL' ) as EWMPhysInvtryPostingDate AS clientNULLasEWMPhysInvtryPostingDate,
  ActivityArea,
  EWMPhysicalInventoryPriority,
  EWMPhysInvtryReason,
  PInvDocumentItemIsPrinted,
  EWMStorageType,
  EWMStorageBin,
  1 AS EWMNumberOfStorageBins,
  _StorageBin.EWMStorageSection AS EWMStorageSection,
  _StorageBin.EWMStorageBinType AS EWMStorageBinType,
  _StorageBin.EWMStorageBinAccessType AS EWMStorageBinAccessType,
  _StorageBin.EWMStorageBinSubdivision AS EWMStorageBinSubdivision,
  Product,
  Batch,
  EWMStockType,
  EWMStockUsage,
  EWMStockOwner,
  _Owner.BusinessPartnerName AS StockOwnerName,
  EntitledToDisposeParty,
  _Entitled.BusinessPartnerName AS NameOfEntitledToDisposeParty,
  StockDocumentCategory,
  WBSElementInternalID,
  WBSElementExternalID,
  SpecialStockIdfgSalesOrder,
  SpecialStockIdfgSalesOrderItem,
  WhseQualityInspectionType,
  EWMStockReferenceDocCategory,
  EWMStockReferenceDocument,
  EWMStockReferenceDocumentItem,
  StockIdentificationNumber,
  EWMGoodsReceiptDateTime,
  cast( substring( cast( EWMGoodsReceiptDateTime as abap.char(23) ), 1, 8 ) as ewm_de_gr_date ) AS EWMGoodsReceiptDate,
  ShelfLifeExpirationDate,
  CountryOfOrigin,
  MatlBatchIsInRstrcdUseStock,
  EWMPhysInventoryCountingCycle,
  EWMPInvCycCountingIntvlValue,
  EWMPInvCycCountingBufferValue,
  WarehouseOrder,
  PhysicalInventoryRefDocYear,
  EWMRefPhysicalInventoryDoc,
  PhysicalInventoryRefDocItem,
  PInvFreeDefinedRefText
FROM I_EWM_PhysicalInventoryItem AS _PIItem
LEFT OUTER JOIN I_EWM_WarehouseNumber_2 AS _Warehouse ON EWMWarehouse = _Warehouse.EWMWarehouse  -- association [1..1]
LEFT OUTER JOIN I_EWM_StorageType_2 AS _StorageType ON EWMStorageType = _StorageType.EWMStorageType AND EWMWarehouse = _StorageType.EWMWarehouse  -- association [0..1]
LEFT OUTER JOIN I_EWM_StorageSection_2 AS _StorageSection ON EWMStorageSection = _StorageSection.EWMStorageSection AND EWMStorageType = _StorageSection.EWMStorageType AND EWMWarehouse = _StorageSection.EWMWarehouse  -- association [0..1]
LEFT OUTER JOIN I_EWM_StorageBin_2 AS _StorageBin ON EWMStorageBin = _StorageBin.EWMStorageBin AND EWMWarehouse = _StorageBin.EWMWarehouse  -- association [0..1]
LEFT OUTER JOIN I_EWM_StorageBinType_2 AS _StorageBinType ON EWMWarehouse = _StorageBinType.EWMWarehouse AND EWMStorageBinType = _StorageBinType.EWMStorageBinType  -- association [0..1]
LEFT OUTER JOIN I_EWM_StorageBinAccessType AS _StorageBinAccessType ON EWMWarehouse = _StorageBinAccessType.EWMWarehouse AND EWMStorageBinAccessType = _StorageBinAccessType.EWMStorageBinAccessType  -- association [0..1]
LEFT OUTER JOIN I_EWM_StockType_2 AS _StockType ON EWMStockType = _StockType.EWMStockType AND EWMWarehouse = _StockType.EWMWarehouse  -- association [0..1]
LEFT OUTER JOIN I_EWM_StockUsage AS _StockUsage ON EWMStockUsage = _StockUsage.EWMStockUsage  -- association [0..1]
LEFT OUTER JOIN I_BusinessPartner AS _Owner ON EWMStockOwner = _Owner.BusinessPartner  -- association [0..1]
LEFT OUTER JOIN I_BusinessPartner AS _Entitled ON EntitledToDisposeParty = _Entitled.BusinessPartner  -- association [0..1]
LEFT OUTER JOIN P_EWM_PhysInvtryItemIndicator AS _PhysicalInventoryItemInd ON PhysicalInventoryDocNumber = _PhysicalInventoryItemInd.PhysicalInventoryDocNumber AND PhysicalInventoryDocYear = _PhysicalInventoryItemInd.PhysicalInventoryDocYear AND PhysicalInventoryItemNumber = _PhysicalInventoryItemInd.PhysicalInventoryItemNumber  -- association [0..1]
LEFT OUTER JOIN I_EWM_ActivityArea_2 AS _ActivityArea ON ActivityArea = _ActivityArea.ActivityArea AND EWMWarehouse = _ActivityArea.EWMWarehouse  -- association [0..1]
LEFT OUTER JOIN I_EWM_PhysInvtryCycleCounting AS _PhysInvtryCycleCounting ON EWMPhysInventoryCountingCycle = _PhysInvtryCycleCounting.EWMPhysInventoryCountingCycle AND EWMWarehouse = _PhysInvtryCycleCounting.EWMWarehouse  -- association [0..1]
;