I_AgreementRelshpCalcData

DDL: I_AGREEMENTRELSHPCALCDATA Type: view BASIC Package: CMS_VDM

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

CategoryBasic
StateC1
Line of BusinessCross Applications
Application ComponentFS-CMS
CapabilitiesData 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
PackageCross Applications for SAP S/4HANA Cloud Public Edition

Documentation

Data Sources (1)

SourceAliasJoin Type
cms_calc_rel cms_calc_rel from

Associations (12)

CardinalityTargetAliasCondition
[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)

NameValueLevelField
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)

KeyFieldSource TableSource FieldDescription
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]
;