I_EWM_PInvItemFlattenedRow

DDL: I_EWM_PINVITEMFLATTENEDROW Type: view_entity COMPOSITE Package: VDM_EWM_CORE

Flattened Row of PInv Item in Warehouse

I_EWM_PInvItemFlattenedRow (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_PInvItemFlattenedRow is a Composite CDS View that provides data about "Flattened Row of PInv Item in Warehouse" in SAP S/4HANA. It reads from 1 data source (P_EWM_PInvItemFlattenedRow06) and exposes 49 fields with key fields EWMWarehouse, PhysicalInventoryDocNumber, PhysicalInventoryDocYear, PhysicalInventoryItemNumber, LineIndexOfPInvItem. It has 16 associations to related views. Part of development package VDM_EWM_CORE.

SAP Help Documentation

CategoryCDS Views for Physical Inventory
StatusPhysical Inventory Status
Purpose
This CDS view provides information about flattened item rows of physical inventory items in your warehouse. Note A flattened item row consolidates data and structures the data from multiple rows into a single row. In the case of nested handling units (HUs), this CDS view only supports one level of HU. This CDS view provides the data to answer the following business questions: How many HUs are found during counting for the physical inventory item XYZ? How many stock items are found for product ABC in storage bin M during counting for physical inventory item XYZ? 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 EWMWarehouse Warehouse PhysicalInventoryDocNumber Physical Inventory Document Number PhysicalInventoryDocYear Document Year of Physical Inventory Document PhysicalInventoryItemNumber Physical Inventory Item Number LineIndexOfPInvItem Row Index of Physical Inventory Item EWMPhysicalInventoryStatus Physical Inventory Status ActivityArea Activity Area EWMStorageBin Storage Bin EWMStorageBinIsEmpty Storage Bin Is Empty HandlingUnitNumber Handling Unit HndlgUnitItemCountedIsComplete Handling Unit Is Counted as Complete HndlgUnitItemCountedIsEmpty Handling Unit Is Counted as Empty HndlgUnitItemCountedIsNotExist Handling Unit Does Not Exist EWMPInvHasExtraHndlgUnitLevel Physical Inventory Item Has Extra Handling Unit Level Product Product Batch Batch PhysicalInventoryStockUUID Stock UUID of Physical Inventory EWMStockType Stock Type EWMStockUsage Stock Usage EWMStockOwner Stock Owner EntitledToDisposeParty Party Entitled to Dispose PInvIsZeroCount Zero Count Executed EWMPhysInvtrySuggestedQty Suggested Quantity of Stock EWMPhysInvtrySuggestedQtyUnit Unit of Measure of Suggested Quantity of Stock EWMPhysInvtryBookQuantity Book Quantity of Stock EWMPhysInvtryBookQtyUnit Unit of Measure of Book Quantity of Stock EWMPhysInvtryCountedQuantity Counted Quantity of Stock EWMPhysInvtryCountedQtyUnit Unit of Measure of Counted Quantity of Stock EWMPhysInvtryEnteredQuantity Entered Quantity of Stock EWMPhysInvtryEnteredQtyUnit Unit of Measure of Entered Quantity of Stock EWMPhysInvtryDiffQuantity Difference Quantity of Stock EWMPhysInvtryDiffQuantityUnit Unit of Measure of Difference Quantity of Stock

View on SAP Help Portal →

SAP API Hub

CategoryComposite
StateC1
Line of BusinessSupply Chain
Application ComponentSCM-EWM-WOP-2CL
CapabilitiesAssociation 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)Released
PackageSupply Chain for SAP S/4HANA Cloud Public Edition
Description This CDS view provides information about flattened item rows of physical inventory items in your warehouse. <p>This CDS view provides the data to answer the following business questions:</p> <ul> <li><p>How many HUs are found during counting for the physical inventory item XYZ?</p></li> <li><p>How many stock items are found for product ABC in storage bin M during counting for physical inventory item XYZ?</p></li> </ul> <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
P_EWM_PInvItemFlattenedRow06 item from

