I_AgreementTerminationAndCost

DDL: I_AGREEMENTTERMINATIONANDCOST Type: view BASIC

Agreement Termination and Cost Details

I_AgreementTerminationAndCost (Basic)

Package: Explore, extend and adapt the SAP S/4HANA Cloud Private Edition with built-in and side-by-side extension capabilities.

ColltrlAgrmtTerminationCost · Cross Applications

I_AgreementTerminationAndCost is a Basic CDS View (Dimension) that provides data about "Agreement Termination and Cost Details" in SAP S/4HANA. It reads from 1 data source (cms_cag_trmcst) and exposes 28 fields with key field AgrmtTerminationAndCostUUID. It has 16 associations to related views.

SAP Help Documentation

CategoryCollateral Agreement
Data CategoryDimension
StatusReleased
Data Extraction TypeDelta enabled
Corresponding DataSourceICAGTRMANDCST
Purpose
This CDS view provides the prerequisites to answer the following business question: What are the details of the agreement termination and cost?

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

Structure
Measures and attributes Some important measures and attributes are: AgrmtTerminationAndCostUUID AgreementTermnAndCostLinkUUID AgreementCostType AgreementCostDueDate AgreementTermnRightType AgreementTerminationReason AgrmtTerminationPossibleDate AgreementTerminationNoticedate AgrmtTermnAndCostAmt AgrmtTermnAndCostCrcy AgrmtTermnAndCostFrqcyUnit AgrmtTermnAndCostFrqcyPeriod

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

StateC1
Line of BusinessCross Applications
Application ComponentFS-CMS
CapabilitiesData Source in SQL Select, Association Target for Defining CDS Entities, Data Source for Data Extraction, Data Source for Defining CDS Entities
PackageCross 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 details of the agreement termination and cost?</p>

Documentation

Data Sources (1)

SourceAliasJoin Type
cms_cag_trmcst cms_cag_trmcst from

Associations (16)

CardinalityTargetAliasCondition
[0..1] I_CollateralAgreementData _CollateralAgreementData $projection.AgreementTermnAndCostLinkUUID = _CollateralAgreementData.CollateralAgreementUUID
[0..*] I_AgreementPortion _AgreementPortion $projection.AgreementTermnAndCostLinkUUID = _AgreementPortion.CollateralAgreementUUID
[0..1] I_AgreementPartner _AgreementPartner $projection.AgreementTermnAndCostLinkUUID = _AgreementPartner.AgreementPartnerUUID
[0..*] I_AgreementSpecialArrangement _AgreementSpecialArrangement $projection.AgreementTermnAndCostLinkUUID = _AgreementSpecialArrangement.AgrmtSpecialArrangementRefUUID
[0..*] I_AssetAgreementLinkData _AssetAgreementLinkData $projection.AgreementTermnAndCostLinkUUID = _AssetAgreementLinkData.CollateralAgreementUUID
[0..*] I_CollateralAgreementRelshp _CollateralAgreementRelshp $projection.AgreementTermnAndCostLinkUUID = _CollateralAgreementRelshp.AgreementRelationshipSrceUUID or $projection.AgreementTermnAndCostLinkUUID = _CollateralAgreementRelshp.AgreementRelationshipDestUUID
[0..1] I_CollateralObjectCalcData _CollateralObjectCalcData $projection.AgreementTermnAndCostLinkUUID = _CollateralObjectCalcData.CollateralObjectUUID and _CollateralObjectCalcData.CollateralObjectType = 'CAG'
[0..*] I_AgreementAssetCalcData _AgreementAssetCalcData $projection.AgreementTermnAndCostLinkUUID = _AgreementAssetCalcData.CollateralAgreementUUID
[0..*] I_AgreementRelshpCalcData _AgreementRelshpCalcData $projection.AgreementTermnAndCostLinkUUID = _AgreementRelshpCalcData.AgreementRelationshipSrceUUID or $projection.AgreementTermnAndCostLinkUUID = _AgreementRelshpCalcData.AgreementRelationshipDestUUID
[0..*] I_AgreementPortionCalcData _AgreementPortionCalcData $projection.AgreementTermnAndCostLinkUUID = _AgreementPortionCalcData.CollateralAgreementUUID
[0..*] I_AgreementReceivableCalcData _AgreementReceivableCalcData $projection.AgreementTermnAndCostLinkUUID = _AgreementReceivableCalcData.CollateralAgreementUUID
[0..1] I_AgreementCostType _AgreementCostType $projection.AgreementCostType = _AgreementCostType.AgreementCostType
[0..1] I_AgreementTermnRightType _AgreementTermnRightType $projection.AgreementTermnRightType = _AgreementTermnRightType.AgreementTermnRightType
[0..1] I_CollateralAttributeIndType _AgreementTerminationReason $projection.AgreementTerminationReason = _AgreementTerminationReason.CollateralAttributeIndType and _AgreementTerminationReason.CollateralAttributeIndCat = 'CAG002'
[0..1] I_Currency _AgrmtTermnAndCostCrcy $projection.AgrmtTermnAndCostCrcy = _AgrmtTermnAndCostCrcy.Currency
[0..1] I_AgreementFrequencyUnit _AgrmtTermnAndCostFrqcyUnit $projection.AgrmtTermnAndCostFrqcyUnit = _AgrmtTermnAndCostFrqcyUnit.AgreementFrequencyUnit

