P_EWM_PInvItemHasStock1

DDL: P_EWM_PINVITEMHASSTOCK1 Type: view_entity COMPOSITE Package: VDM_EWM_CORE

Private view to check if stock exists in PI Item

P_EWM_PInvItemHasStock1 is a Composite CDS View that provides data about "Private view to check if stock exists in PI Item" in SAP S/4HANA. It reads from 1 data source (P_EWM_PhysInventoryItemRow02) and exposes 3 fields with key fields PhysicalInventoryDocumentUUID, PhysicalInventoryItemNumber. Part of development package VDM_EWM_CORE.

Data Sources (1)

SourceAliasJoin Type
P_EWM_PhysInventoryItemRow02 P_EWM_PhysInventoryItemRow02 from

Annotations (7)

NameValueLevelField
AccessControl.authorizationCheck #NOT_REQUIRED view
Metadata.ignorePropagatedAnnotations true view
VDM.private true view
VDM.viewType #COMPOSITE view
ObjectModel.usageType.serviceQuality #X view
ObjectModel.usageType.sizeCategory #S view
ObjectModel.usageType.dataClass #MIXED view

Fields (3)

KeyFieldSource TableSource FieldDescription
KEY PhysicalInventoryDocumentUUID PhysicalInventoryDocumentUUID
KEY PhysicalInventoryItemNumber PhysicalInventoryItemNumber
int4asEWMPInvItemHasStock

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_PInvItemHasStock1.
-- 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_PInvItemHasStock1 AS
SELECT
  PhysicalInventoryDocumentUUID,
  PhysicalInventoryItemNumber,
  sum( cast( case PhysicalInventoryItemType when 'S' then 1 else 0 end as abap.int4 ) ) as EWMPInvItemHasStock AS int4asEWMPInvItemHasStock
FROM P_EWM_PhysInventoryItemRow02
;