Associations (16)

CardinalityTargetAliasCondition
[0..1] P_EWM_PhysicalInventoryItem01 _storagebin _storagebin.PhysicalInventoryDocumentUUID = item.PhysicalInventoryDocumentUUID and _storagebin.PhysicalInventoryItemNumber = item.PhysicalInventoryItemNumber
[0..1] P_EWM_PInvItemFlattenedRow04 _parent item.PhysicalInventoryDocumentUUID = _parent.PhysicalInventoryDocumentUUID and item.PhysicalInventoryItemNumber = _parent.PhysicalInventoryItemNumber and item.PhysicalInventoryChangeVersion = _parent.PhysicalInventoryChangeVersion and item.ParentHandlingUnitNumber = _parent.HandlingUnitNumber and item.ParentHandlingUnitNumber is not initial
[1..1] I_EWM_PInvDocHeaderLog _PIHeader _PIHeader.PhysicalInventoryDocumentUUID = item.PhysicalInventoryDocumentUUID
[0..1] P_EWM_ActyAreaMappgPInvArea _PIAreaMapping _PIAreaMapping.PhysicalInventoryAreaUUID = item.PhysicalInventoryAreaUUID
[0..1] I_EWM_QltyInspDocUUID _QualityInspection _QualityInspection.QualityInspectionDocUUID = item.QualityInspectionDocUUID
[0..1] I_EWM_WarehouseRequestInbHdr _WarehouseRequestInbHdr _WarehouseRequestInbHdr.EWMWarehouseRequestUUID = item.EWMStockRefDocumentUUID
[0..1] I_EWM_WarehouseRequestOutHdr _WarehouseRequestOutHdr _WarehouseRequestOutHdr.EWMWarehouseRequestUUID = item.EWMStockRefDocumentUUID
[0..1] I_EWM_ProdnMatlReqHeader _ProdnMatlReqHeader _ProdnMatlReqHeader.EWMProductionMaterialReqUUID = item.EWMStockRefDocumentUUID
[0..1] I_EWM_InbDeliveryItemBasic _InbDeliveryItem _InbDeliveryItem.InboundDeliveryUUID = item.EWMStockRefDocumentUUID and _InbDeliveryItem.InboundDeliveryItemUUID = item.EWMStockRefDocItemUUID
[0..1] I_EWM_WarehouseRequestOutItem _WarehouseRequestOutItem _WarehouseRequestOutItem.EWMWarehouseRequestUUID = item.EWMStockRefDocumentUUID and _WarehouseRequestOutItem.EWMWarehouseRequestItemUUID = item.EWMStockRefDocItemUUID
[0..1] I_EWM_ProdnMatlReqItem _ProdnMatlReqItem _ProdnMatlReqItem.EWMProductionMaterialReqUUID = item.EWMStockRefDocumentUUID and _ProdnMatlReqItem.EWMProductionMatlReqItemUUID = item.EWMStockRefDocItemUUID
[0..1] P_EWM_PInvDocBusKeyItem _PIItemBusKey _PIItemBusKey.PhysicalInventoryDocumentUUID = item.PhysicalInventoryDocumentUUID and _PIItemBusKey.PhysicalInventoryItemNumber = item.PhysicalInventoryItemNumber and _PIItemBusKey.LineIndexOfPInvItem = item.LineIndexOfPInvItem and _PIItemBusKey.PhysicalInventoryChangeVersion = item.PhysicalInventoryChangeVersion and _PIItemBusKey.PInvDocumentItemType = item.PInvDocumentItemType
[0..1] P_EWM_PInvDocBusItemQty _PIItemProposedQuan _PIItemProposedQuan.PhysicalInventoryDocumentUUID = item.PhysicalInventoryDocumentUUID and _PIItemProposedQuan.PhysicalInventoryItemNumber = item.PhysicalInventoryItemNumber and _PIItemProposedQuan.LineIndexOfPInvItem = item.LineIndexOfPInvItem and _PIItemProposedQuan.PhysicalInventoryChangeVersion = item.PhysicalInventoryChangeVersion and _PIItemProposedQuan.PInvDocumentItemType = 'P' and _PIItemProposedQuan.PInvQuantityDocStatus = 'PR' and _PIItemProposedQuan.PInvQuantitySequence = 1
[0..1] P_EWM_PInvDocBusItemQty _PIItemCountedQuan _PIItemCountedQuan.PhysicalInventoryDocumentUUID = item.PhysicalInventoryDocumentUUID and _PIItemCountedQuan.PhysicalInventoryItemNumber = item.PhysicalInventoryItemNumber and _PIItemCountedQuan.LineIndexOfPInvItem = item.LineIndexOfPInvItem and _PIItemCountedQuan.PhysicalInventoryChangeVersion = item.PhysicalInventoryChangeVersion and _PIItemCountedQuan.PInvDocumentItemType = 'C' and _PIItemCountedQuan.PInvQuantityDocStatus = 'CO' and _PIItemCountedQuan.PInvQuantitySequence = 1
[0..1] P_EWM_PInvItemRow_DiffQty _PIItemDiffQuan _PIItemDiffQuan.PhysicalInventoryDocumentUUID = item.PhysicalInventoryDocumentUUID and _PIItemDiffQuan.PhysicalInventoryItemNumber = item.PhysicalInventoryItemNumber and _PIItemDiffQuan.LineIndexOfPInvItem = item.LineIndexOfPInvItem
[0..1] P_EWM_PhysInvtryStorBinIsEmpty _PIItemBinEmpty item.PhysicalInventoryDocumentUUID = _PIItemBinEmpty.PhysicalInventoryDocumentUUID and item.PhysicalInventoryItemNumber = _PIItemBinEmpty.PhysicalInventoryItemNumber and _PIItemBinEmpty.PInvDocumentItemType = 'C' and item.PhysicalInventoryChangeVersion = _PIItemBinEmpty.PhysicalInventoryChangeVersion

