P_PlantKPIForCycleCounting

DDL: P_PLANTKPIFORCYCLECOUNTING SQL: PMATKPIFORPLNT Type: view COMPOSITE

P_PlantKPIForCycleCounting is a Composite CDS View in SAP S/4HANA. It reads from 1 data source (P_MaterialKPIForCycleCounting) and exposes 3 fields with key field Plant.

Data Sources (1)

SourceAliasJoin Type
P_MaterialKPIForCycleCounting P_MaterialKPIForCycleCounting from

Parameters (3)

NameTypeDefault
P_StartDate nsdm_reference_startdate
P_EndDate nsdm_reference_enddate
P_InventoryConsumptionGroup inventory_consumption_group

Annotations (10)

NameValueLevelField
AbapCatalog.sqlViewName PMATKPIFORPLNT 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 (3)

KeyFieldSource TableSource FieldDescription
KEY Plant Plant Valuation Area
AvgMatlStkAmountInCompanyCrcy
DifferenceAmtPerYrInCoCodeCrcy

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_PlantKPIForCycleCounting.
-- 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: PMATKPIFORPLNT
-- Parameters: P_StartDate : nsdm_reference_startdate, P_EndDate : nsdm_reference_enddate, P_InventoryConsumptionGroup : inventory_consumption_group

CREATE VIEW P_PlantKPIForCycleCounting AS
SELECT
  Plant,
  avg(AvgMatlStkAmountInCompanyCrcy) AS AvgMatlStkAmountInCompanyCrcy,
  avg(DifferenceAmtPerYrInCoCodeCrcy) AS DifferenceAmtPerYrInCoCodeCrcy
FROM P_MaterialKPIForCycleCounting
;