I_CollateralAgreementRelshp
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
| Category | Collateral Agreement |
|---|---|
| Data Category | Dimension |
| Status | Released |
| Data Extraction Type | Delta enabled |
| Corresponding DataSource | ICAGREL |
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 .
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_rel | cms_rel | from |
Associations (12)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [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)
| Name | Value | Level | Field |
|---|---|---|---|
| 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)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| 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]
;
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