Annotations (8)

NameValueLevelField
AccessControl.authorizationCheck #MANDATORY view
EndUserText.label Flattened Row of PInv Item in Warehouse view
Metadata.ignorePropagatedAnnotations true view
VDM.viewType #COMPOSITE view
AccessControl.personalData.blocking #BLOCKED_DATA_EXCLUDED view
ObjectModel.usageType.serviceQuality #D view
ObjectModel.usageType.sizeCategory #XL view
ObjectModel.usageType.dataClass #MIXED view

Fields (49)

KeyFieldSource TableSource FieldDescription
KEY EWMWarehouse _PIHeader EWMWarehouse Warehouse Number/Warehouse Complex
KEY PhysicalInventoryDocNumber _PIHeader PhysicalInventoryDocNumber Physical Inventory Document Number
KEY PhysicalInventoryDocYear _PIHeader PhysicalInventoryDocYear Document Year of Physical Inventory Document
KEY PhysicalInventoryItemNumber P_EWM_PInvItemFlattenedRow06 PhysicalInventoryItemNumber Item
KEY LineIndexOfPInvItem P_EWM_PInvItemFlattenedRow06 LineIndexOfPInvItem Row Index of Internal Tables
EWMStorageType _storagebin EWMStorageType Storage Type
EWMStorageBin _storagebin EWMStorageBin Storage Bin
EWMPhysicalInventoryStatus P_EWM_PInvItemFlattenedRow06 EWMPhysicalInventoryStatus Physical Inventory Status
ActivityArea _PIAreaMapping ActivityArea Activity Area
EWMStorageBinIsEmpty Data element for domain BOOLE: TRUE (='X') and FALSE (=' ')
PackagingMaterial _parent PackagingMaterial Packaging Materials
HandlingUnitType _parent HandlingUnitType Handling Unit Type
Product _PIItemBusKey Product Product Sold
ProductUUID _PIItemBusKey ProductUUID Product UUID
Batch _PIItemBusKey Batch Batch Number
BatchUUID _PIItemBusKey BatchUUID Target Grp GUID
SerialNumberRequiredLevel _PIItemBusKey SerialNumberRequiredLevel Serial Number Requirement
EWMStockType _PIItemBusKey EWMStockType Stock Type
EWMStockOwner _PIItemBusKey EWMStockOwner Character Field with Length 10
StockOwnerPartnerRole _PIItemBusKey StockOwnerPartnerRole Partner Role of Owner
EWMStockUsage _PIItemBusKey EWMStockUsage Stock Usage
EntitledToDisposeParty _PIItemBusKey EntitledToDisposeParty Party Entitled to Dispose
EntitledToDisposePartnerRole _PIItemBusKey EntitledToDisposePartnerRole Partner Role of Party Entitled to Dispose
StockDocumentCategory _PIItemBusKey StockDocumentCategory Special Reference Stock Type
WBSElementInternalID _PIItemBusKey WBSElementInternalID WBS Internal ID
WBSElementExternalID _PIItemBusKey WBSElementExternalID Work Breakdown Structure Element (WBS Element) Edited
SpecialStockIdfgSalesOrder _PIItemBusKey SpecialStockIdfgSalesOrder Special Stock Identification Header
SpecialStockIdfgSalesOrderItem _PIItemBusKey SpecialStockIdfgSalesOrderItem Sales Order Item of Valuated Sales Order Stock
WhseQualityInspectionType P_EWM_PInvItemFlattenedRow06 WhseQualityInspectionType Inspection ID Type
QualityInspectionDocUUID P_EWM_PInvItemFlattenedRow06 QualityInspectionDocUUID Identification of a Quality Object
QualityInspectionDocument _QualityInspection QualityInspectionDocument Inspection Lot or Inspection Document Number
StockIdentificationNumber P_EWM_PInvItemFlattenedRow06 StockIdentificationNumber Identification Number of Stock
EWMStockReferenceDocCategory P_EWM_PInvItemFlattenedRow06 EWMStockReferenceDocCategory Doc. Category for Doc. Reference and Doc.-Related Stock
EWMStockRefDocumentUUID P_EWM_PInvItemFlattenedRow06 EWMStockRefDocumentUUID Doc. Identification for Document-Related Stocks
EWMStockRefDocItemUUID P_EWM_PInvItemFlattenedRow06 EWMStockRefDocItemUUID Document Item for Document-Related Stocks
EWMGoodsReceiptDateTime P_EWM_PInvItemFlattenedRow06 EWMGoodsReceiptDateTime Date and Time of Goods Receipt
ShelfLifeExpirationDate P_EWM_PInvItemFlattenedRow06 ShelfLifeExpirationDate Shelf Life Expiration Date
CountryOfOrigin P_EWM_PInvItemFlattenedRow06 CountryOfOrigin Country/Region of Origin
MatlBatchIsInRstrcdUseStock P_EWM_PInvItemFlattenedRow06 MatlBatchIsInRstrcdUseStock Batch in Restricted-Use Stock
PInvIsZeroCount Data element for domain BOOLE: TRUE (='X') and FALSE (=' ')
EWMPhysInvtrySuggestedQty Suggested Quantity in Physical Inventory
EWMPhysInvtrySuggestedQtyUnit Unit of Measure of Suggested Quantity in Physical Inventory
EWMPhysInvtryBookQuantity Book Quantity in Physical Inventory
EWMPhysInvtryBookQtyUnit Unit of Measure of Book Quantity in Physical Inventory
EWMPhysInvtryEnteredQuantity Entered Quantity in Physical Inventory
EWMPhysInvtryEnteredQtyUnit Unit of Measure of Entered Quantity in Physical Inventory
EWMPhysInvtryDiffQuantity Difference Quantity in Physical Inventory
EWMPhysInvtryDiffQuantityUnit Unit of Measure of Difference Quantity in Physical Inventory
PhysicalInventoryStockUUID P_EWM_PInvItemFlattenedRow06 PhysicalInventoryStockUUID Globally Unique Identifier

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_PInvItemFlattenedRow.
-- 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_PInvItemFlattenedRow AS
SELECT
  _PIHeader.EWMWarehouse AS EWMWarehouse,
  _PIHeader.PhysicalInventoryDocNumber AS PhysicalInventoryDocNumber,
  _PIHeader.PhysicalInventoryDocYear AS PhysicalInventoryDocYear,
  item.PhysicalInventoryItemNumber AS PhysicalInventoryItemNumber,
  item.LineIndexOfPInvItem AS LineIndexOfPInvItem,
  _storagebin.EWMStorageType AS EWMStorageType,
  _storagebin.EWMStorageBin AS EWMStorageBin,
  item.EWMPhysicalInventoryStatus AS EWMPhysicalInventoryStatus,
  _PIAreaMapping.ActivityArea AS ActivityArea,
  cast( _PIItemBinEmpty.EWMStorageBinIsEmpty as boole_d ) AS EWMStorageBinIsEmpty,
  _parent.PackagingMaterial AS PackagingMaterial,
  _parent.HandlingUnitType AS HandlingUnitType,
  _PIItemBusKey.Product AS Product,
  _PIItemBusKey.ProductUUID AS ProductUUID,
  _PIItemBusKey.Batch AS Batch,
  _PIItemBusKey.BatchUUID AS BatchUUID,
  _PIItemBusKey.SerialNumberRequiredLevel AS SerialNumberRequiredLevel,
  _PIItemBusKey.EWMStockType AS EWMStockType,
  _PIItemBusKey.EWMStockOwner AS EWMStockOwner,
  _PIItemBusKey.StockOwnerPartnerRole AS StockOwnerPartnerRole,
  _PIItemBusKey.EWMStockUsage AS EWMStockUsage,
  _PIItemBusKey.EntitledToDisposeParty AS EntitledToDisposeParty,
  _PIItemBusKey.EntitledToDisposePartnerRole AS EntitledToDisposePartnerRole,
  _PIItemBusKey.StockDocumentCategory AS StockDocumentCategory,
  _PIItemBusKey.WBSElementInternalID AS WBSElementInternalID,
  _PIItemBusKey.WBSElementExternalID AS WBSElementExternalID,
  _PIItemBusKey.SpecialStockIdfgSalesOrder AS SpecialStockIdfgSalesOrder,
  _PIItemBusKey.SpecialStockIdfgSalesOrderItem AS SpecialStockIdfgSalesOrderItem,
  item.WhseQualityInspectionType AS WhseQualityInspectionType,
  item.QualityInspectionDocUUID AS QualityInspectionDocUUID,
  _QualityInspection.QualityInspectionDocument AS QualityInspectionDocument,
  item.StockIdentificationNumber AS StockIdentificationNumber,
  item.EWMStockReferenceDocCategory AS EWMStockReferenceDocCategory,
  item.EWMStockRefDocumentUUID AS EWMStockRefDocumentUUID,
  item.EWMStockRefDocItemUUID AS EWMStockRefDocItemUUID,
  item.EWMGoodsReceiptDateTime AS EWMGoodsReceiptDateTime,
  item.ShelfLifeExpirationDate AS ShelfLifeExpirationDate,
  item.CountryOfOrigin AS CountryOfOrigin,
  item.MatlBatchIsInRstrcdUseStock AS MatlBatchIsInRstrcdUseStock,
  cast( _PIItemCountedQuan.PInvIsZeroCount as boole_d ) AS PInvIsZeroCount,
  cast(_PIItemProposedQuan.QuantityOfPInvItemInBaseUoM as ewm_de_pi_suggestedquantity preserving type ) AS EWMPhysInvtrySuggestedQty,
  cast(_PIItemProposedQuan.UnitOfMeasure as ewm_de_pi_suggestedquantityuom preserving type ) AS EWMPhysInvtrySuggestedQtyUnit,
  cast(_PIItemProposedQuan.QuantityOfPInvItemInBaseUoM as ewm_de_pi_bookedquantity preserving type ) AS EWMPhysInvtryBookQuantity,
  cast(_PIItemProposedQuan.UnitOfMeasure as ewm_de_pi_bookedquantityuom preserving type ) AS EWMPhysInvtryBookQtyUnit,
  cast(_PIItemCountedQuan.EnteredQuantityOfPInvItem as ewm_de_pi_enteredquanity preserving type ) AS EWMPhysInvtryEnteredQuantity,
  cast(_PIItemCountedQuan.EnteredUoMOfPInv as ewm_de_pi_enteredquanityuom preserving type ) AS EWMPhysInvtryEnteredQtyUnit,
  cast(_PIItemDiffQuan.EWMPhysInvtryDiffQuantity as ewm_de_pi_differencequantity preserving type ) AS EWMPhysInvtryDiffQuantity,
  cast(_PIItemDiffQuan.EWMPhysInvtryDiffQuantityUnit as ewm_de_pi_differenceqtyuom preserving type ) AS EWMPhysInvtryDiffQuantityUnit,
  item.PhysicalInventoryStockUUID AS PhysicalInventoryStockUUID
