C_ExpsrScenAssgmtBaseVH
Exposure Scenario Assignment
C_ExpsrScenAssgmtBaseVH is a Consumption CDS View that provides data about "Exposure Scenario Assignment" in SAP S/4HANA. It reads from 3 data sources (R_ExposureScenarioTP, I_ExpsrScenAnnexAssmtDraft, P_ExpsrScenAssmt) and exposes 13 fields with key fields PCESExposureScenarioUUID, CmplRqRsltUUID. It has 3 associations to related views.
Data Sources (3)
| Source | Alias | Join Type |
|---|---|---|
| R_ExposureScenarioTP | _ExposureScenario | from |
| I_ExpsrScenAnnexAssmtDraft | _ExpsrScenAnnexAssmtDraft | inner |
| P_ExpsrScenAssmt | _ExpsrScenAssmt | inner |
Parameters (1)
| Name | Type | Default |
|---|---|---|
| P_CmplRqRsltUUID | sysuuid_x |
Associations (3)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [1..1] | C_ExpsrScenGenDataTP | _ExpsrScenGenDat | _ExpsrScenGenDat.CmplRqRsltUUID = _ExpsrScenAssmt.CmplRqRsltUUID -- Link to processing status |
| [0..1] | I_PCPrptyProcgSts | _ProcessingStatus | $projection.CmplRqRsltProcessingStatus = _ProcessingStatus.PCPrptyProcgSts -- Link to Exposure Sceanrio Type |
| [1..1] | C_PCESExposureScenarioTypeVH | _ExposureScenarioType | $projection.PCESExposureScenarioType = _ExposureScenarioType.PCESExposureScenarioType |
Annotations (13)
| Name | Value | Level | Field |
|---|---|---|---|
| EndUserText.label | Exposure Scenario Assignment | view | |
| AbapCatalog.sqlViewName | CCRRESAGBSVH | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AbapCatalog.preserveKey | true | view | |
| AccessControl.authorizationCheck | #MANDATORY | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| VDM.viewType | #CONSUMPTION | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| ObjectModel.usageType.dataClass | #MIXED | view | |
| ObjectModel.usageType.sizeCategory | #L | view | |
| ObjectModel.representativeKey | PCESExposureScenarioUUID | view | |
| ObjectModel.dataCategory | #VALUE_HELP | view | |
| Metadata.ignorePropagatedAnnotations | true | view |
Fields (13)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | PCESExposureScenarioUUID | R_ExposureScenarioTP | PCESScenarioUUID | Scenario UUID |
| KEY | CmplRqRsltUUID | I_ExpsrScenAnnexAssmtDraft | CmplRqRsltUUID | SDS Assessment |
| CmplRqVersUUID | P_ExpsrScenAssmt | CmplRqVersUUID | NodeID | |
| ComplianceRequirement | R_ExposureScenarioTP | ComplianceRequirement | Compliance Requirement | |
| PCESExposureScenarioType | R_ExposureScenarioTP | PCESExposureScenarioType | Scenario Type | |
| PCESExposureScenarioTypeTxt | _ExposureScenarioType | PCESExposureScenarioTypeTxt | ||
| PCESShortTitlePhrs1UUID | _ExpsrScenGenDat | PCESShortTitlePhrs1UUID | Short Title | |
| PCESShortTitlePhrs2UUID | _ExpsrScenGenDat | PCESShortTitlePhrs2UUID | Short Title | |
| PCESShortTitlePhrs3UUID | _ExpsrScenGenDat | PCESShortTitlePhrs3UUID | Short Title | |
| PCESShortTitlePhrs4UUID | _ExpsrScenGenDat | PCESShortTitlePhrs4UUID | Short Title | |
| PCESShortTitlePhrs5UUID | _ExpsrScenGenDat | PCESShortTitlePhrs5UUID | Short Title | |
| PCESShortTitlePhrs6UUID | _ExpsrScenGenDat | PCESShortTitlePhrs6UUID | Short Title | |
| CmplRqRsltProcessingStatusName |
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_ExpsrScenAssgmtBaseVH.
-- 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: CCRRESAGBSVH
-- Parameters: P_CmplRqRsltUUID : sysuuid_x
CREATE VIEW C_ExpsrScenAssgmtBaseVH AS
SELECT
_ExposureScenario.PCESScenarioUUID AS PCESExposureScenarioUUID,
_ExpsrScenAnnexAssmtDraft.CmplRqRsltUUID AS CmplRqRsltUUID,
_ExpsrScenAssmt.CmplRqVersUUID AS CmplRqVersUUID,
_ExposureScenario.ComplianceRequirement AS ComplianceRequirement,
_ExposureScenario.PCESExposureScenarioType AS PCESExposureScenarioType,
_ExposureScenarioType.PCESExposureScenarioTypeTxt AS PCESExposureScenarioTypeTxt,
_ExpsrScenGenDat.PCESShortTitlePhrs1UUID AS PCESShortTitlePhrs1UUID,
_ExpsrScenGenDat.PCESShortTitlePhrs2UUID AS PCESShortTitlePhrs2UUID,
_ExpsrScenGenDat.PCESShortTitlePhrs3UUID AS PCESShortTitlePhrs3UUID,
_ExpsrScenGenDat.PCESShortTitlePhrs4UUID AS PCESShortTitlePhrs4UUID,
_ExpsrScenGenDat.PCESShortTitlePhrs5UUID AS PCESShortTitlePhrs5UUID,
_ExpsrScenGenDat.PCESShortTitlePhrs6UUID AS PCESShortTitlePhrs6UUID,
cast(_ProcessingStatus._Text[ 1: Language = 'E' ].PCPrptyProcgStsText as ehsds_es_status) AS CmplRqRsltProcessingStatusName
FROM R_ExposureScenarioTP AS _ExposureScenario
INNER JOIN I_ExpsrScenAnnexAssmtDraft AS _ExpsrScenAnnexAssmtDraft ON /* join condition not captured in parsed metadata */
INNER JOIN P_ExpsrScenAssmt AS _ExpsrScenAssmt ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN C_ExpsrScenGenDataTP AS _ExpsrScenGenDat ON _ExpsrScenGenDat.CmplRqRsltUUID = _ExpsrScenAssmt.CmplRqRsltUUID -- association [1..1]
LEFT OUTER JOIN I_PCPrptyProcgSts AS _ProcessingStatus ON CmplRqRsltProcessingStatus = _ProcessingStatus.PCPrptyProcgSts -- association [0..1]
LEFT OUTER JOIN C_PCESExposureScenarioTypeVH AS _ExposureScenarioType ON PCESExposureScenarioType = _ExposureScenarioType.PCESExposureScenarioType -- association [1..1]
;
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