P_Cfd_Selected_Scenario_Step
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)
| Source | Alias | Join 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)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [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)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | P_CFD_SEL_SCN_SP | view | |
| EndUserText.label | Custom Fields: Selected Scenario Step | view | |
| AccessControl.authorizationCheck | #NOT_ALLOWED | view |
Fields (9)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| 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]
;
Learn More
- CDS View Annotations — A Complete Guide
- What Is a CDS View in SAP S/4HANA?
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- CDS View Field Mapping and Associations
- Understanding the SAP S/4HANA Data Model
- CDS View Extensions and Custom Fields in SAP S/4HANA
- Released APIs and Stability Contracts in SAP S/4HANA
- BSEG to ACDOCA: The Universal Journal Migration
- Business Partner Migration: KNA1/LFA1 to BUT000
- Material Document Migration: MSEG/MKPF to MATDOC
- How to Find the Right CDS View for an SAP Table
- BW Extractor to CDS View Migration Guide
- S/4HANA CDS View Deprecation: What You Need to Know
- ABAP CDS View Tutorial — From Basics to Real-World Examples
- RAP and CDS Views — Building Transactional Apps in SAP S/4HANA
- Sales Document Status Migration: VBUP/VBUK Removal in S/4HANA
- CO Tables in S/4HANA: COEP, COBK, COSS, COSP to ACDOCA