Annotations (19)

NameValueLevelField
AbapCatalog.sqlViewName ICAGTRMANDCST 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 AgrmtTerminationAndCostUUID view
ObjectModel.sapObjectNodeType.name ColltrlAgrmtTerminationCost 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 Termination and Cost Details view

Fields (28)

KeyFieldSource TableSource FieldDescription
KEY AgrmtTerminationAndCostUUID trmcst_guid GUID for Table CMS_CAG_TRMCST
AgreementTermnAndCostLinkUUID link_guid Link Guid for table CMS_CAG_TRMCST
AgreementCostType cost_typ Cost Type of the Pool Agreement
AgreementCostDueDate cost_due_date Date by which the Compensation Amount must be Paid
AgreementTermnRightType term_right_typ Termination Right Type
AgreementTerminationReason term_reason Termination Type
AgrmtTerminationPossibleDate first_term_date First possible date of Termination by business partner
AgreementTerminationNoticeDate term_notice_date Date on which Termination Notice is sent by Business Partner
AgrmtTermnAndCostAmt amount Value Amount
AgrmtTermnAndCostCrcy currency Valuation Crcy
AgrmtTermnAndCostFrqcyUnit unit_freq The unit for period of frequency
AgrmtTermnAndCostFrqcyPeriod period_freq Period of frequency
_CollateralAgreementData _CollateralAgreementData
_AgreementPortion _AgreementPortion
_AgreementPartner _AgreementPartner
_AgreementSpecialArrangement _AgreementSpecialArrangement
_AssetAgreementLinkData _AssetAgreementLinkData
_CollateralAgreementRelshp _CollateralAgreementRelshp
_CollateralObjectCalcData _CollateralObjectCalcData
_AgreementAssetCalcData _AgreementAssetCalcData
_AgreementRelshpCalcData _AgreementRelshpCalcData
_AgreementPortionCalcData _AgreementPortionCalcData
_AgreementReceivableCalcData _AgreementReceivableCalcData
_AgreementCostType _AgreementCostType
_AgreementTermnRightType _AgreementTermnRightType
_AgreementTerminationReason _AgreementTerminationReason
_AgrmtTermnAndCostCrcy _AgrmtTermnAndCostCrcy
_AgrmtTermnAndCostFrqcyUnit _AgrmtTermnAndCostFrqcyUnit

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_AgreementTerminationAndCost.
-- 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_AgreementTerminationAndCost AS
SELECT
  trmcst_guid AS AgrmtTerminationAndCostUUID,
  link_guid AS AgreementTermnAndCostLinkUUID,
  cost_typ AS AgreementCostType,
  cost_due_date AS AgreementCostDueDate,
  term_right_typ AS AgreementTermnRightType,
  term_reason AS AgreementTerminationReason,
  first_term_date AS AgrmtTerminationPossibleDate,
  term_notice_date AS AgreementTerminationNoticeDate,
  amount AS AgrmtTermnAndCostAmt,
  currency AS AgrmtTermnAndCostCrcy,
  unit_freq AS AgrmtTermnAndCostFrqcyUnit,
  period_freq AS AgrmtTermnAndCostFrqcyPeriod