FROM P_EWM_PInvItemFlattenedRow06 AS item
LEFT OUTER JOIN P_EWM_PhysicalInventoryItem01 AS _storagebin ON _storagebin.PhysicalInventoryDocumentUUID = item.PhysicalInventoryDocumentUUID AND _storagebin.PhysicalInventoryItemNumber = item.PhysicalInventoryItemNumber  -- association [0..1]
LEFT OUTER JOIN P_EWM_PInvItemFlattenedRow04 AS _parent ON item.PhysicalInventoryDocumentUUID = _parent.PhysicalInventoryDocumentUUID AND item.PhysicalInventoryItemNumber = _parent.PhysicalInventoryItemNumber AND item.PhysicalInventoryChangeVersion = _parent.PhysicalInventoryChangeVersion AND item.ParentHandlingUnitNumber = _parent.HandlingUnitNumber AND item.ParentHandlingUnitNumber is not initial  -- association [0..1]
LEFT OUTER JOIN I_EWM_PInvDocHeaderLog AS _PIHeader ON _PIHeader.PhysicalInventoryDocumentUUID = item.PhysicalInventoryDocumentUUID  -- association [1..1]
LEFT OUTER JOIN P_EWM_ActyAreaMappgPInvArea AS _PIAreaMapping ON _PIAreaMapping.PhysicalInventoryAreaUUID = item.PhysicalInventoryAreaUUID  -- association [0..1]
LEFT OUTER JOIN I_EWM_QltyInspDocUUID AS _QualityInspection ON _QualityInspection.QualityInspectionDocUUID = item.QualityInspectionDocUUID  -- association [0..1]
LEFT OUTER JOIN I_EWM_WarehouseRequestInbHdr AS _WarehouseRequestInbHdr ON _WarehouseRequestInbHdr.EWMWarehouseRequestUUID = item.EWMStockRefDocumentUUID  -- association [0..1]
LEFT OUTER JOIN I_EWM_WarehouseRequestOutHdr AS _WarehouseRequestOutHdr ON _WarehouseRequestOutHdr.EWMWarehouseRequestUUID = item.EWMStockRefDocumentUUID  -- association [0..1]
LEFT OUTER JOIN I_EWM_ProdnMatlReqHeader AS _ProdnMatlReqHeader ON _ProdnMatlReqHeader.EWMProductionMaterialReqUUID = item.EWMStockRefDocumentUUID  -- association [0..1]
LEFT OUTER JOIN I_EWM_InbDeliveryItemBasic AS _InbDeliveryItem ON _InbDeliveryItem.InboundDeliveryUUID = item.EWMStockRefDocumentUUID AND _InbDeliveryItem.InboundDeliveryItemUUID = item.EWMStockRefDocItemUUID  -- association [0..1]
LEFT OUTER JOIN I_EWM_WarehouseRequestOutItem AS _WarehouseRequestOutItem ON _WarehouseRequestOutItem.EWMWarehouseRequestUUID = item.EWMStockRefDocumentUUID AND _WarehouseRequestOutItem.EWMWarehouseRequestItemUUID = item.EWMStockRefDocItemUUID  -- association [0..1]
LEFT OUTER JOIN I_EWM_ProdnMatlReqItem AS _ProdnMatlReqItem ON _ProdnMatlReqItem.EWMProductionMaterialReqUUID = item.EWMStockRefDocumentUUID AND _ProdnMatlReqItem.EWMProductionMatlReqItemUUID = item.EWMStockRefDocItemUUID  -- association [0..1]
LEFT OUTER JOIN P_EWM_PInvDocBusKeyItem AS _PIItemBusKey ON _PIItemBusKey.PhysicalInventoryDocumentUUID = item.PhysicalInventoryDocumentUUID AND _PIItemBusKey.PhysicalInventoryItemNumber = item.PhysicalInventoryItemNumber AND _PIItemBusKey.LineIndexOfPInvItem = item.LineIndexOfPInvItem AND _PIItemBusKey.PhysicalInventoryChangeVersion = item.PhysicalInventoryChangeVersion AND _PIItemBusKey.PInvDocumentItemType = item.PInvDocumentItemType  -- association [0..1]
LEFT OUTER JOIN P_EWM_PInvDocBusItemQty AS _PIItemProposedQuan ON _PIItemProposedQuan.PhysicalInventoryDocumentUUID = item.PhysicalInventoryDocumentUUID AND _PIItemProposedQuan.PhysicalInventoryItemNumber = item.PhysicalInventoryItemNumber AND _PIItemProposedQuan.LineIndexOfPInvItem = item.LineIndexOfPInvItem AND _PIItemProposedQuan.PhysicalInventoryChangeVersion = item.PhysicalInventoryChangeVersion AND _PIItemProposedQuan.PInvDocumentItemType = 'P' AND _PIItemProposedQuan.PInvQuantityDocStatus = 'PR' AND _PIItemProposedQuan.PInvQuantitySequence = 1  -- association [0..1]
LEFT OUTER JOIN P_EWM_PInvDocBusItemQty AS _PIItemCountedQuan ON _PIItemCountedQuan.PhysicalInventoryDocumentUUID = item.PhysicalInventoryDocumentUUID AND _PIItemCountedQuan.PhysicalInventoryItemNumber = item.PhysicalInventoryItemNumber AND _PIItemCountedQuan.LineIndexOfPInvItem = item.LineIndexOfPInvItem AND _PIItemCountedQuan.PhysicalInventoryChangeVersion = item.PhysicalInventoryChangeVersion AND _PIItemCountedQuan.PInvDocumentItemType = 'C' AND _PIItemCountedQuan.PInvQuantityDocStatus = 'CO' AND _PIItemCountedQuan.PInvQuantitySequence = 1  -- association [0..1]
LEFT OUTER JOIN P_EWM_PInvItemRow_DiffQty AS _PIItemDiffQuan ON _PIItemDiffQuan.PhysicalInventoryDocumentUUID = item.PhysicalInventoryDocumentUUID AND _PIItemDiffQuan.PhysicalInventoryItemNumber = item.PhysicalInventoryItemNumber AND _PIItemDiffQuan.LineIndexOfPInvItem = item.LineIndexOfPInvItem  -- association [0..1]
LEFT OUTER JOIN P_EWM_PhysInvtryStorBinIsEmpty AS _PIItemBinEmpty ON item.PhysicalInventoryDocumentUUID = _PIItemBinEmpty.PhysicalInventoryDocumentUUID AND item.PhysicalInventoryItemNumber = _PIItemBinEmpty.PhysicalInventoryItemNumber AND _PIItemBinEmpty.PInvDocumentItemType = 'C' AND item.PhysicalInventoryChangeVersion = _PIItemBinEmpty.PhysicalInventoryChangeVersion  -- association [0..1]
;