I_AgreementPartner

DDL: I_AGREEMENTPARTNER Type: view BASIC

Agreement Business Partner Relationship

I_AgreementPartner (Basic)

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

CollateralAgreementPartner · Cross Applications

I_AgreementPartner is a Basic CDS View (Dimension) that provides data about "Agreement Business Partner Relationship" in SAP S/4HANA. It reads from 1 data source (cms_cag_bp) and exposes 21 fields with key field AgreementPartnerUUID. It has 14 associations to related views.

SAP Help Documentation

CategoryCollateral Agreement
Data CategoryDimension
StatusReleased
Data Extraction TypeDelta enabled
Corresponding DataSourceICAGPARTNER
Purpose
This CDS view provides the prerequisites to answer the following business question: What is the relationship of the agreement business partner?

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: AgreementPartnerUUID CollateralAgreementUUID AgreementPortionUUID AgreementPartnerID AgreementPartnerFunction AgreementPartnerSignDate AgrmtPartnerAgrmtDisclosureDte

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 is the relationship of the agreement business partner?</p>

Documentation

Data Sources (1)

SourceAliasJoin Type
cms_cag_bp cms_cag_bp from

Associations (14)

CardinalityTargetAliasCondition
[0..1] I_CollateralAgreementData _CollateralAgreementData $projection.CollateralAgreementUUID = _CollateralAgreementData.CollateralAgreementUUID
[0..1] I_AgreementPortion _AgreementPortion $projection.AgreementPortionUUID = _AgreementPortion.AgreementPortionUUID
[0..*] I_AgreementSpecialArrangement _AgreementSpecialArrangement $projection.CollateralAgreementUUID = _AgreementSpecialArrangement.AgrmtSpecialArrangementRefUUID or $projection.AgreementPortionUUID = _AgreementSpecialArrangement.AgrmtSpecialArrangementRefUUID
[0..*] I_AgreementTerminationAndCost _AgreementTerminationAndCost $projection.CollateralAgreementUUID = _AgreementTerminationAndCost.AgreementTermnAndCostLinkUUID or $projection.AgreementPartnerUUID = _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_CollateralObjectCalcData _CollateralObjectCalcData $projection.CollateralAgreementUUID = _CollateralObjectCalcData.CollateralObjectUUID and _CollateralObjectCalcData.CollateralObjectType = 'CAG'
[0..*] I_AgreementAssetCalcData _AgreementAssetCalcData $projection.CollateralAgreementUUID = _AgreementAssetCalcData.CollateralAgreementUUID
[0..*] I_AgreementRelshpCalcData _AgreementRelshpCalcData $projection.CollateralAgreementUUID = _AgreementRelshpCalcData.AgreementRelationshipSrceUUID or $projection.CollateralAgreementUUID = _AgreementRelshpCalcData.AgreementRelationshipDestUUID
[0..1] I_AgreementPortionCalcData _AgreementPortionCalcData $projection.AgreementPortionUUID = _AgreementPortionCalcData.AgreementPortionUUID and $projection.CollateralAgreementUUID = _AgreementPortionCalcData.CollateralAgreementUUID
[0..*] I_AgreementReceivableCalcData _AgreementReceivableCalcData $projection.AgreementPortionUUID = _AgreementReceivableCalcData.AgreementPortionUUID and $projection.CollateralAgreementUUID = _AgreementReceivableCalcData.CollateralAgreementUUID
[0..1] I_CollateralPartnerFunction _AgreementPartnerFunction $projection.AgreementPartnerFunction = _AgreementPartnerFunction.CollateralPartnerFunction

Annotations (18)

NameValueLevelField
AbapCatalog.sqlViewName ICAGPARTNER 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 AgreementPartnerUUID 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 Business Partner Relationship view

Fields (21)

KeyFieldSource TableSource FieldDescription
KEY AgreementPartnerUUID cag_bp_guid GUID for Table CMS_CAG_BP
CollateralAgreementUUID cag_guid GUID for Table CMS_CAG
AgreementPortionUUID cag_por_guid GUID for Table CMS_CAG_POR
AgreementPartnerID Business Partner ID
AgreementPartnerFunction bpf Business Partner Function
AgreementPartnerSignDate sign_date Date on which Business Partner Signs an Agreement
AgrmtPartnerAgrmtDisclosureDte disclosure_date Date on which Business Partner is disclosed an agreement
_CollateralAgreementData _CollateralAgreementData
_AgreementPortion _AgreementPortion
_AgreementSpecialArrangement _AgreementSpecialArrangement
_AgreementTerminationAndCost _AgreementTerminationAndCost
_AgreementPortionRules _AgreementPortionRules
_AssetAgreementLinkData _AssetAgreementLinkData
_CollateralAgreementRelshp _CollateralAgreementRelshp
_AgreementReceivableLinkData _AgreementReceivableLinkData
_CollateralObjectCalcData _CollateralObjectCalcData
_AgreementAssetCalcData _AgreementAssetCalcData
_AgreementRelshpCalcData _AgreementRelshpCalcData
_AgreementPortionCalcData _AgreementPortionCalcData
_AgreementReceivableCalcData _AgreementReceivableCalcData
_AgreementPartnerFunction _AgreementPartnerFunction

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_AgreementPartner.
-- 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_AgreementPartner AS
SELECT
  cag_bp_guid AS AgreementPartnerUUID,
  cag_guid AS CollateralAgreementUUID,
  cag_por_guid AS AgreementPortionUUID,
  cast( bu_partnerid as cms_dte_bpid_vdm preserving type ) AS AgreementPartnerID,
  bpf AS AgreementPartnerFunction,
  sign_date AS AgreementPartnerSignDate,
  disclosure_date AS AgrmtPartnerAgrmtDisclosureDte
FROM cms_cag_bp
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  -- association [0..1]
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 OR AgreementPartnerUUID = _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_CollateralObjectCalcData AS _CollateralObjectCalcData ON CollateralAgreementUUID = _CollateralObjectCalcData.CollateralObjectUUID AND _CollateralObjectCalcData.CollateralObjectType = 'CAG'  -- 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_AgreementPortionCalcData AS _AgreementPortionCalcData ON AgreementPortionUUID = _AgreementPortionCalcData.AgreementPortionUUID AND CollateralAgreementUUID = _AgreementPortionCalcData.CollateralAgreementUUID  -- association [0..1]
LEFT OUTER JOIN I_AgreementReceivableCalcData AS _AgreementReceivableCalcData ON AgreementPortionUUID = _AgreementReceivableCalcData.AgreementPortionUUID AND CollateralAgreementUUID = _AgreementReceivableCalcData.CollateralAgreementUUID  -- association [0..*]
LEFT OUTER JOIN I_CollateralPartnerFunction AS _AgreementPartnerFunction ON AgreementPartnerFunction = _AgreementPartnerFunction.CollateralPartnerFunction  -- association [0..1]
;