P_MaterialKPIPhysInvtryDiff

DDL: P_MATERIALKPIPHYSINVTRYDIFF SQL: PMATKPIPIFORMAT Type: view COMPOSITE

P_MaterialKPIPhysInvtryDiff is a Composite CDS View in SAP S/4HANA. It reads from 1 data source (P_PhysInvtryDocItemPerYear) and exposes 5 fields with key fields Material, Plant.

Data Sources (1)

SourceAliasJoin Type
P_PhysInvtryDocItemPerYear P_PhysInvtryDocItemPerYear from

Parameters (1)

NameTypeDefault
P_KeyDate vdm_v_start_date

Annotations (10)

NameValueLevelField
AbapCatalog.sqlViewName PMATKPIPIFORMAT view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
AccessControl.authorizationCheck #NOT_REQUIRED view
ClientHandling.algorithm #SESSION_VARIABLE view
VDM.private true view
VDM.viewType #COMPOSITE view
ObjectModel.usageType.sizeCategory #L view
ObjectModel.usageType.serviceQuality #D view
ObjectModel.usageType.dataClass #TRANSACTIONAL view

Fields (5)

KeyFieldSource TableSource FieldDescription
KEY Material Material Vehicle Model
KEY Plant Plant Valuation Area
DifferenceAmtPerYrInCoCodeCrcy
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_MaterialKPIPhysInvtryDiff.
-- 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: PMATKPIPIFORMAT
-- Parameters: P_KeyDate : vdm_v_start_date

CREATE VIEW P_MaterialKPIPhysInvtryDiff AS
SELECT
  Material,
  Plant,
  sum(DifferenceAmtPerYrInCoCodeCrcy) AS DifferenceAmtPerYrInCoCodeCrcy,
  sum(PInvDiffQtyPerYearInBaseUnit) AS PInvDiffQtyPerYearInBaseUnit,
  sum(NumberOfPInvAdjustmentsPerYear) AS NumberOfPInvAdjustmentsPerYear
FROM P_PhysInvtryDocItemPerYear
;