P_DailyWeeklyMnthlyPIRHistDate

DDL: P_DAILYWEEKLYMNTHLYPIRHISTDATE SQL: PDWMPIRHISTDTE Type: view CONSUMPTION

P_DailyWeeklyMnthlyPIRHistDate is a Consumption CDS View in SAP S/4HANA. It reads from 2 data sources (I_CalendarDate, P_DailyWeeklyMnthlyPIRHist) and exposes 7 fields with key fields Material, ProductionPlant, MRPArea, DeliveryDate.

Data Sources (2)

SourceAliasJoin Type
I_CalendarDate _CalendarDate left_outer
P_DailyWeeklyMnthlyPIRHist _PlndIndReqHist from

Annotations (5)

NameValueLevelField
AbapCatalog.sqlViewName PDWMPIRHISTDTE view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #NOT_REQUIRED view
VDM.viewType #CONSUMPTION view
VDM.private true view

Fields (7)

KeyFieldSource TableSource FieldDescription
KEY Material Material Vehicle Model
KEY ProductionPlant ProductionPlant Prod plnt
KEY MRPArea MRPArea MRP Area
KEY DeliveryDate I_CalendarDate CalendarDate Calendar Date
QuantityInBaseUnit QuantityInBaseUnit Quantity
TotalWeeklyPlndIndepRqmtQty TotalWeeklyPlndIndepRqmtQty
TotalMonthlyPlndIndepRqmtQty TotalMonthlyPlndIndepRqmtQty

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_DailyWeeklyMnthlyPIRHistDate.
-- 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: PDWMPIRHISTDTE

CREATE VIEW P_DailyWeeklyMnthlyPIRHistDate AS
SELECT
  Material,
  ProductionPlant,
  MRPArea,
  _CalendarDate.CalendarDate AS DeliveryDate,
  QuantityInBaseUnit,
  TotalWeeklyPlndIndepRqmtQty,
  TotalMonthlyPlndIndepRqmtQty
FROM P_DailyWeeklyMnthlyPIRHist AS _PlndIndReqHist
LEFT OUTER JOIN I_CalendarDate AS _CalendarDate ON /* join condition not captured in parsed metadata */
;