C_MKT_PredictiveScenario
Predictive Scenarios
C_MKT_PredictiveScenario is a Consumption CDS View that provides data about "Predictive Scenarios" in SAP S/4HANA. It reads from 1 data source (I_MKT_PredictiveScenario) and exposes 31 fields with key fields PredictiveScenario, PredictiveScenarioVersion. It has 8 associations to related views. Part of development package CUAN_CDS_PREDICTIVE_SCENARIO.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_MKT_PredictiveScenario | PredictiveScenario | from |
Associations (8)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..*] | C_MKT_PrdtvScenImplmtn | _PredictiveScenImplementation | $projection.PredictiveScenario = _PredictiveScenImplementation.PredictiveScenario and $projection.PredictiveScenarioVersion = _PredictiveScenImplementation.PredictiveScenarioVersion |
| [0..*] | C_MKT_PrdtvScenAttribute | _PredictiveScenAttribute | $projection.PredictiveScenario = _PredictiveScenAttribute.PredictiveScenario and $projection.PredictiveScenarioVersion = _PredictiveScenAttribute.PredictiveScenarioVersion |
| [0..*] | C_MKT_PrdtvScenParameter | _PredictiveScenParameter | $projection.PredictiveScenario = _PredictiveScenParameter.PredictiveScenario and $projection.PredictiveScenarioVersion = _PredictiveScenParameter.PredictiveScenarioVersion |
| [0..*] | C_MKT_PrdtvScenClntAppl | _PredictiveScenClntApplication | $projection.PredictiveScenario = _PredictiveScenClntApplication.PredictiveScenario and $projection.PredictiveScenarioVersion = _PredictiveScenClntApplication.PredictiveScenarioVersion |
| [0..*] | C_MKT_PrdtvScenValRank | _PredictiveScenValueRank | $projection.PredictiveScenario = _PredictiveScenValueRank.PredictiveScenario and $projection.PredictiveScenarioVersion = _PredictiveScenValueRank.PredictiveScenarioVersion |
| [0..*] | C_MKT_PrdtvScenTargetAttrib | _PredictiveScenTargetAttribute | $projection.PredictiveScenario = _PredictiveScenTargetAttribute.PredictiveScenario and $projection.PredictiveScenarioVersion = _PredictiveScenTargetAttribute.PredictiveScenarioVersion |
| [0..*] | C_MKT_PredictiveScenName | _PredictiveScenName | $projection.PredictiveScenario = _PredictiveScenName.PredictiveScenario and $projection.PredictiveScenarioVersion = _PredictiveScenName.PredictiveScenarioVersion |
| [0..*] | C_MKT_PrdtvScenSegmtnObject | _PredictiveScenSegmtnObject | $projection.PredictiveScenario = _PredictiveScenSegmtnObject.PredictiveScenario and $projection.PredictiveScenarioVersion = _PredictiveScenSegmtnObject.PredictiveScenarioVersion |
Annotations (20)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | CMKTPREDSCEN | view | |
| EndUserText.label | Predictive Scenarios | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| ObjectModel.compositionRoot | true | view | |
| ObjectModel.transactionalProcessingDelegated | true | view | |
| ObjectModel.createEnabled | true | view | |
| ObjectModel.updateEnabled | EXTERNAL_CALCULATION | view | |
| ObjectModel.deleteEnabled | EXTERNAL_CALCULATION | view | |
| ObjectModel.usageType.dataClass | #MASTER | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| ObjectModel.usageType.sizeCategory | #L | view | |
| Search.searchable | true | view | |
| UI.headerInfo.typeName | Predictive Scenario | view | |
| UI.headerInfo.typeNamePlural | Predictive Scenarios | view | |
| UI.headerInfo.title.value | PredictiveScenario | view | |
| UI.headerInfo.description.value | PredictiveScenario | view | |
| UI.presentationVariant.sortOrder.by | PredictiveScenario | view | |
| VDM.viewType | #CONSUMPTION | view |
Fields (31)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | PredictiveScenario | I_MKT_PredictiveScenario | PredictiveScenario | |
| KEY | PredictiveScenarioVersion | I_MKT_PredictiveScenario | PredictiveScenarioVersion | |
| PredictiveScenarioName | ||||
| PredictiveScenarioType | I_MKT_PredictiveScenario | PredictiveScenarioType | ||
| PersistenceAlias | I_MKT_PredictiveScenario | PersistenceAlias | ||
| PredictiveScenarioView | I_MKT_PredictiveScenario | PredictiveScenarioView | ||
| PredictiveScenarioScoreColumn | I_MKT_PredictiveScenario | PredictiveScenarioScoreColumn | ||
| PredictiveDataSourceView | I_MKT_PredictiveScenario | PredictiveDataSourceView | ||
| PrdtvDataSourceViewPackage | I_MKT_PredictiveScenario | PrdtvDataSourceViewPackage | ||
| PrdtvDataSourceViewID | I_MKT_PredictiveScenario | PrdtvDataSourceViewID | ||
| PredictiveDataSourceKeyColumn | I_MKT_PredictiveScenario | PredictiveDataSourceKeyColumn | ||
| PredictiveScenarioStatus | I_MKT_PredictiveScenario | PredictiveScenarioStatus | ||
| PredictiveScenarioStatusName | ||||
| PrdtvScenDataSrceInterfaceVers | I_MKT_PredictiveScenario | PrdtvScenDataSrceInterfaceVers | ||
| PrdtvDataSrceWrkgSetTableAlias | I_MKT_PredictiveScenario | PrdtvDataSrceWrkgSetTableAlias | ||
| PredictiveScenarioIcon | I_MKT_PredictiveScenario | PredictiveScenarioIcon | ||
| SegmentationObject | ||||
| SegmentationObjectName | ||||
| CreationDateTime | I_MKT_PredictiveScenario | CreationDateTime | Timestamp | |
| CreatedByUser | I_MKT_PredictiveScenario | CreatedByUser | User Name | |
| CreatedByUserName | ||||
| LastChangeDateTime | I_MKT_PredictiveScenario | LastChangeDateTime | Timestamp | |
| LastChangedByUserName | ||||
| _PredictiveScenImplementation | _PredictiveScenImplementation | |||
| _PredictiveScenAttribute | _PredictiveScenAttribute | |||
| _PredictiveScenParameter | _PredictiveScenParameter | |||
| _PredictiveScenClntApplication | _PredictiveScenClntApplication | |||
| _PredictiveScenValueRank | _PredictiveScenValueRank | |||
| _PredictiveScenTargetAttribute | _PredictiveScenTargetAttribute | |||
| _PredictiveScenName | _PredictiveScenName | |||
| _PredictiveScenSegmtnObject | _PredictiveScenSegmtnObject |
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 C_MKT_PredictiveScenario.
-- 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: CMKTPREDSCEN
CREATE VIEW C_MKT_PredictiveScenario AS
SELECT
PredictiveScenario.PredictiveScenario AS PredictiveScenario,
PredictiveScenario.PredictiveScenarioVersion AS PredictiveScenarioVersion,
PredictiveScenario._PredictiveScenarioText.PredictiveScenarioName AS PredictiveScenarioName,
PredictiveScenario.PredictiveScenarioType AS PredictiveScenarioType,
PredictiveScenario.PersistenceAlias AS PersistenceAlias,
PredictiveScenario.PredictiveScenarioView AS PredictiveScenarioView,
PredictiveScenario.PredictiveScenarioScoreColumn AS PredictiveScenarioScoreColumn,
PredictiveScenario.PredictiveDataSourceView AS PredictiveDataSourceView,
PredictiveScenario.PrdtvDataSourceViewPackage AS PrdtvDataSourceViewPackage,
PredictiveScenario.PrdtvDataSourceViewID AS PrdtvDataSourceViewID,
PredictiveScenario.PredictiveDataSourceKeyColumn AS PredictiveDataSourceKeyColumn,
PredictiveScenario.PredictiveScenarioStatus AS PredictiveScenarioStatus,
PredictiveScenario._PredictiveScenStatusText.PredictiveScenarioStatusName AS PredictiveScenarioStatusName,
PredictiveScenario.PrdtvScenDataSrceInterfaceVers AS PrdtvScenDataSrceInterfaceVers,
PredictiveScenario.PrdtvDataSrceWrkgSetTableAlias AS PrdtvDataSrceWrkgSetTableAlias,
PredictiveScenario.PredictiveScenarioIcon AS PredictiveScenarioIcon,
PredictiveScenario._PredictiveScenSegmtnObject.SegmentationObject AS SegmentationObject,
PredictiveScenario._PredictiveScenSegmtnObject._SegmentationObjectText.SegmentationObjectName AS SegmentationObjectName,
PredictiveScenario.CreationDateTime AS CreationDateTime,
PredictiveScenario.CreatedByUser AS CreatedByUser,
cast(PredictiveScenario._CreatedByUser.FullName as cuan_created_by preserving type) AS CreatedByUserName,
PredictiveScenario.LastChangeDateTime AS LastChangeDateTime,
cast(PredictiveScenario._LastChangedByUser.FullName as cuan_changed_by preserving type) AS LastChangedByUserName
FROM I_MKT_PredictiveScenario AS PredictiveScenario
LEFT OUTER JOIN C_MKT_PrdtvScenImplmtn AS _PredictiveScenImplementation ON PredictiveScenario = _PredictiveScenImplementation.PredictiveScenario AND PredictiveScenarioVersion = _PredictiveScenImplementation.PredictiveScenarioVersion -- association [0..*]
LEFT OUTER JOIN C_MKT_PrdtvScenAttribute AS _PredictiveScenAttribute ON PredictiveScenario = _PredictiveScenAttribute.PredictiveScenario AND PredictiveScenarioVersion = _PredictiveScenAttribute.PredictiveScenarioVersion -- association [0..*]
LEFT OUTER JOIN C_MKT_PrdtvScenParameter AS _PredictiveScenParameter ON PredictiveScenario = _PredictiveScenParameter.PredictiveScenario AND PredictiveScenarioVersion = _PredictiveScenParameter.PredictiveScenarioVersion -- association [0..*]
LEFT OUTER JOIN C_MKT_PrdtvScenClntAppl AS _PredictiveScenClntApplication ON PredictiveScenario = _PredictiveScenClntApplication.PredictiveScenario AND PredictiveScenarioVersion = _PredictiveScenClntApplication.PredictiveScenarioVersion -- association [0..*]
LEFT OUTER JOIN C_MKT_PrdtvScenValRank AS _PredictiveScenValueRank ON PredictiveScenario = _PredictiveScenValueRank.PredictiveScenario AND PredictiveScenarioVersion = _PredictiveScenValueRank.PredictiveScenarioVersion -- association [0..*]
LEFT OUTER JOIN C_MKT_PrdtvScenTargetAttrib AS _PredictiveScenTargetAttribute ON PredictiveScenario = _PredictiveScenTargetAttribute.PredictiveScenario AND PredictiveScenarioVersion = _PredictiveScenTargetAttribute.PredictiveScenarioVersion -- association [0..*]
LEFT OUTER JOIN C_MKT_PredictiveScenName AS _PredictiveScenName ON PredictiveScenario = _PredictiveScenName.PredictiveScenario AND PredictiveScenarioVersion = _PredictiveScenName.PredictiveScenarioVersion -- association [0..*]
LEFT OUTER JOIN C_MKT_PrdtvScenSegmtnObject AS _PredictiveScenSegmtnObject ON PredictiveScenario = _PredictiveScenSegmtnObject.PredictiveScenario AND PredictiveScenarioVersion = _PredictiveScenSegmtnObject.PredictiveScenarioVersion -- association [0..*]
;
Learn More
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- CDS View Annotations — A Complete Guide
- What Is a CDS View in SAP S/4HANA?
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- 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