I_AgreementRelshpCalcData
Calculation Results for CAG Relations
I_AgreementRelshpCalcData (Basic)
Package: Explore, extend and adapt the SAP S/4HANA Cloud Public Edition with built-in and side-by-side extension capabilities.
Cross Applications
I_AgreementRelshpCalcData is a Basic CDS View (Cube) that provides data about "Calculation Results for CAG Relations" in SAP S/4HANA. It reads from 1 data source (cms_calc_rel) and exposes 25 fields with key field AgreementRelationshipUUID. It has 12 associations to related views. Part of development package CMS_VDM.
SAP API Hub
| Category | Basic |
|---|---|
| State | C1 |
| Line of Business | Cross Applications |
| Application Component | FS-CMS |
| Capabilities | Data Source for Data Extraction,Data Source in SQL Select,Association Target for Defining CDS Entities,Data Source for Defining CDS Entities |
| Extensible (Key User) | No |
| Extensible (Developer) | No |
| Release State (Key User) | Released |
| Release State (Developer) | Not Released |
| Package | Cross Applications for SAP S/4HANA Cloud Public Edition |
Documentation
- Analytics with CDS Views — Build Analytics for S/4HANA Cloud Public Edition ABAP CDS views replicated to SAP Cloud Platform
- CDS Views on SAP Business Accelerator Hub — Explore SAP S/4HANA Cloud Public Edition CDS Views on SAP Business Accelerator Hub
- Create CDS View as API — Create CDS views in SAP S/4HANA Cloud Public Edition and consume them as APIs
- Custom CDS Views — Access data using a Custom Core Data Service view (Custom CDS view)
- Custom Communication Scenarios — Create custom communication scenarios to configure custom communication arrangement
- Key User Extensibility Tools — The Key User Extensibility Tools of S/4HANA
- SAP S/4HANA Extensibility — SAP S/4HANA Extensibility Tutorial
- VDM View Types — The Virtual Data Model in SAP S/4HANA Cloud Public Edition
- View Browser — Search, browse and tag CDS Views
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| cms_calc_rel | cms_calc_rel | from |
Associations (12)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..*] | I_CollateralObjectCalcData | _CollateralObjectCalcData | $projection.AgreementRelationshipSrceUUID = _CollateralObjectCalcData.CollateralObjectUUID or $projection.AgreementRelationshipDestUUID = _CollateralObjectCalcData.CollateralObjectUUID |
| [0..*] | I_AgreementAssetCalcData | _AgreementAssetCalcData | $projection.AgreementRelationshipSrceUUID = _AgreementAssetCalcData.CollateralAgreementUUID or $projection.AgreementRelationshipDestUUID = _AgreementAssetCalcData.CollateralAgreementUUID |
| [0..*] | I_AgreementPortionCalcData | _AgreementPortionCalcData | $projection.AgreementRelationshipSrceUUID = _AgreementPortionCalcData.CollateralAgreementUUID or $projection.AgreementRelationshipDestUUID = _AgreementPortionCalcData.CollateralAgreementUUID |
| [0..*] | I_AgreementReceivableCalcData | _AgreementReceivableCalcData | $projection.AgreementRelationshipSrceUUID = _AgreementReceivableCalcData.CollateralAgreementUUID or $projection.AgreementRelationshipDestUUID = _AgreementReceivableCalcData.CollateralAgreementUUID |
| [0..*] | I_CollateralAgreementData | _CollateralAgreementData | $projection.AgreementRelationshipSrceUUID = _CollateralAgreementData.CollateralAgreementUUID or $projection.AgreementRelationshipDestUUID = _CollateralAgreementData.CollateralAgreementUUID |
| [0..*] | I_AgreementPortion | _AgreementPortion | $projection.AgreementRelationshipSrceUUID = _AgreementPortion.CollateralAgreementUUID or $projection.AgreementRelationshipDestUUID = _AgreementPortion.CollateralAgreementUUID |
| [0..*] | I_AgreementPartner | _AgreementPartner | $projection.AgreementRelationshipSrceUUID = _AgreementPartner.CollateralAgreementUUID or $projection.AgreementRelationshipDestUUID = _AgreementPartner.CollateralAgreementUUID |
| [0..*] | I_AgreementSpecialArrangement | _AgreementSpecialArrangement | $projection.AgreementRelationshipSrceUUID = _AgreementSpecialArrangement.AgrmtSpecialArrangementRefUUID or $projection.AgreementRelationshipDestUUID = _AgreementSpecialArrangement.AgrmtSpecialArrangementRefUUID |
| [0..*] | I_AgreementTerminationAndCost | _AgreementTerminationAndCost | $projection.AgreementRelationshipSrceUUID = _AgreementTerminationAndCost.AgreementTermnAndCostLinkUUID or $projection.AgreementRelationshipDestUUID = _AgreementTerminationAndCost.AgreementTermnAndCostLinkUUID |
| [0..*] | I_AssetAgreementLinkData | _AssetAgreementLinkData | $projection.AgreementRelationshipSrceUUID = _AssetAgreementLinkData.CollateralAgreementUUID or $projection.AgreementRelationshipDestUUID = _AssetAgreementLinkData.CollateralAgreementUUID |
| [0..1] | I_CollateralAgreementRelshp | _CollateralAgreementRelshp | $projection.AgreementRelationshipUUID = _CollateralAgreementRelshp.AgreementRelationshipUUID |
| [0..1] | I_Currency | _AgreementRelationshipCurrency | $projection.AgreementRelationshipCurrency = _AgreementRelationshipCurrency.Currency |
Annotations (17)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | ICAGRELCALCD | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AbapCatalog.preserveKey | true | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| AccessControl.personalData.blocking | #BLOCKED_DATA_EXCLUDED | view | |
| ObjectModel.usageType.serviceQuality | A | view | |
| ObjectModel.usageType.sizeCategory | XXL | view | |
| ObjectModel.usageType.dataClass | TRANSACTIONAL | view | |
| Metadata.ignorePropagatedAnnotations | true | view | |
| Metadata.allowExtensions | true | view | |
| Analytics.dataCategory | #CUBE | view | |
| Analytics.internalName | #LOCAL | view | |
| Analytics.dataExtraction.enabled | true | view | |
| Analytics.dataExtraction.delta.changeDataCapture.automatic | true | view | |
| VDM.viewType | #BASIC | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| EndUserText.label | Calculation Results for CAG Relations | view |
Fields (25)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | AgreementRelationshipUUID | rel_guid | GUID for Table CMS_REL | |
| AgreementRelationshipSrceUUID | source_guid | GUID for Table CMS_CAG | ||
| AgrmtRelshpSrceSecdryUUID | src_sec_guid | Relationship Source Secondary GUID | ||
| AgreementRelationshipDestUUID | destination_guid | GUID for Table CMS_CAG | ||
| CollateralConstellationUUID | con_guid | Constellation GUID | ||
| AgreementRelationshipCurrency | result_curr | Calculations Result Currency | ||
| AgrRelDistrdColltrlCurRskAmt | dist_col_val_c | Distributed Collateral value | ||
| AgrRelDistrdColltrlMaxRskAmt | dist_col_val_m | Distributed Collateral value | ||
| AgrRelDistrdColltrlCurRskPct | dist_cv_pct_c | Calculations Result as Pecentage | ||
| AgrRelDistrdColltrlMaxRskPct | dist_cv_pct_m | Calculations Result as Pecentage | ||
| AgrmtRelshpCalcLastChgdBy | last_chg_by | Last Changed by | ||
| AgrmtRelshpCalcLastChgdDate | last_chg_date | Date on which last change was done | ||
| AgrmtRelshpCalcLastChgdTime | last_chg_time | Time at which last change was made | ||
| _CollateralObjectCalcData | _CollateralObjectCalcData | |||
| _AgreementAssetCalcData | _AgreementAssetCalcData | |||
| _AgreementPortionCalcData | _AgreementPortionCalcData | |||
| _AgreementReceivableCalcData | _AgreementReceivableCalcData | |||
| _CollateralAgreementData | _CollateralAgreementData | |||
| _AgreementPortion | _AgreementPortion | |||
| _AgreementPartner | _AgreementPartner | |||
| _AgreementSpecialArrangement | _AgreementSpecialArrangement | |||
| _AgreementTerminationAndCost | _AgreementTerminationAndCost | |||
| _AssetAgreementLinkData | _AssetAgreementLinkData | |||
| _CollateralAgreementRelshp | _CollateralAgreementRelshp | |||
| _AgreementRelationshipCurrency | _AgreementRelationshipCurrency |
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 I_AgreementRelshpCalcData.
-- 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.
CREATE VIEW I_AgreementRelshpCalcData AS
SELECT
rel_guid AS AgreementRelationshipUUID,
source_guid AS AgreementRelationshipSrceUUID,
src_sec_guid AS AgrmtRelshpSrceSecdryUUID,
destination_guid AS AgreementRelationshipDestUUID,
con_guid AS CollateralConstellationUUID,
result_curr AS AgreementRelationshipCurrency,
dist_col_val_c AS AgrRelDistrdColltrlCurRskAmt,
dist_col_val_m AS AgrRelDistrdColltrlMaxRskAmt,
dist_cv_pct_c AS AgrRelDistrdColltrlCurRskPct,
dist_cv_pct_m AS AgrRelDistrdColltrlMaxRskPct,
last_chg_by AS AgrmtRelshpCalcLastChgdBy,
last_chg_date AS AgrmtRelshpCalcLastChgdDate,
last_chg_time AS AgrmtRelshpCalcLastChgdTime
FROM cms_calc_rel
LEFT OUTER JOIN I_CollateralObjectCalcData AS _CollateralObjectCalcData ON AgreementRelationshipSrceUUID = _CollateralObjectCalcData.CollateralObjectUUID OR AgreementRelationshipDestUUID = _CollateralObjectCalcData.CollateralObjectUUID -- association [0..*]
LEFT OUTER JOIN I_AgreementAssetCalcData AS _AgreementAssetCalcData ON AgreementRelationshipSrceUUID = _AgreementAssetCalcData.CollateralAgreementUUID OR AgreementRelationshipDestUUID = _AgreementAssetCalcData.CollateralAgreementUUID -- association [0..*]
LEFT OUTER JOIN I_AgreementPortionCalcData AS _AgreementPortionCalcData ON AgreementRelationshipSrceUUID = _AgreementPortionCalcData.CollateralAgreementUUID OR AgreementRelationshipDestUUID = _AgreementPortionCalcData.CollateralAgreementUUID -- association [0..*]
LEFT OUTER JOIN I_AgreementReceivableCalcData AS _AgreementReceivableCalcData ON AgreementRelationshipSrceUUID = _AgreementReceivableCalcData.CollateralAgreementUUID OR AgreementRelationshipDestUUID = _AgreementReceivableCalcData.CollateralAgreementUUID -- association [0..*]
LEFT OUTER JOIN I_CollateralAgreementData AS _CollateralAgreementData ON AgreementRelationshipSrceUUID = _CollateralAgreementData.CollateralAgreementUUID OR AgreementRelationshipDestUUID = _CollateralAgreementData.CollateralAgreementUUID -- association [0..*]
LEFT OUTER JOIN I_AgreementPortion AS _AgreementPortion ON AgreementRelationshipSrceUUID = _AgreementPortion.CollateralAgreementUUID OR AgreementRelationshipDestUUID = _AgreementPortion.CollateralAgreementUUID -- association [0..*]
LEFT OUTER JOIN I_AgreementPartner AS _AgreementPartner ON AgreementRelationshipSrceUUID = _AgreementPartner.CollateralAgreementUUID OR AgreementRelationshipDestUUID = _AgreementPartner.CollateralAgreementUUID -- association [0..*]
LEFT OUTER JOIN I_AgreementSpecialArrangement AS _AgreementSpecialArrangement ON AgreementRelationshipSrceUUID = _AgreementSpecialArrangement.AgrmtSpecialArrangementRefUUID OR AgreementRelationshipDestUUID = _AgreementSpecialArrangement.AgrmtSpecialArrangementRefUUID -- association [0..*]
LEFT OUTER JOIN I_AgreementTerminationAndCost AS _AgreementTerminationAndCost ON AgreementRelationshipSrceUUID = _AgreementTerminationAndCost.AgreementTermnAndCostLinkUUID OR AgreementRelationshipDestUUID = _AgreementTerminationAndCost.AgreementTermnAndCostLinkUUID -- association [0..*]
LEFT OUTER JOIN I_AssetAgreementLinkData AS _AssetAgreementLinkData ON AgreementRelationshipSrceUUID = _AssetAgreementLinkData.CollateralAgreementUUID OR AgreementRelationshipDestUUID = _AssetAgreementLinkData.CollateralAgreementUUID -- association [0..*]
LEFT OUTER JOIN I_CollateralAgreementRelshp AS _CollateralAgreementRelshp ON AgreementRelationshipUUID = _CollateralAgreementRelshp.AgreementRelationshipUUID -- association [0..1]
LEFT OUTER JOIN I_Currency AS _AgreementRelationshipCurrency ON AgreementRelationshipCurrency = _AgreementRelationshipCurrency.Currency -- association [0..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