P_PlndIndepRqmtItemHistByDate

DDL: P_PLNDINDEPRQMTITEMHISTBYDATE Type: view_entity CONSUMPTION Package: PPH_DD_VDM_STLM

P_PlndIndepRqmtItemHistByDate

P_PlndIndepRqmtItemHistByDate is a Consumption CDS View that provides data about "P_PlndIndepRqmtItemHistByDate" in SAP S/4HANA. It reads from 3 data sources (P_DailyPlndIndepReqmtHist, P_MnthlyPlndIndepRqmtHistByDte, P_WeeklyPlndIndepRqmtHistByDte) and exposes 49 fields with key fields Material, Plant, MRPArea, LastChangeDate, LastChangeTime. It has 2 associations to related views. Part of development package PPH_DD_VDM_STLM.

Data Sources (3)

SourceAliasJoin Type
P_DailyPlndIndepReqmtHist P_DailyPlndIndepReqmtHist from
P_MnthlyPlndIndepRqmtHistByDte P_MnthlyPlndIndepRqmtHistByDte union
P_WeeklyPlndIndepRqmtHistByDte P_WeeklyPlndIndepRqmtHistByDte union

Associations (2)

CardinalityTargetAliasCondition
[1..1] P_DDProductHorizCalcFields _DDProdCF $projection.Material = _DDProdCF.Material and $projection.Plant = _DDProdCF.Plant and $projection.MRPArea = _DDProdCF.MRPArea
[1..1] I_Material _Material $projection.Material = _Material.Material

Annotations (4)

NameValueLevelField
Metadata.ignorePropagatedAnnotations true view
AccessControl.authorizationCheck #NOT_REQUIRED view
VDM.viewType #CONSUMPTION view
VDM.private true view

Fields (49)

KeyFieldSource TableSource FieldDescription
KEY Material Material Vehicle Model
KEY Plant ProductionPlant Prod plnt
KEY MRPArea MRPArea MRP Area
KEY LastChangeDate LastChangeDate Time Stamp
KEY LastChangeTime LastChangeTime Time changed
LastChangeDateTime LastChangeDateTime Timestamp
QuantityInBaseUnit ForecastQuantity Quantity
PostingDate DeliveryDate Posting Date for GR
MaterialDocumentYear
MaterialDocument
MaterialDocumentItem
MaterialDocumentRecordType
StorageLocation
Supplier
MRPAreaCategory
MaterialBaseUnit _Material MaterialBaseUnit Valuation Unit
MaterialkeyMaterial
KEY Plant ProductionPlant Prod plnt
KEY MRPArea MRPArea MRP Area
KEY LastChangeDate LastChangeDate Time Stamp
KEY LastChangeTime LastChangeTime Time changed
LastChangeDateTime LastChangeDateTime Timestamp
QuantityInBaseUnit QuantityInBaseUnit Quantity
PostingDate PostingDate Posting Date for GR
MaterialDocumentYear
MaterialDocument
MaterialDocumentItem
MaterialDocumentRecordType
StorageLocation
Supplier
MRPAreaCategory
MaterialBaseUnit _Material MaterialBaseUnit Valuation Unit
MaterialkeyMaterial
KEY Plant ProductionPlant Prod plnt
KEY MRPArea MRPArea MRP Area
KEY LastChangeDate LastChangeDate Time Stamp
KEY LastChangeTime LastChangeTime Time changed
LastChangeDateTime LastChangeDateTime Timestamp
QuantityInBaseUnit QuantityInBaseUnit Quantity
PostingDate PostingDate Posting Date for GR
MaterialDocumentYear
MaterialDocument
MaterialDocumentItem
MaterialDocumentRecordType
StorageLocation
Supplier
MRPAreaCategory
MaterialBaseUnit _Material MaterialBaseUnit Valuation Unit
TotalNoOfDays _DDProdCF TotalNoOfDays

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_PlndIndepRqmtItemHistByDate.
-- 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 P_PlndIndepRqmtItemHistByDate AS
SELECT
  Material,
  ProductionPlant AS Plant,
  MRPArea,
  LastChangeDate,
  LastChangeTime,
  LastChangeDateTime,
  ForecastQuantity AS QuantityInBaseUnit,
  DeliveryDate AS PostingDate,
  cast('' as abap.char(10)) AS MaterialDocumentYear,
  cast('' as abap.char(10)) AS MaterialDocument,
  cast('' as abap.char(10)) AS MaterialDocumentItem,
  cast('' as abap.char(10)) AS MaterialDocumentRecordType,
  cast('' as abap.char(10)) AS StorageLocation,
  cast('' as abap.char(10)) AS Supplier,
  cast('' as abap.char(10)) AS MRPAreaCategory,
  _Material.MaterialBaseUnit AS MaterialBaseUnit,
  _DDProdCF.TotalNoOfDays AS MaterialkeyMaterial,
  _DDProdCF.TotalNoOfDays AS TotalNoOfDays
FROM P_DailyPlndIndepReqmtHist
LEFT OUTER JOIN P_DDProductHorizCalcFields AS _DDProdCF ON Material = _DDProdCF.Material AND Plant = _DDProdCF.Plant AND MRPArea = _DDProdCF.MRPArea  -- association [1..1]
LEFT OUTER JOIN I_Material AS _Material ON Material = _Material.Material  -- association [1..1]
-- UNION with additional select branch(es): P_WeeklyPlndIndepRqmtHistByDte, P_MnthlyPlndIndepRqmtHistByDte
;