FROM cms_cag_trmcst
LEFT OUTER JOIN I_CollateralAgreementData AS _CollateralAgreementData ON AgreementTermnAndCostLinkUUID = _CollateralAgreementData.CollateralAgreementUUID  -- association [0..1]
LEFT OUTER JOIN I_AgreementPortion AS _AgreementPortion ON AgreementTermnAndCostLinkUUID = _AgreementPortion.CollateralAgreementUUID  -- association [0..*]
LEFT OUTER JOIN I_AgreementPartner AS _AgreementPartner ON AgreementTermnAndCostLinkUUID = _AgreementPartner.AgreementPartnerUUID  -- association [0..1]
LEFT OUTER JOIN I_AgreementSpecialArrangement AS _AgreementSpecialArrangement ON AgreementTermnAndCostLinkUUID = _AgreementSpecialArrangement.AgrmtSpecialArrangementRefUUID  -- association [0..*]
LEFT OUTER JOIN I_AssetAgreementLinkData AS _AssetAgreementLinkData ON AgreementTermnAndCostLinkUUID = _AssetAgreementLinkData.CollateralAgreementUUID  -- association [0..*]
LEFT OUTER JOIN I_CollateralAgreementRelshp AS _CollateralAgreementRelshp ON AgreementTermnAndCostLinkUUID = _CollateralAgreementRelshp.AgreementRelationshipSrceUUID OR AgreementTermnAndCostLinkUUID = _CollateralAgreementRelshp.AgreementRelationshipDestUUID  -- association [0..*]
LEFT OUTER JOIN I_CollateralObjectCalcData AS _CollateralObjectCalcData ON AgreementTermnAndCostLinkUUID = _CollateralObjectCalcData.CollateralObjectUUID AND _CollateralObjectCalcData.CollateralObjectType = 'CAG'  -- association [0..1]
LEFT OUTER JOIN I_AgreementAssetCalcData AS _AgreementAssetCalcData ON AgreementTermnAndCostLinkUUID = _AgreementAssetCalcData.CollateralAgreementUUID  -- association [0..*]
LEFT OUTER JOIN I_AgreementRelshpCalcData AS _AgreementRelshpCalcData ON AgreementTermnAndCostLinkUUID = _AgreementRelshpCalcData.AgreementRelationshipSrceUUID OR AgreementTermnAndCostLinkUUID = _AgreementRelshpCalcData.AgreementRelationshipDestUUID  -- association [0..*]
LEFT OUTER JOIN I_AgreementPortionCalcData AS _AgreementPortionCalcData ON AgreementTermnAndCostLinkUUID = _AgreementPortionCalcData.CollateralAgreementUUID  -- association [0..*]
LEFT OUTER JOIN I_AgreementReceivableCalcData AS _AgreementReceivableCalcData ON AgreementTermnAndCostLinkUUID = _AgreementReceivableCalcData.CollateralAgreementUUID  -- association [0..*]
LEFT OUTER JOIN I_AgreementCostType AS _AgreementCostType ON AgreementCostType = _AgreementCostType.AgreementCostType  -- association [0..1]
LEFT OUTER JOIN I_AgreementTermnRightType AS _AgreementTermnRightType ON AgreementTermnRightType = _AgreementTermnRightType.AgreementTermnRightType  -- association [0..1]
LEFT OUTER JOIN I_CollateralAttributeIndType AS _AgreementTerminationReason ON AgreementTerminationReason = _AgreementTerminationReason.CollateralAttributeIndType AND _AgreementTerminationReason.CollateralAttributeIndCat = 'CAG002'  -- association [0..1]
LEFT OUTER JOIN I_Currency AS _AgrmtTermnAndCostCrcy ON AgrmtTermnAndCostCrcy = _AgrmtTermnAndCostCrcy.Currency  -- association [0..1]
LEFT OUTER JOIN I_AgreementFrequencyUnit AS _AgrmtTermnAndCostFrqcyUnit ON AgrmtTermnAndCostFrqcyUnit = _AgrmtTermnAndCostFrqcyUnit.AgreementFrequencyUnit  -- association [0..1]
;