I_EWM_PhysicalInventoryDocItem

DDL: I_EWM_PHYSICALINVENTORYDOCITEM Type: view_entity BASIC

Whse Physical Inventory Document Items

I_EWM_PhysicalInventoryDocItem is a Basic CDS View that provides data about "Whse Physical Inventory Document Items" in SAP S/4HANA. It reads from 1 data source (/lime/pi_doc_it) and exposes 55 fields with key fields PhysicalInventoryDocumentUUID, PhysicalInventoryItemNumber, LineIndexOfPInvItem, PhysicalInventoryChangeVersion, PInvDocumentItemType. It has 3 associations to related views.

Data Sources (1)

SourceAliasJoin Type
/lime/pi_doc_it /lime/pi_doc_it from

Associations (3)

CardinalityTargetAliasCondition
[0..1] I_EWM_PInvDocBusKeyItem _KeyItem $projection.PhysicalInventoryDocumentUUID = _KeyItem.PhysicalInventoryDocumentUUID and $projection.PhysicalInventoryItemNumber = _KeyItem.PhysicalInventoryItemNumber and $projection.LineIndexOfPInvItem = _KeyItem.LineIndexOfPInvItem and $projection.PhysicalInventoryChangeVersion = _KeyItem.PhysicalInventoryChangeVersion and $projection.PInvDocumentItemType = _KeyItem.PInvDocumentItemType
[0..1] I_EWM_PInvDocBusKeyParent _ParentItem $projection.PhysicalInventoryDocumentUUID = _ParentItem.PhysicalInventoryDocumentUUID and $projection.PhysicalInventoryItemNumber = _ParentItem.PhysicalInventoryItemNumber and $projection.LineIndexOfPInvItem = _ParentItem.LineIndexOfPInvItem and $projection.PhysicalInventoryChangeVersion = _ParentItem.PhysicalInventoryChangeVersion and $projection.PInvDocumentItemType = _ParentItem.PInvDocumentItemType
[0..*] I_EWM_PInvDocBusItemQty _Quantity $projection.PhysicalInventoryDocumentUUID = _Quantity.PhysicalInventoryDocumentUUID and $projection.PhysicalInventoryItemNumber = _Quantity.PhysicalInventoryItemNumber and $projection.LineIndexOfPInvItem = _Quantity.LineIndexOfPInvItem and $projection.PhysicalInventoryChangeVersion = _Quantity.PhysicalInventoryChangeVersion and $projection.PInvDocumentItemType = _Quantity.PInvDocumentItemType

Annotations (6)

NameValueLevelField
AccessControl.authorizationCheck #PRIVILEGED_ONLY view
EndUserText.label Whse Physical Inventory Document Items view
VDM.viewType #BASIC view
ObjectModel.usageType.serviceQuality #A view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
ObjectModel.usageType.sizeCategory #M view

Fields (55)

