P_ExpsrScenAssmt

DDL: P_EXPSRSCENASSMT SQL: PCRRESASSMT Type: view CONSUMPTION

P_ExpsrScenAssmt is a Consumption CDS View in SAP S/4HANA. It has 1 association to related views.

Associations (1)

CardinalityTargetAliasCondition
[1..1] I_ExposureScenario _ExposureScenario $projection.PCESExposureScenarioUUID = _ExposureScenario.PCESScenarioUUID

Annotations (6)

NameValueLevelField
AbapCatalog.sqlViewName PCRRESASSMT view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #NOT_REQUIRED view
ClientHandling.algorithm #SESSION_VARIABLE view
VDM.viewType #CONSUMPTION view
VDM.private true view

Fields (6)

KeyFieldSource TableSource FieldDescription
KEY PCESExposureScenarioUUID _ExpsrScenAssmt PCESScenarioUUID Scenario UUID
KEY ComplianceRequirement _ExpsrScenAssmt ComplianceRequirement Compliance Requirement
KEY CmplRqVersUUID _ExpsrScenAssmt CmplRqVersUUID NodeID
PCESScenarioType _ExposureScenario PCESScenarioType Scenario Type
PCESExposureScenarioType _ExposureScenario PCESExposureScenarioType Scenario Type
CmplRqRsltUUIDendasCmplRqRsltUUID

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_ExpsrScenAssmt.
-- 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: PCRRESASSMT

CREATE VIEW P_ExpsrScenAssmt AS
SELECT
  _ExpsrScenAssmt.PCESScenarioUUID AS PCESExposureScenarioUUID,
  _ExpsrScenAssmt.ComplianceRequirement AS ComplianceRequirement,
  _ExpsrScenAssmt.CmplRqVersUUID AS CmplRqVersUUID,
  _ExposureScenario.PCESScenarioType AS PCESScenarioType,
  _ExposureScenario.PCESExposureScenarioType AS PCESExposureScenarioType,
  case when _CmplRqRsltReleased.CmplRqRsltProcessingStatus = 'RE' then _CmplRqRsltReleased.CmplRqRsltUUID when _CmplRqRsltInProcess.CmplRqRsltProcessingStatus = 'IP' then _CmplRqRsltInProcess.CmplRqRsltUUID end as CmplRqRsltUUID AS CmplRqRsltUUIDendasCmplRqRsltUUID
LEFT OUTER JOIN I_ExposureScenario AS _ExposureScenario ON PCESExposureScenarioUUID = _ExposureScenario.PCESScenarioUUID  -- association [1..1]
;