P_Cfd_Selected_Scenario_Step

DDL: P_CFD_SELECTED_SCENARIO_STEP SQL: P_CFD_SEL_SCN_SP Type: view

Custom Fields: Selected Scenario Step

P_Cfd_Selected_Scenario_Step is a CDS View that provides data about "Custom Fields: Selected Scenario Step" in SAP S/4HANA. It reads from 3 data sources (P_Cfd_Available_Scenario_Step, P_Cfd_Rep_Current_Version, cfd_w_rep_scn_sp) and exposes 9 fields with key fields ExternalFieldName, ScenarioName, SequenceNumber. It has 2 associations to related views.

Data Sources (3)

SourceAliasJoin Type
P_Cfd_Available_Scenario_Step AvailableScenarioStep left_outer
P_Cfd_Rep_Current_Version CurrentVersion inner
cfd_w_rep_scn_sp SelectedScenarioStep from

Associations (2)

CardinalityTargetAliasCondition
[1] cfd_w_rep_scn ScenarioRepository ScenarioRepository.name = $projection.FieldName and ScenarioRepository.scenario_name = $projection.ScenarioName and ScenarioRepository.version = CurrentVersion.version
[1] I_CFD_Release_Status _ReleaseStatus _ReleaseStatus.Code = $projection.ReleaseStatus

Annotations (3)

NameValueLevelField
AbapCatalog.sqlViewName P_CFD_SEL_SCN_SP view
EndUserText.label Custom Fields: Selected Scenario Step view
AccessControl.authorizationCheck #NOT_ALLOWED view

Fields (9)

KeyFieldSource TableSource FieldDescription
KEY ExternalFieldName P_Cfd_Rep_Current_Version externalName External Name
KEY ScenarioName cfd_w_rep_scn_sp scenario_name Scenario Name
KEY SequenceNumber cfd_w_rep_scn_sp sequence_number Sort Sequence
Name cfd_w_rep_scn_sp data_transfer_name Data Transfer Name
FieldName cfd_w_rep_scn_sp name Zone name
Version P_Cfd_Rep_Current_Version version XML Vers.
Availability P_Cfd_Available_Scenario_Step Availability Pkg. Release Status
ReleaseStatus P_Cfd_Available_Scenario_Step StepReleaseStatus
ReleaseStatusDescription

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_Cfd_Selected_Scenario_Step.
-- 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: P_CFD_SEL_SCN_SP

CREATE VIEW P_Cfd_Selected_Scenario_Step AS
SELECT
  CurrentVersion.externalName AS ExternalFieldName,
  SelectedScenarioStep.scenario_name AS ScenarioName,
  SelectedScenarioStep.sequence_number AS SequenceNumber,
  SelectedScenarioStep.data_transfer_name AS Name,
  SelectedScenarioStep.name AS FieldName,
  CurrentVersion.version AS Version,
  AvailableScenarioStep.Availability AS Availability,
  AvailableScenarioStep.StepReleaseStatus AS ReleaseStatus,
  _ReleaseStatus._Text[1: Language=$session.system_language].Description AS ReleaseStatusDescription
FROM cfd_w_rep_scn_sp AS SelectedScenarioStep
INNER JOIN P_Cfd_Rep_Current_Version AS CurrentVersion ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN P_Cfd_Available_Scenario_Step AS AvailableScenarioStep ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN cfd_w_rep_scn AS ScenarioRepository ON ScenarioRepository.name = FieldName AND ScenarioRepository.scenario_name = ScenarioName AND ScenarioRepository.version = CurrentVersion.version  -- association [1]
LEFT OUTER JOIN I_CFD_Release_Status AS _ReleaseStatus ON _ReleaseStatus.Code = ReleaseStatus  -- association [1]
;