I_MatlAvgDailyUsge2

DDL: I_MATLAVGDAILYUSGE2 Type: view_entity COMPOSITE Package: PPH_DD_VDM_STLM

Material Average Daily Usage

I_MatlAvgDailyUsge2 is a Composite CDS View that provides data about "Material Average Daily Usage" in SAP S/4HANA. It reads from 2 data sources (I_MatlAvgDailyUsge1, P_DailyWeeklyMnthlyPIRByDate) and exposes 14 fields with key fields Material, Plant, MRPArea, PostingDate, Plant. Part of development package PPH_DD_VDM_STLM.

Data Sources (2)

SourceAliasJoin Type
I_MatlAvgDailyUsge1 _MatADU from
P_DailyWeeklyMnthlyPIRByDate _MatPIR union

Annotations (7)

NameValueLevelField
Metadata.ignorePropagatedAnnotations true view
AccessControl.authorizationCheck #CHECK view
EndUserText.label Material Average Daily Usage view
VDM.viewType #COMPOSITE view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
ObjectModel.usageType.sizeCategory #XXL view
ObjectModel.usageType.serviceQuality #D view

Fields (14)

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

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 I_MatlAvgDailyUsge2.
-- 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 I_MatlAvgDailyUsge2 AS
SELECT
  Material,
  Plant,
  MRPArea,
  PostingDate,
  sum(QuantityInBaseUnit) AS QuantityInBaseUnit,
  MaterialBaseUnit,
  1 AS NumberOfPostingDates,
  'X' AS IsPlndIndepRqmtForPlant
FROM I_MatlAvgDailyUsge1 AS _MatADU
-- UNION with additional select branch(es): P_DailyWeeklyMnthlyPIRByDate
;