P_FinalEvalProcedureKFAssgmt

DDL: P_FINALEVALPROCEDUREKFASSGMT SQL: PFNLPROKFASSGMT Type: view COMPOSITE

P_FinalEvalProcedureKFAssgmt is a Composite CDS View in SAP S/4HANA. It reads from 2 data sources (afwgo_eprock_h, afwgo_eprock_h) and exposes 5 fields with key fields RiskAnalyzerKeyFigure, EffectiveValidityStartDate, valdateendasEffectiveValidityEndDate.

Data Sources (2)

SourceAliasJoin Type
afwgo_eprock_h CurrentAssignmentVersion from
afwgo_eprock_h NextAssignmentVersion left_outer

Annotations (7)

NameValueLevelField
AbapCatalog.sqlViewName PFNLPROKFASSGMT view
ClientHandling.algorithm #SESSION_VARIABLE view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #NOT_REQUIRED view
AbapCatalog.preserveKey true view
VDM.viewType #COMPOSITE view
VDM.private true view

Fields (5)

KeyFieldSource TableSource FieldDescription
KEY RiskAnalyzerKeyFigure
KEY EffectiveValidityStartDate afwgo_eprock_h valdate Valid From
KEY valdateendasEffectiveValidityEndDate
SingleRecordProcedure
FinalResultProcedure afwgo_eprock_h evalproc2 Final Results Proc.

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_FinalEvalProcedureKFAssgmt.
-- 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: PFNLPROKFASSGMT

CREATE VIEW P_FinalEvalProcedureKFAssgmt AS
SELECT
  cast(CurrentAssignmentVersion.keyfigure as afwkf_definition_new) AS RiskAnalyzerKeyFigure,
  CurrentAssignmentVersion.valdate AS EffectiveValidityStartDate,
  case when NextAssignmentVersion.keyfigure is null then cast('99991231' as afw_valdate) else min(NextAssignmentVersion.valdate) end as EffectiveValidityEndDate AS valdateendasEffectiveValidityEndDate,
  cast(CurrentAssignmentVersion.evalproc1 as afwgo_evalproc_new) AS SingleRecordProcedure,
  CurrentAssignmentVersion.evalproc2 AS FinalResultProcedure
FROM afwgo_eprock_h AS CurrentAssignmentVersion
LEFT OUTER JOIN afwgo_eprock_h AS NextAssignmentVersion ON /* join condition not captured in parsed metadata */
;