I_AgreementPortionCalcData
Calculation Results for CAG Portions
I_AgreementPortionCalcData (Basic)
Package: Explore, extend and adapt the SAP S/4HANA Cloud Private Edition with built-in and side-by-side extension capabilities.
Cross Applications
I_AgreementPortionCalcData is a Basic CDS View (Cube) that provides data about "Calculation Results for CAG Portions" in SAP S/4HANA. It reads from 1 data source (cms_calc_cag_por) and exposes 25 fields with key fields AgreementPortionUUID, CollateralAgreementUUID. It has 14 associations to related views.
SAP Help Documentation
| Category | Collateral Agreement |
|---|---|
| Data Category | Cube |
| Status | Released |
| Data Extraction Type | Delta enabled |
| Corresponding DataSource | ICAGPORCALCD |
This CDS view provides the prerequisites to answer the following business question: What are the calculation results for the CAG portions?
Prerequisites
This CDS view inherits the authorization object from CDS view I_CollateralAgreementData . For more information, see the link below under Related Information .
Structure
Measures and attributes Some important measures and attributes are: AgreementPortionUUID CollateralAgreementUUID CollateralConstellationUUID CollateralAgreementPortionCrcy AgrmtPortnFreeColltrlMaxRskAmt AgrmtPortnFreeColltrlCurRskAmt AgrmtPortnFreeColltrlCurRskPct AgrmtPortnFreeColltrlMaxRskPct AgrmtPortnCalcLastChgdBy AgrmtPortnCalcLastChgdDate AgrmtPortnCalcLastChgdTime
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
| State | C1 |
|---|---|
| Line of Business | Cross Applications |
| Application Component | FS-CMS |
| Capabilities | Data Source in SQL Select, Association Target for Defining CDS Entities, Data Source for Data Extraction, Data Source for Defining CDS Entities |
| Package | Cross Applications for SAP S/4HANA Cloud Private Edition |
| Description | <p>This CDS view provides the prerequisites to answer the following business question: What are the calculation results for the CAG portions?</p> |
Documentation
- Analytics with CDS Views — Build Analytics for S/4HANA Cloud Private Edition ABAP CDS views replicated to SAP Cloud Platform
- CDS Views on SAP Business Accelerator Hub — Explore SAP S/4HANA Cloud Private Edition CDS Views on SAP Business Accelerator Hub
- Create CDS View as API — Create CDS views in SAP S/4HANA Cloud Private Edition and consume them as APIs
- Custom CDS Views — Access data using a Custom Core Data Service view (Custom CDS view)
- Key User Extensibility Tools — The Key User Extensibility Tools of S/4HANA
- SAP Extensibility Explorer for SAP S/4HANA Cloud Private Edition — Explore SAP S/4HANA Cloud Private Edition Extensibility options by leveraging the sample scenarios from SAP
- SAP S/4HANA Extensibility — SAP S/4HANA Extensibility Tutorial
- VDM View Types — The Virtual Data Model in SAP S/4HANA Cloud Private Edition
- View Browser — Search, browse and tag CDS Views
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| cms_calc_cag_por | cms_calc_cag_por | from |
Associations (14)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..1] | I_CollateralObjectCalcData | _CollateralObjectCalcData | $projection.CollateralAgreementUUID = _CollateralObjectCalcData.CollateralObjectUUID |
| [0..*] | I_AgreementAssetCalcData | _AgreementAssetCalcData | $projection.CollateralAgreementUUID = _AgreementAssetCalcData.CollateralAgreementUUID |
| [0..*] | I_AgreementRelshpCalcData | _AgreementRelshpCalcData | $projection.CollateralAgreementUUID = _AgreementRelshpCalcData.AgreementRelationshipSrceUUID or $projection.CollateralAgreementUUID = _AgreementRelshpCalcData.AgreementRelationshipDestUUID |
| [0..*] | I_AgreementReceivableCalcData | _AgreementReceivableCalcData | $projection.CollateralAgreementUUID = _AgreementReceivableCalcData.CollateralAgreementUUID and $projection.AgreementPortionUUID = _AgreementReceivableCalcData.AgreementPortionUUID |
| [0..1] | I_CollateralAgreementData | _CollateralAgreementData | $projection.CollateralAgreementUUID = _CollateralAgreementData.CollateralAgreementUUID |
| [0..1] | I_AgreementPortion | _AgreementPortion | $projection.AgreementPortionUUID = _AgreementPortion.AgreementPortionUUID and $projection.CollateralAgreementUUID = _AgreementPortion.CollateralAgreementUUID |
| [0..*] | I_AgreementPartner | _AgreementPartner | $projection.CollateralAgreementUUID = _AgreementPartner.CollateralAgreementUUID |
| [0..*] | I_AgreementSpecialArrangement | _AgreementSpecialArrangement | $projection.CollateralAgreementUUID = _AgreementSpecialArrangement.AgrmtSpecialArrangementRefUUID or $projection.AgreementPortionUUID = _AgreementSpecialArrangement.AgrmtSpecialArrangementRefUUID |
| [0..*] | I_AgreementTerminationAndCost | _AgreementTerminationAndCost | $projection.CollateralAgreementUUID = _AgreementTerminationAndCost.AgreementTermnAndCostLinkUUID |
| [0..*] | I_AgreementPortionRules | _AgreementPortionRules | $projection.AgreementPortionUUID = _AgreementPortionRules.AgreementPortionUUID |
| [0..*] | I_AssetAgreementLinkData | _AssetAgreementLinkData | $projection.CollateralAgreementUUID = _AssetAgreementLinkData.CollateralAgreementUUID |
| [0..*] | I_CollateralAgreementRelshp | _CollateralAgreementRelshp | $projection.CollateralAgreementUUID = _CollateralAgreementRelshp.AgreementRelationshipSrceUUID or $projection.CollateralAgreementUUID = _CollateralAgreementRelshp.AgreementRelationshipDestUUID |
| [0..*] | I_AgreementReceivableLinkData | _AgreementReceivableLinkData | $projection.AgreementPortionUUID = _AgreementReceivableLinkData.AgreementPortionUUID |
| [0..1] | I_Currency | _CollateralAgrmtPortionCrcy | $projection.CollateralAgreementPortionCrcy = _CollateralAgrmtPortionCrcy.Currency |
Annotations (17)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | ICAGPORCALCD | 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 Portions | view |
Fields (25)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | AgreementPortionUUID | cag_por_guid | GUID for Table CMS_CAG_POR | |
| KEY | CollateralAgreementUUID | cag_guid | GUID for Table CMS_CAG | |
| CollateralConstellationUUID | con_guid | Constellation GUID | ||
| CollateralAgreementPortionCrcy | result_curr | Calculations Result Currency | ||
| AgrmtPortnFreeColltrlMaxRskAmt | free_col_val_m | Free collateral calculation for CAG | ||
| AgrmtPortnFreeColltrlCurRskAmt | free_col_val_c | Free collateral calculation for CAG | ||
| AgrmtPortnFreeColltrlCurRskPct | free_coll_pct_c | Calculations Result as Percentage | ||
| AgrmtPortnFreeColltrlMaxRskPct | free_coll_pct_m | Calculations Result as Percentage | ||
| AgrmtPortnCalcLastChgdBy | last_chg_by | Last Changed by | ||
| AgrmtPortnCalcLastChgdDate | last_chg_date | Date on which last change was done | ||
| AgrmtPortnCalcLastChgdTime | last_chg_time | Time at which last change was made | ||
| _CollateralObjectCalcData | _CollateralObjectCalcData | |||
| _AgreementAssetCalcData | _AgreementAssetCalcData | |||
| _AgreementRelshpCalcData | _AgreementRelshpCalcData | |||
| _AgreementReceivableCalcData | _AgreementReceivableCalcData | |||
| _CollateralAgreementData | _CollateralAgreementData | |||
| _AgreementPortion | _AgreementPortion | |||
| _AgreementPartner | _AgreementPartner | |||
| _AgreementSpecialArrangement | _AgreementSpecialArrangement | |||
| _AgreementTerminationAndCost | _AgreementTerminationAndCost | |||
| _AgreementPortionRules | _AgreementPortionRules | |||
| _AssetAgreementLinkData | _AssetAgreementLinkData | |||
| _CollateralAgreementRelshp | _CollateralAgreementRelshp | |||
| _AgreementReceivableLinkData | _AgreementReceivableLinkData | |||
| _CollateralAgrmtPortionCrcy | _CollateralAgrmtPortionCrcy |
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_AgreementPortionCalcData.
-- 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_AgreementPortionCalcData AS
SELECT
cag_por_guid AS AgreementPortionUUID,
cag_guid AS CollateralAgreementUUID,
con_guid AS CollateralConstellationUUID,
result_curr AS CollateralAgreementPortionCrcy,
free_col_val_m AS AgrmtPortnFreeColltrlMaxRskAmt,
free_col_val_c AS AgrmtPortnFreeColltrlCurRskAmt,
free_coll_pct_c AS AgrmtPortnFreeColltrlCurRskPct,
free_coll_pct_m AS AgrmtPortnFreeColltrlMaxRskPct,
last_chg_by AS AgrmtPortnCalcLastChgdBy,
last_chg_date AS AgrmtPortnCalcLastChgdDate,
last_chg_time AS AgrmtPortnCalcLastChgdTime
FROM cms_calc_cag_por
LEFT OUTER JOIN I_CollateralObjectCalcData AS _CollateralObjectCalcData ON CollateralAgreementUUID = _CollateralObjectCalcData.CollateralObjectUUID -- association [0..1]
LEFT OUTER JOIN I_AgreementAssetCalcData AS _AgreementAssetCalcData ON CollateralAgreementUUID = _AgreementAssetCalcData.CollateralAgreementUUID -- association [0..*]
LEFT OUTER JOIN I_AgreementRelshpCalcData AS _AgreementRelshpCalcData ON CollateralAgreementUUID = _AgreementRelshpCalcData.AgreementRelationshipSrceUUID OR CollateralAgreementUUID = _AgreementRelshpCalcData.AgreementRelationshipDestUUID -- association [0..*]
LEFT OUTER JOIN I_AgreementReceivableCalcData AS _AgreementReceivableCalcData ON CollateralAgreementUUID = _AgreementReceivableCalcData.CollateralAgreementUUID AND AgreementPortionUUID = _AgreementReceivableCalcData.AgreementPortionUUID -- association [0..*]
LEFT OUTER JOIN I_CollateralAgreementData AS _CollateralAgreementData ON CollateralAgreementUUID = _CollateralAgreementData.CollateralAgreementUUID -- association [0..1]
LEFT OUTER JOIN I_AgreementPortion AS _AgreementPortion ON AgreementPortionUUID = _AgreementPortion.AgreementPortionUUID AND CollateralAgreementUUID = _AgreementPortion.CollateralAgreementUUID -- association [0..1]
LEFT OUTER JOIN I_AgreementPartner AS _AgreementPartner ON CollateralAgreementUUID = _AgreementPartner.CollateralAgreementUUID -- association [0..*]
LEFT OUTER JOIN I_AgreementSpecialArrangement AS _AgreementSpecialArrangement ON CollateralAgreementUUID = _AgreementSpecialArrangement.AgrmtSpecialArrangementRefUUID OR AgreementPortionUUID = _AgreementSpecialArrangement.AgrmtSpecialArrangementRefUUID -- association [0..*]
LEFT OUTER JOIN I_AgreementTerminationAndCost AS _AgreementTerminationAndCost ON CollateralAgreementUUID = _AgreementTerminationAndCost.AgreementTermnAndCostLinkUUID -- association [0..*]
LEFT OUTER JOIN I_AgreementPortionRules AS _AgreementPortionRules ON AgreementPortionUUID = _AgreementPortionRules.AgreementPortionUUID -- association [0..*]
LEFT OUTER JOIN I_AssetAgreementLinkData AS _AssetAgreementLinkData ON CollateralAgreementUUID = _AssetAgreementLinkData.CollateralAgreementUUID -- association [0..*]
LEFT OUTER JOIN I_CollateralAgreementRelshp AS _CollateralAgreementRelshp ON CollateralAgreementUUID = _CollateralAgreementRelshp.AgreementRelationshipSrceUUID OR CollateralAgreementUUID = _CollateralAgreementRelshp.AgreementRelationshipDestUUID -- association [0..*]
LEFT OUTER JOIN I_AgreementReceivableLinkData AS _AgreementReceivableLinkData ON AgreementPortionUUID = _AgreementReceivableLinkData.AgreementPortionUUID -- association [0..*]
LEFT OUTER JOIN I_Currency AS _CollateralAgrmtPortionCrcy ON CollateralAgreementPortionCrcy = _CollateralAgrmtPortionCrcy.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