I_CollateralAgreementRelshp

DDL: I_COLLATERALAGREEMENTRELSHP Type: view BASIC Package: CMS_VDM

Agreement Relationship Details

I_CollateralAgreementRelshp (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_CollateralAgreementRelshp is a Basic CDS View (Dimension) that provides data about "Agreement Relationship Details" in SAP S/4HANA. It reads from 1 data source (cms_rel) and exposes 23 fields with key field AgreementRelationshipUUID. It has 12 associations to related views. Part of development package CMS_VDM.

SAP Help Documentation

CategoryCollateral Agreement
Data CategoryDimension
StatusReleased
Data Extraction TypeDelta enabled
Corresponding DataSourceICAGREL
Purpose
This CDS view provides the prerequisites to answer the following business questions: What are the details of the agreement relationship?

Prerequisites
This CDS view inherits the authorization object from I_CollateralAgreementData (see below under Related Information ).

Structure
Measures and attributes Some important measures and attributes are: AgreementRelationshipUUID AgreementRelationshipType AgreementRelationshipSrceUUID AgrmtRelshpSrceSecdryUUID AgreementRelationshipDestUUID AgreementRelationshipValidFrom AgreementRelationshipValidTo AgrmtRelshpRankValue AgrmtRelshpPriorityValue AgreementRelationshipCalcType AgreementRelationshipObject

SAP Business Warehouse (SAP BW) Extraction
Note The corresponding DataSource (Extractor) and this CDS view may have different functionalities. For details about the DataSource, see the related documentation on the SAP Help Portal at https://help.sap.com/viewer/p/BI_CONTENT_757 under Use SAP Library BI Content .

View on SAP Help Portal →

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_rel cms_rel from

Associations (12)

CardinalityTargetAliasCondition
[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..*] I_CollateralObjectCalcData _CollateralObjectCalcData ( $projection.AgreementRelationshipSrceUUID = _CollateralObjectCalcData.CollateralObjectUUID or $projection.AgreementRelationshipDestUUID = _CollateralObjectCalcData.CollateralObjectUUID ) and _CollateralObjectCalcData.CollateralObjectType = 'CAG'
[0..*] I_AgreementAssetCalcData _AgreementAssetCalcData $projection.AgreementRelationshipSrceUUID = _AgreementAssetCalcData.CollateralAgreementUUID or $projection.AgreementRelationshipDestUUID = _AgreementAssetCalcData.CollateralAgreementUUID
[0..1] I_AgreementRelshpCalcData _AgreementRelshpCalcData $projection.AgreementRelationshipUUID = _AgreementRelshpCalcData.AgreementRelationshipUUID
[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..1] I_AgreementRelationshipType _AgreementRelationshipType $projection.AgreementRelationshipType = _AgreementRelationshipType.AgreementRelationshipType

Annotations (18)

NameValueLevelField
AbapCatalog.sqlViewName ICAGREL 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 L view
ObjectModel.usageType.dataClass MASTER view
ObjectModel.representativeKey AgreementRelationshipUUID view
Metadata.ignorePropagatedAnnotations true view
Metadata.allowExtensions true view
Analytics.dataCategory #DIMENSION 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 Agreement Relationship Details view

Fields (23)

KeyFieldSource TableSource FieldDescription
KEY AgreementRelationshipUUID rel_guid GUID for Table CMS_REL
AgreementRelationshipType rel_typ Relationship type
AgreementRelationshipSrceUUID source_guid Relationship Source GUID
AgrmtRelshpSrceSecdryUUID src_sec_guid Relationship Source Secondary GUID
AgreementRelationshipDestUUID destination_guid Relationship destination GUID
AgrmtRelshpValidFromDate Date
AgrmtRelshpValidToDate Date
AgrmtRelshpRankValue rel_rank Relationship Rank-Order of the source linked to destination
AgrmtRelshpPriorityValue rel_priority Priority of a Relationship
AgreementRelationshipCalcType calc_typ Calculation type for relations of collateral agreements
AgreementRelationshipObject rel_obj Relationship Object
_CollateralAgreementData _CollateralAgreementData
_AgreementPortion _AgreementPortion
_AgreementPartner _AgreementPartner
_AgreementSpecialArrangement _AgreementSpecialArrangement
_AgreementTerminationAndCost _AgreementTerminationAndCost
_AssetAgreementLinkData _AssetAgreementLinkData
_CollateralObjectCalcData _CollateralObjectCalcData
_AgreementAssetCalcData _AgreementAssetCalcData
_AgreementRelshpCalcData _AgreementRelshpCalcData
_AgreementPortionCalcData _AgreementPortionCalcData
_AgreementReceivableCalcData _AgreementReceivableCalcData
_AgreementRelationshipType _AgreementRelationshipType

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_CollateralAgreementRelshp.
-- 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_CollateralAgreementRelshp AS
SELECT
  rel_guid AS AgreementRelationshipUUID,
  rel_typ AS AgreementRelationshipType,
  source_guid AS AgreementRelationshipSrceUUID,
  src_sec_guid AS AgrmtRelshpSrceSecdryUUID,
  destination_guid AS AgreementRelationshipDestUUID,
  cast( substring(valid_from, 2, 8 ) as cms_dte_date ) AS AgrmtRelshpValidFromDate,
  cast( substring(valid_to, 2, 8 ) as cms_dte_date ) AS AgrmtRelshpValidToDate,
  rel_rank AS AgrmtRelshpRankValue,
  rel_priority AS AgrmtRelshpPriorityValue,
  calc_typ AS AgreementRelationshipCalcType,
  rel_obj AS AgreementRelationshipObject
FROM cms_rel
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_CollateralObjectCalcData AS _CollateralObjectCalcData ON ( AgreementRelationshipSrceUUID = _CollateralObjectCalcData.CollateralObjectUUID OR AgreementRelationshipDestUUID = _CollateralObjectCalcData.CollateralObjectUUID ) AND _CollateralObjectCalcData.CollateralObjectType = 'CAG'  -- association [0..*]
LEFT OUTER JOIN I_AgreementAssetCalcData AS _AgreementAssetCalcData ON AgreementRelationshipSrceUUID = _AgreementAssetCalcData.CollateralAgreementUUID OR AgreementRelationshipDestUUID = _AgreementAssetCalcData.CollateralAgreementUUID  -- association [0..*]
LEFT OUTER JOIN I_AgreementRelshpCalcData AS _AgreementRelshpCalcData ON AgreementRelationshipUUID = _AgreementRelshpCalcData.AgreementRelationshipUUID  -- association [0..1]
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_AgreementRelationshipType AS _AgreementRelationshipType ON AgreementRelationshipType = _AgreementRelationshipType.AgreementRelationshipType  -- association [0..1]
;