P_PhysInvtryDocItemPerYear

DDL: P_PHYSINVTRYDOCITEMPERYEAR SQL: PPIDIFFPY Type: view COMPOSITE

P_PhysInvtryDocItemPerYear is a Composite CDS View in SAP S/4HANA. It reads from 1 data source (P_MappedPhysInvtryItem) and exposes 14 fields.

Data Sources (1)

SourceAliasJoin Type
P_MappedPhysInvtryItem P_MappedPhysInvtryItem from

Parameters (1)

NameTypeDefault
P_StartDate vdm_v_start_date

Annotations (7)

NameValueLevelField
AbapCatalog.preserveKey true view
AbapCatalog.sqlViewName PPIDIFFPY view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #NOT_ALLOWED view
ClientHandling.algorithm #SESSION_VARIABLE view
VDM.private true view
VDM.viewType #COMPOSITE view

Fields (14)

KeyFieldSource TableSource FieldDescription
Material Material Vehicle Model
Plant Plant Valuation Area
StorageLocation StorageLocation StorageLocation
Supplier Supplier Supplier
Customer Customer Sold-to Party
Batch Batch Lot No.
InventorySpecialStockType InventorySpecialStockType Special Stock Type
InventoryStockType InventoryStockType Stock Type
SalesOrder SalesOrder SD Document
SalesOrderItem SalesOrderItem Sales Order Item
WBSElementInternalID WBSElementInternalID WBS Internal ID
StockOwner StockOwner Owner of stock
PInvDiffQtyPerYearInBaseUnit
NumberOfPInvAdjustmentsPerYear

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_PhysInvtryDocItemPerYear.
-- 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.
-- SQL view name: PPIDIFFPY
-- Parameters: P_StartDate : vdm_v_start_date

CREATE VIEW P_PhysInvtryDocItemPerYear AS
SELECT
  Material,
  Plant,
  StorageLocation,
  Supplier,
  Customer,
  Batch,
  InventorySpecialStockType,
  InventoryStockType,
  SalesOrder,
  SalesOrderItem,
  WBSElementInternalID,
  StockOwner,
  sum( DifferenceQuantityInBaseUnit ) AS PInvDiffQtyPerYearInBaseUnit,
  count(*) AS NumberOfPInvAdjustmentsPerYear
FROM P_MappedPhysInvtryItem
;