KeyFieldSource TableSource FieldDescription
KEY PhysicalInventoryDocumentUUID guid_doc GUID
KEY PhysicalInventoryItemNumber item_no Sort No.
KEY LineIndexOfPInvItem line_idx Table Row
KEY PhysicalInventoryChangeVersion change_seq Version
KEY PInvDocumentItemType item_type Type
PInvDocumentItemsGroup item_group ORP/RCP group ref
PhysicalInventoryItemLevel lvl Level in Tree
PhysicalInventoryDocumentType doc_type VAT Document Type
PhysicalInventoryStatusText doc_status VL Doc Status
EWMPhysInventoryCountDateTime count_date Count Date PhysInv
PhysicalInventoryCountUserName count_user User Name
PhysicalInventoryCreateDate create_date Time Stamp
PhysicalInventoryPostDate post_date Sett. Post Date
MovementDirectionOfPInv dif_direction Movement Dir.
PhysInvtryDifferenceIsPosted post_item Post
PhysicalInventoryStockUUID guid_item GUID
PhysicalInventoryItemType type_item Category Item
PInvItemParentUUID guid_parent Parent
PInvItemParentType type_parent ObjectType
PhysicalInventoryAreaUUID pi_area Phys. Inv. Area
PhysicalInventoryIsBlock block_ind BlockingInd.
PInvBookQuantityIsFreeze freeze_ind Freeze Book Inv.
PInvStockIsVirtual vsi_item VSI
PriorityCode priority Workflow priority
EWMPhysicalInventoryPriority priority Workflow priority
PInvItemIsAdditionalNew item_new_ind New Item
PInvDocumentItemIsPrinted ind_printed Print
SequenceOfPInvDocumentItems order_seq Sequence
PhysicalInventoryItemLineUUID line_guid GUID
HndlgUnitItemCountedIsComplete ind_hu_item_comp HU Compl. Cntd
HndlgUnitItemCountedIsEmpty ind_hu_item_empt HU Empty
HndlgUnitItemCountedIsNotExist ind_hu_item_noex No HU
StorageBinIsEmpty ind_loc_par_empt Location Empty
EWMStorageBinIsEmpty ind_loc_par_empt Location Empty
StorageBinIsChecked ind_item_checked SB Check Result
AdditionalItemIsFound ind_add_it_check Additional Item
WhseQualityInspectionType insptyp Insp. ID Type
QualityInspectionDocUUID inspid Inspection Obj.
StockIdentificationNumber idplate Target Stock ID
DocumentReltdStockDocCat qdoccat Document Cat.
DocumentReltdStockDocUUID qdocid Document ID
DocumentReltdStockDocItemUUID qitmid Item
ReasonForPhysInvtryDifference reason Sp.Tax Code Reason
EWMPhysInvtryDifferenceReason reason Sp.Tax Code Reason
WhseTaskGoodsReceiptDateTime wdatu Reqstd date
ShelfLifeExpirationDate vfdat SLED/BBD
CountryOfOrigin coo C/R of Orig.
MatlBatchIsInRstrcdUseStock brestr Restricted-use
WarehouseTaskExceptionCode exccode Exception Code
InternalProcessCode iprcode Int. Proc. Code
Warehouse _ParentItem Warehouse Warehouse No.
EWMWarehouse _ParentItem Warehouse Warehouse No.
_KeyItem _KeyItem
_ParentItem _ParentItem
_Quantity _Quantity

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_PhysicalInventoryDocItem.
-- 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_PhysicalInventoryDocItem AS
SELECT
  guid_doc AS PhysicalInventoryDocumentUUID,
  item_no AS PhysicalInventoryItemNumber,
  line_idx AS LineIndexOfPInvItem,
  change_seq AS PhysicalInventoryChangeVersion,
  item_type AS PInvDocumentItemType,
  item_group AS PInvDocumentItemsGroup,
  lvl AS PhysicalInventoryItemLevel,
  doc_type AS PhysicalInventoryDocumentType,
  doc_status AS PhysicalInventoryStatusText,
  count_date AS EWMPhysInventoryCountDateTime,
  count_user AS PhysicalInventoryCountUserName,
  create_date AS PhysicalInventoryCreateDate,
  post_date AS PhysicalInventoryPostDate,
  dif_direction AS MovementDirectionOfPInv,
  post_item AS PhysInvtryDifferenceIsPosted,
  guid_item AS PhysicalInventoryStockUUID,
  type_item AS PhysicalInventoryItemType,
  guid_parent AS PInvItemParentUUID,
  type_parent AS PInvItemParentType,
  pi_area AS PhysicalInventoryAreaUUID,
  block_ind AS PhysicalInventoryIsBlock,
  freeze_ind AS PInvBookQuantityIsFreeze,
  vsi_item AS PInvStockIsVirtual,
  priority AS PriorityCode,
  priority AS EWMPhysicalInventoryPriority,
  item_new_ind AS PInvItemIsAdditionalNew,
  ind_printed AS PInvDocumentItemIsPrinted,
  order_seq AS SequenceOfPInvDocumentItems,
  line_guid AS PhysicalInventoryItemLineUUID,
  ind_hu_item_comp AS HndlgUnitItemCountedIsComplete,
  ind_hu_item_empt AS HndlgUnitItemCountedIsEmpty,
  ind_hu_item_noex AS HndlgUnitItemCountedIsNotExist,
  ind_loc_par_empt AS StorageBinIsEmpty,
  ind_loc_par_empt AS EWMStorageBinIsEmpty,
  ind_item_checked AS StorageBinIsChecked,
  ind_add_it_check AS AdditionalItemIsFound,
  insptyp AS WhseQualityInspectionType,
  inspid AS QualityInspectionDocUUID,
  idplate AS StockIdentificationNumber,
  qdoccat AS DocumentReltdStockDocCat,
  qdocid AS DocumentReltdStockDocUUID,
  qitmid AS DocumentReltdStockDocItemUUID,
  reason AS ReasonForPhysInvtryDifference,
  reason AS EWMPhysInvtryDifferenceReason,
  wdatu AS WhseTaskGoodsReceiptDateTime,
  vfdat AS ShelfLifeExpirationDate,
  coo AS CountryOfOrigin,
  brestr AS MatlBatchIsInRstrcdUseStock,
  exccode AS WarehouseTaskExceptionCode,
  iprcode AS InternalProcessCode,
  _ParentItem.Warehouse AS Warehouse,
  _ParentItem.Warehouse AS EWMWarehouse
FROM /lime/pi_doc_it
LEFT OUTER JOIN I_EWM_PInvDocBusKeyItem AS _KeyItem ON PhysicalInventoryDocumentUUID = _KeyItem.PhysicalInventoryDocumentUUID AND PhysicalInventoryItemNumber = _KeyItem.PhysicalInventoryItemNumber AND LineIndexOfPInvItem = _KeyItem.LineIndexOfPInvItem AND PhysicalInventoryChangeVersion = _KeyItem.PhysicalInventoryChangeVersion AND PInvDocumentItemType = _KeyItem.PInvDocumentItemType  -- association [0..1]
LEFT OUTER JOIN I_EWM_PInvDocBusKeyParent AS _ParentItem ON PhysicalInventoryDocumentUUID = _ParentItem.PhysicalInventoryDocumentUUID AND PhysicalInventoryItemNumber = _ParentItem.PhysicalInventoryItemNumber AND LineIndexOfPInvItem = _ParentItem.LineIndexOfPInvItem AND PhysicalInventoryChangeVersion = _ParentItem.PhysicalInventoryChangeVersion AND PInvDocumentItemType = _ParentItem.PInvDocumentItemType  -- association [0..1]
LEFT OUTER JOIN I_EWM_PInvDocBusItemQty AS _Quantity ON PhysicalInventoryDocumentUUID = _Quantity.PhysicalInventoryDocumentUUID AND PhysicalInventoryItemNumber = _Quantity.PhysicalInventoryItemNumber AND LineIndexOfPInvItem = _Quantity.LineIndexOfPInvItem AND PhysicalInventoryChangeVersion = _Quantity.PhysicalInventoryChangeVersion AND PInvDocumentItemType = _Quantity.PInvDocumentItemType  -- association [0..*]
;