P_PERDAYUSAGE

DDL: P_PERDAYUSAGE Type: view_entity COMPOSITE Package: PPH_DD_VDM_STLM

Demand Driven Product Per Day Usage

P_PERDAYUSAGE is a Composite CDS View that provides data about "Demand Driven Product Per Day Usage" in SAP S/4HANA. It reads from 1 data source (I_MatlAvgDailyUsge1) and exposes 6 fields with key fields Material, Plant, MRPArea. Part of development package PPH_DD_VDM_STLM.

Data Sources (1)

SourceAliasJoin Type
I_MatlAvgDailyUsge1 I_MatlAvgDailyUsge1 from

Parameters (2)

NameTypeDefault
P_StartDate sydatum
P_EndDate sydatum

Annotations (3)

NameValueLevelField
AccessControl.authorizationCheck #NOT_REQUIRED view
VDM.private true view
VDM.viewType #COMPOSITE view

Fields (6)

KeyFieldSource TableSource FieldDescription
KEY Material Material Vehicle Model
KEY Plant Plant Valuation Area
KEY MRPArea MRPArea MRP Area
QuantityInBaseUnit
MaterialBaseUnit MaterialBaseUnit Valuation Unit
PostingDate PostingDate Posting Date for GR

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_PERDAYUSAGE.
-- 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.
-- Parameters: P_StartDate : sydatum, P_EndDate : sydatum

CREATE VIEW P_PERDAYUSAGE AS
SELECT
  Material,
  Plant,
  MRPArea,
  sum(QuantityInBaseUnit) AS QuantityInBaseUnit,
  MaterialBaseUnit,
  PostingDate
FROM I_MatlAvgDailyUsge1
;