P_AdvncdPlngCalcSimlnFltrs

DDL: P_ADVNCDPLNGCALCSIMLNFLTRS Type: view_entity COMPOSITE

calculate saved simulation filters

P_AdvncdPlngCalcSimlnFltrs is a Composite CDS View that provides data about "calculate saved simulation filters" in SAP S/4HANA. It reads from 5 data sources (/sapapo/fields_t, I_AdvncdPlngSimulationVers, I_AdvncdPlngSimulationVers, P_AdvncdPlngTimeProfileCalDte, P_AdvncdPlngTimeProfileCalDte) and exposes 19 fields with key fields SimulationSessionUUID, fieldnameendasAdvncdPlngFilterFieldName, AdvncdPlngFilterSelectionID, AdvncdPlngFilterFieldName, AdvncdPlngFilterSelectionID.

Data Sources (5)

SourceAliasJoin Type
/sapapo/fields_t filter from
I_AdvncdPlngSimulationVers SimVers union_all
I_AdvncdPlngSimulationVers SimVers union_all
P_AdvncdPlngTimeProfileCalDte TimeProfile inner
P_AdvncdPlngTimeProfileCalDte TimeProfile inner

Annotations (8)

NameValueLevelField
AccessControl.authorizationCheck #NOT_REQUIRED view
EndUserText.label calculate saved simulation filters view
Metadata.ignorePropagatedAnnotations true view
ObjectModel.usageType.serviceQuality #X view
ObjectModel.usageType.sizeCategory #S view
ObjectModel.usageType.dataClass #MIXED view
VDM.private true view
VDM.viewType #COMPOSITE view

Fields (19)

KeyFieldSource TableSource FieldDescription
KEY SimulationSessionUUID /sapapo/fields_t simsessid Sim. Session
KEY fieldnameendasAdvncdPlngFilterFieldName
KEY AdvncdPlngFilterSelectionID /sapapo/fields_t counter Version
AdvncdPlngFilterSelSignValue /sapapo/fields_t sign Type of SIGN component in row type of a Ranges type
AdvncdPlngFilterSelOptionValue /sapapo/fields_t optionset Operator
AdvncdPlngFilterSelLowValue /sapapo/fields_t low
SimulationSessionUUID Sim. Session
KEY AdvncdPlngFilterFieldName
KEY AdvncdPlngFilterSelectionID Version
AdvncdPlngFilterSelSignValue Type of SIGN component in row type of a Ranges type
AdvncdPlngFilterSelOptionValue Operator
AdvncdPlngFilterSelLowValue P_AdvncdPlngTimeProfileCalDte AdvncdPlngEvalHorizonStartDate
SimulationSessionUUID Sim. Session
KEY AdvncdPlngFilterFieldName
KEY AdvncdPlngFilterSelectionID Version
AdvncdPlngFilterSelSignValue Type of SIGN component in row type of a Ranges type
AdvncdPlngFilterSelOptionValue Operator
AdvncdPlngFilterSelLowValue P_AdvncdPlngTimeProfileCalDte AdvncdPlngPlngHorizonStartDate
AdvncdPlngFilterSelHighValue P_AdvncdPlngTimeProfileCalDte AdvncdPlngPlngHorizonEndDate

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_AdvncdPlngCalcSimlnFltrs.
-- 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_AdvncdPlngCalcSimlnFltrs AS
SELECT
  filter.simsessid AS SimulationSessionUUID,
  case filter.fieldname when 'RES_NAME' then 'AdvncdPlngResourceName' when 'MATNR' then 'AdvancedPlanningProductName' when 'RES_LOCNO' then 'Location' when 'LOCNO' then 'Location' when 'RES_PLANNER' then 'ResourcePlanner' when 'RES_TYPE' then 'ResourceCategory' when 'FINITE_PLANNING' then 'RsceIsRelevantForFinitePlng' when 'RES_SORT' then 'ResourceSortText' when 'IS_BOTTLENECK' then 'ResourceIsBottleNeck' when 'RRP_SEL_GROUP' then 'ProductPlanningGroup' when 'ORD_NR' then 'AdvncdPlngOrderInternalNumber' when 'OPR_NR' then 'AdvncdPlngOrderOperationNumber' when 'SIMVERS_NAME' then 'SimulationSessionName' when 'SIM_VERSION' then 'PlanningVersionExternal' when 'HORIZONDATETIME' then 'AdvncdPlngDisplayHorizonDteTme' else filter.fieldname end as AdvncdPlngFilterFieldName AS fieldnameendasAdvncdPlngFilterFieldName,
  filter.counter AS AdvncdPlngFilterSelectionID,
  filter.sign AS AdvncdPlngFilterSelSignValue,
  filter.optionset AS AdvncdPlngFilterSelOptionValue,
  filter.low AS AdvncdPlngFilterSelLowValue,
  'AdvncdPlngDisplayHorizonDte' AS AdvncdPlngFilterFieldName,
  TimeProfile.AdvncdPlngPlngHorizonEndDate AS AdvncdPlngFilterSelHighValue
FROM /sapapo/fields_t AS filter
INNER JOIN P_AdvncdPlngTimeProfileCalDte AS TimeProfile ON /* join condition not captured in parsed metadata */
-- UNION ALL with additional select branch(es): I_AdvncdPlngSimulationVers
;