I_AgreementPartner
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
| Category | Collateral Agreement |
|---|---|
| Data Category | Dimension |
| Status | Released |
| Data Extraction Type | Delta enabled |
| Corresponding DataSource | ICAGPARTNER |
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 .
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 is the relationship of the agreement business partner?</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_cag_bp | cms_cag_bp | from |
Associations (14)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [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)
| Name | Value | Level | Field |
|---|---|---|---|
| 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)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| 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]
;
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