P_ForecastDemandItemHistory

DDL: P_FORECASTDEMANDITEMHISTORY SQL: PFCSTDMNDIHIST Type: view CONSUMPTION

P_ForecastDemandItemHistory is a Consumption CDS View in SAP S/4HANA. It reads from 2 data sources (I_ForecastDemandItemHistory, I_ProdPlantPlndIndepRqmtBasic) and exposes 12 fields with key fields LastChangeDate, LastChangeTime.

Data Sources (2)

SourceAliasJoin Type
I_ForecastDemandItemHistory _ForecastHist from
I_ProdPlantPlndIndepRqmtBasic _PIRBasic inner

Annotations (5)

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

Fields (12)

KeyFieldSource TableSource FieldDescription
KEY LastChangeDate LastChangeDate Time Stamp
KEY LastChangeTime LastChangeTime Time changed
LastChangeDateTime
DeliveryDate DeliveryDate Delivery Date
Material Material Vehicle Model
ProductionPlant ProductionPlant Prod plnt
DemandPlanner DemandPlanner
RequirementType RequirementType RequirementType
CalendarMonth CalendarMonth Calendar Month
_CalendarMonth _CalendarMonth
_MaterialMaster _MaterialMaster
_YearMonth _YearMonth

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_ForecastDemandItemHistory.
-- 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: PFCSTDMNDIHIST

CREATE VIEW P_ForecastDemandItemHistory AS
SELECT
  LastChangeDate,
  LastChangeTime,
  dats_tims_to_tstmp( LastChangeDate, LastChangeTime, abap_system_timezone( $session.client,'NULL' ), $session.client, 'NULL' ) AS LastChangeDateTime,
  DeliveryDate,
  Material,
  ProductionPlant,
  DemandPlanner,
  RequirementType,
  CalendarMonth
FROM I_ForecastDemandItemHistory AS _ForecastHist
INNER JOIN I_ProdPlantPlndIndepRqmtBasic AS _PIRBasic ON /* join condition not captured in parsed metadata */
;