P_EWM_PInvDocInWhseOrd01

DDL: P_EWM_PINVDOCINWHSEORD01 Type: view_entity CONSUMPTION Package: VDM_EWM_CORE

Help view of warehouse orders in PI doc

P_EWM_PInvDocInWhseOrd01 is a Consumption CDS View that provides data about "Help view of warehouse orders in PI doc" in SAP S/4HANA. It reads from 2 data sources (I_EWM_PInvDocItemLog, I_EWM_ActyAreaMappgPInvArea_2) and exposes 11 fields with key fields PhysicalInventoryDocumentUUID, PhysicalInventoryRefDocNumber, PhysicalInventoryItemNumber. Part of development package VDM_EWM_CORE.

Data Sources (2)

SourceAliasJoin Type
I_EWM_PInvDocItemLog logitem from
I_EWM_ActyAreaMappgPInvArea_2 piareaMapping left_outer

Annotations (5)

NameValueLevelField
AbapCatalog.dataMaintenance #RESTRICTED view
AccessControl.authorizationCheck #NOT_REQUIRED view
EndUserText.label Help view of warehouse orders in PI doc view
VDM.private true view
VDM.viewType #CONSUMPTION view

Fields (11)

KeyFieldSource TableSource FieldDescription
KEY PhysicalInventoryDocumentUUID I_EWM_PInvDocItemLog PhysicalInventoryDocumentUUID GUID
KEY PhysicalInventoryRefDocNumber I_EWM_PInvDocItemLog PhysicalInventoryRefDocNumber Document No.
KEY PhysicalInventoryItemNumber I_EWM_PInvDocItemLog PhysicalInventoryItemNumber Sort No.
PInvLogItemTimeStamp I_EWM_PInvDocItemLog PInvLogItemTimeStamp UTC Time Stamp in Short Form (YYYYMMDDhhmmss)
PhysicalInventoryLogByUserName I_EWM_PInvDocItemLog PhysicalInventoryLogByUserName User Name
PhysicalInventoryProcessType I_EWM_PInvDocItemLog PhysicalInventoryProcessType Type of Data
PhysicalInventoryRefDocType I_EWM_PInvDocItemLog PhysicalInventoryRefDocType Ref. procedure
PhysicalInventoryDocumentType item PhysicalInventoryDocumentType
ItemObjectsInPInvDocIsPrinted piarea ItemObjectsInPInvDocIsPrinted
ActivityArea I_EWM_ActyAreaMappgPInvArea_2 ActivityArea Activity Area
PhysicalInventoryArea piarea PhysicalInventoryArea Phys. Inv. Area

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_PInvDocInWhseOrd01.
-- 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 P_EWM_PInvDocInWhseOrd01 AS
SELECT
  logitem.PhysicalInventoryDocumentUUID AS PhysicalInventoryDocumentUUID,
  logitem.PhysicalInventoryRefDocNumber AS PhysicalInventoryRefDocNumber,
  logitem.PhysicalInventoryItemNumber AS PhysicalInventoryItemNumber,
  logitem.PInvLogItemTimeStamp AS PInvLogItemTimeStamp,
  logitem.PhysicalInventoryLogByUserName AS PhysicalInventoryLogByUserName,
  logitem.PhysicalInventoryProcessType AS PhysicalInventoryProcessType,
  logitem.PhysicalInventoryRefDocType AS PhysicalInventoryRefDocType,
  item.PhysicalInventoryDocumentType AS PhysicalInventoryDocumentType,
  piarea.ItemObjectsInPInvDocIsPrinted AS ItemObjectsInPInvDocIsPrinted,
  piareaMapping.ActivityArea AS ActivityArea,
  piarea.PhysicalInventoryArea AS PhysicalInventoryArea
FROM I_EWM_PInvDocItemLog AS logitem
LEFT OUTER JOIN I_EWM_ActyAreaMappgPInvArea_2 AS piareaMapping ON /* join condition not captured in parsed metadata */
;