I_GrntoAgreementEnhancedCube
Grantor Agreement Enhanced - Cube
I_GrntoAgreementEnhancedCube (Composite)
Package: Explore, extend and adapt the SAP S/4HANA with built-in and side-by-side extension capabilities.
Public Sector
I_GrntoAgreementEnhancedCube is a Composite CDS View (Cube) that provides data about "Grantor Agreement Enhanced - Cube" in SAP S/4HANA. It reads from 1 data source (I_GrantorAgreementEnhanced) and exposes 90 fields with key fields BusinessObjectType, GrantorAgreement.
SAP Help Documentation
| Category | Grantor Management |
|---|---|
| Data Category | Cube |
Purpose
This CDS view retrieves grantor agreement data. It also retrieves the total of all its item amounts for authorized, holdback, cleared, released holdback, and billing request. The authorized amount observes clearings between advance payment items and related payment items according to the clearing strategy for the related program. For claim-based payments, the billing request amount from the related claim items is included. To help you decide which CDS view to use for your purposes, SAP has introduced the annotation ObjectModel.supportedCapabilities that indicates the most appropriate use cases for each CDS view. To find out what use cases are best supported by this CDS view, access the entry of the CDS view in the View Browser app and find the values for this annotation under the Annotation tab. For more information, see Supported Capabilities for CDS Views .
Prerequisites
Authorizations Users who want to use this CDS view must have the following authorization objects assigned: CRM_GAG (Authorization Object CRM Order - Bus. Obj: Grantor agreement) CRM_ORD_OE (Authorization Object CRM Order - Allowed Organ. Units) CRM_ORD_PR (Authorization Object CRM Order - Business Transaction Type) Alternatively, users who want to use this CDS view must have the authorization object CRM_ORD_OP (Authorization Object CRM Order - Own Documents) assigned to them, must have the authorization for partner function category 0008 ( Person Responsible ) and partner function 00000014 ( Employee Responsible ) assigned, and must be the Employee Responsible of the grantor agreement.
Structure
Important Fields Important fields in this view include the following: Field Name Description Measure or Attribute GrantorAgreement ID of the grantor agreement Attribute GrantorAgreementType Transaction type for the grantor agreement Attribute GrantorAuthorizedAmount Authorized amount Measure GrantorHoldbackAmount Holdback amount Measure GrantorClearedAmount Cleared amount Measure GrantorReleasedHoldbackAmount Released holdback amount Measure GrantorBillingRequestAmount Sum of the billing request amounts of all items Measure If you have activated the business function PSCD_GRANTOR in the system, the open and cleared amount of the related claim items is added for claim-based items and this CDS view is enhanced with the following fields: Field Name Description Measure or Attribute CAOpenAmountInLocalCrcy Open amount in local currency Measure CAClearedAmountInLocalCrcy Cleared amount in local currency Measure
Constraints
If your system already contains data created on release S/4HANA 2023 FPS01 or an earlier release, this CDS view doesn't display accurate data until you've run the silent data migration classes cl_sdm_grm_application , cl_sdm_grm_agreement , and cl_sdm_grm_claim . Therefore, if you're upgrading from a release older than S/4HANA 2023 FPS02 and have already created data in an older release of the system, you have to run these three silent data migration classes to ensure that you can start using this CDS view and its corresponding Fiori apps with accurate data.
This CDS view retrieves grantor agreement data. It also retrieves the total of all its item amounts for authorized, holdback, cleared, released holdback, and billing request. The authorized amount observes clearings between advance payment items and related payment items according to the clearing strategy for the related program. For claim-based payments, the billing request amount from the related claim items is included. To help you decide which CDS view to use for your purposes, SAP has introduced the annotation ObjectModel.supportedCapabilities that indicates the most appropriate use cases for each CDS view. To find out what use cases are best supported by this CDS view, access the entry of the CDS view in the View Browser app and find the values for this annotation under the Annotation tab. For more information, see Supported Capabilities for CDS Views .
Prerequisites
Authorizations Users who want to use this CDS view must have the following authorization objects assigned: CRM_GAG (Authorization Object CRM Order - Bus. Obj: Grantor agreement) CRM_ORD_OE (Authorization Object CRM Order - Allowed Organ. Units) CRM_ORD_PR (Authorization Object CRM Order - Business Transaction Type) Alternatively, users who want to use this CDS view must have the authorization object CRM_ORD_OP (Authorization Object CRM Order - Own Documents) assigned to them, must have the authorization for partner function category 0008 ( Person Responsible ) and partner function 00000014 ( Employee Responsible ) assigned, and must be the Employee Responsible of the grantor agreement.
Structure
Important Fields Important fields in this view include the following: Field Name Description Measure or Attribute GrantorAgreement ID of the grantor agreement Attribute GrantorAgreementType Transaction type for the grantor agreement Attribute GrantorAuthorizedAmount Authorized amount Measure GrantorHoldbackAmount Holdback amount Measure GrantorClearedAmount Cleared amount Measure GrantorReleasedHoldbackAmount Released holdback amount Measure GrantorBillingRequestAmount Sum of the billing request amounts of all items Measure If you have activated the business function PSCD_GRANTOR in the system, the open and cleared amount of the related claim items is added for claim-based items and this CDS view is enhanced with the following fields: Field Name Description Measure or Attribute CAOpenAmountInLocalCrcy Open amount in local currency Measure CAClearedAmountInLocalCrcy Cleared amount in local currency Measure
Constraints
If your system already contains data created on release S/4HANA 2023 FPS01 or an earlier release, this CDS view doesn't display accurate data until you've run the silent data migration classes cl_sdm_grm_application , cl_sdm_grm_agreement , and cl_sdm_grm_claim . Therefore, if you're upgrading from a release older than S/4HANA 2023 FPS02 and have already created data in an older release of the system, you have to run these three silent data migration classes to ensure that you can start using this CDS view and its corresponding Fiori apps with accurate data.
SAP API Hub
| State | C1 |
|---|---|
| Line of Business | Public Sector |
| Application Component | PSM-GM-GTR-GEN |
| Capabilities | Data Source in SQL Select, Data Provider for Analytical Queries, Data Source for Defining CDS Entities |
| Package | Public Sector for SAP S/4HANA |
| Description | <p>This CDS view retrieves grantor agreement data. It also retrieves the total of all its item amounts for authorized, holdback, cleared, released holdback, and billing request.</p> <p>The authorized amount observes clearings between advance payment items and related payment items according to the clearing strategy for the related program. For claim-based payments, the billing request amount from the related claim items is included.</p> <p>To help you decide which CDS view to use for your purposes, SAP has introduced the annotation ObjectModel.supportedCapabilities that indicates the most appropriate use cases for each CDS view. To find out what use cases are best supported by this CDS view, access the entry of the CDS view in the View Browser app and find the values for this annotation under the Annotation tab. For more information, see Supported Capabilities for CDS Views.</p> |
Documentation
- Analytics with CDS Views — Build Analytics for S/4HANA ABAP CDS views replicated to SAP Cloud Platform
- CDS Views on SAP Business Accelerator Hub — Explore SAP S/4HANA CDS Views on SAP Business Accelerator Hub
- Create CDS View as API — Create CDS views in SAP S/4HANA 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 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
- View Browser — Search, browse and tag CDS Views
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_GrantorAgreementEnhanced | I_GrantorAgreementEnhanced | from |
Annotations (12)
| Name | Value | Level | Field |
|---|---|---|---|
| EndUserText.label | Grantor Agreement Enhanced - Cube | view | |
| VDM.viewType | #COMPOSITE | view | |
| VDM.lifecycle.contract.type | #PUBLIC_LOCAL_API | view | |
| Analytics.dataCategory | #CUBE | view | |
| Analytics.internalName | #LOCAL | view | |
| AccessControl.authorizationCheck | #MANDATORY | view | |
| ObjectModel.usageType.dataClass | #MIXED | view | |
| ObjectModel.usageType.serviceQuality | #D | view | |
| ObjectModel.usageType.sizeCategory | #L | view | |
| ObjectModel.modelingPattern | #ANALYTICAL_CUBE | view | |
| Metadata.allowExtensions | true | view | |
| Metadata.ignorePropagatedAnnotations | true | view |
Fields (90)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | BusinessObjectType | BusinessObjectType | Business Trans. Cat. | |
| KEY | GrantorAgreement | GrantorAgreement | Grantor Agreement | |
| GrantorAgreementUUID | GrantorAgreementUUID | GUID of a CRM Order Object | ||
| GrantorAgreementCharUUID | GrantorAgreementCharUUID | 32 Character CRM Object GUID | ||
| GrantorAgreementType | GrantorAgreementType | Business Transaction Type | ||
| DocumentDescription | DocumentDescription | Transaction Description | ||
| Language | Language | Language Key of Description | ||
| PostingDate | PostingDate | Posting Date for a Business Transaction | ||
| CreationDateTime | CreationDateTime | Created At | ||
| CreatedByUser | CreatedByUser | User that Created the Transaction | ||
| LastChangeDateTime | LastChangeDateTime | Changed At | ||
| LastChangedByUser | LastChangedByUser | Transaction Last Changed By | ||
| PricingDocument | PricingDocument | Number of the Document Condition | ||
| PricingProcedure | PricingProcedure | Procedure (Pricing, Output Control, Acct. Det., Costing,...) | ||
| GrantorDocumentGrantee | GrantorDocumentGrantee | Grantee | ||
| GrntoDocGranteeAddressNumber | GrntoDocGranteeAddressNumber | Address Number | ||
| GranteeCountry | _GranteeAddress | Country | Country/Region Key | |
| GrntoDocResponsibleEmployee | GrntoDocResponsibleEmployee | Employee Responsible | ||
| GrantorDocumentContactPerson | GrantorDocumentContactPerson | Customer Contact Person | ||
| GrantorDocumentBillToParty | GrantorDocumentBillToParty | Bill-To Party | ||
| GrantorDocumentPayer | GrantorDocumentPayer | Payer | ||
| GrntoDocumentPaymentRecipient | GrntoDocumentPaymentRecipient | Payment Recipient | ||
| DocumentStartDateTime | DocumentStartDateTime | Time Dependency: Validity Start Date | ||
| DocumentStartDate | DocumentStartDate | Grantor Valid From Date | ||
| DocumentEndDateTime | DocumentEndDateTime | Time Dependency: Validity End Date | ||
| DocumentEndDate | DocumentEndDate | Grantor Valid To Date | ||
| GrantorAgreementStatus | GrantorAgreementStatus | Life Cycle Status | ||
| IsReleased | IsReleased | Release Status | ||
| IsOpen | IsOpen | Status "Open" | ||
| HasError | HasError | Error Status | ||
| IsRejected | IsRejected | Indicator for document is rejected | ||
| GrantorDocIsSuccessfullyTrnsfd | GrantorDocIsSuccessfullyTrnsfd | Grantor Management: Status Transferred | ||
| GrantorDocHasTransferError | GrantorDocHasTransferError | Grantor Management: Status Transfer failed | ||
| GrantorDocumentIsCancelled | GrantorDocumentIsCancelled | Grantor Management: Status Cancelled | ||
| SalesOrganizationOrgUnitID | SalesOrganizationOrgUnitID | Sales Organization ID | ||
| SalesOfficeOrgUnitID | SalesOfficeOrgUnitID | Sales Office | ||
| SalesGroupOrgUnitID | SalesGroupOrgUnitID | Sales Group | ||
| DistributionChannel | DistributionChannel | Distribution Channel | ||
| Division | Division | Internal Division ID | ||
| ServiceOrganization | ServiceOrganization | Service Organization | ||
| ResponsibleServiceOrganization | ResponsibleServiceOrganization | Organizational Unit (Service) | ||
| ResponsibleSalesOrganization | ResponsibleSalesOrganization | Organizational Unit (Sales) | ||
| SalesOrganization | SalesOrganization | Sales Organization | ||
| SalesOffice | SalesOffice | Sales Office | ||
| SalesGroup | SalesGroup | Sales Group | ||
| CompanyCodeCurrency | Currency Key | |||
| GrantorProgram | GrantorProgram | External Identifier of a Grantor Program | ||
| GrantorProgramType | _GrantorProgram | GrantorProgramType | Grantor Program Type | |
| GrantorApplication | GrantorApplication | Grantor Application | ||
| TransactionCurrency | TransactionCurrency | Transaction Currency | ||
| ContractAccount | ContractAccount | Contract Account Number | ||
| GrantorAuthorizedAmount | _GrantorAgreementAmounts | GrantorAuthorizedAmount | Grantor Authorized Amount | |
| GrantorHoldbackAmount | _GrantorAgreementAmounts | GrantorHoldbackAmount | Grantor Holdback Amount | |
| GrantorClearedAmount | _GrantorAgreementAmounts | GrantorClearedAmount | Grantor Cleared Amount | |
| GrantorReleasedHoldbackAmount | _GrantorAgreementAmounts | GrantorReleasedHoldbackAmount | Grantor Released Holdback Amount | |
| GrantorBillingRequestAmount | _GrantorAgreementAmounts | GrantorBillingRequestAmount | Grantor Billing Request Amount | |
| _BusinessObjectType | _BusinessObjectType | |||
| _GrantorProgram | _GrantorProgram | |||
| _GrantorProgramType | _GrantorProgram | _GrantorProgramType | ||
| _GrantorAgreementItem | _GrantorAgreementItem | |||
| _ContractAccount | _ContractAccount | |||
| _GrantorAgreementType | _GrantorAgreementType | |||
| _TransactionCurrency | _TransactionCurrency | |||
| _GrantorAgrmtLifecycleStatus | _GrantorAgrmtLifecycleStatus | |||
| _GrantorAgreementHasError | _GrantorAgreementHasError | |||
| _GrantorAgreementIsOpen | _GrantorAgreementIsOpen | |||
| _GrantorAgreementIsReleased | _GrantorAgreementIsReleased | |||
| _GrantorAgreementIsRejected | _GrantorAgreementIsRejected | |||
| _GrantorDocumentIsCancelled | _GrantorDocumentIsCancelled | |||
| _GrantorDocHasTransferError | _GrantorDocHasTransferError | |||
| _GrntoDocIsSuccessfullyTrnsfd | _GrntoDocIsSuccessfullyTrnsfd | |||
| _GrantorDocumentBillToParty | _GrantorDocumentBillToParty | |||
| _GrantorDocumentContactPerson | _GrantorDocumentContactPerson | |||
| _GrantorDocumentGrantee | _GrantorDocumentGrantee | |||
| _GranteeAddress | _GranteeAddress | |||
| _GranteeCountry | _GranteeCountry | |||
| _GrantorDocumentPayer | _GrantorDocumentPayer | |||
| _GrntoDocResponsibleEmployee | _GrntoDocResponsibleEmployee | |||
| _GrntoDocumentPaymentRecipient | _GrntoDocumentPaymentRecipient | |||
| _RespSrvcOrganizationOrgUnit | _RespSrvcOrganizationOrgUnit | |||
| _SalesGroup | _SalesGroup | |||
| _SalesGroupOrgUnit | _SalesGroupOrgUnit | |||
| _SalesOffice | _SalesOffice | |||
| _SalesOfficeOrgUnit | _SalesOfficeOrgUnit | |||
| _SalesOrganization | _SalesOrganization | |||
| _SalesOrganizationOrgUnit | _SalesOrganizationOrgUnit | |||
| _ServiceOrganizationOrgUnit | _ServiceOrganizationOrgUnit | |||
| _DistributionChannel | _DistributionChannel | |||
| _Division | _Division | |||
| _CompanyCodeCurrency | _CompanyCodeCurrency |
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_GrntoAgreementEnhancedCube.
-- 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_GrntoAgreementEnhancedCube AS
SELECT
BusinessObjectType,
GrantorAgreement,
GrantorAgreementUUID,
GrantorAgreementCharUUID,
GrantorAgreementType,
DocumentDescription,
Language,
PostingDate,
CreationDateTime,
CreatedByUser,
LastChangeDateTime,
LastChangedByUser,
PricingDocument,
PricingProcedure,
GrantorDocumentGrantee,
GrntoDocGranteeAddressNumber,
_GranteeAddress.Country AS GranteeCountry,
GrntoDocResponsibleEmployee,
GrantorDocumentContactPerson,
GrantorDocumentBillToParty,
GrantorDocumentPayer,
GrntoDocumentPaymentRecipient,
DocumentStartDateTime,
DocumentStartDate,
DocumentEndDateTime,
DocumentEndDate,
GrantorAgreementStatus,
IsReleased,
IsOpen,
HasError,
IsRejected,
GrantorDocIsSuccessfullyTrnsfd,
GrantorDocHasTransferError,
GrantorDocumentIsCancelled,
SalesOrganizationOrgUnitID,
SalesOfficeOrgUnitID,
SalesGroupOrgUnitID,
DistributionChannel,
Division,
ServiceOrganization,
ResponsibleServiceOrganization,
ResponsibleSalesOrganization,
SalesOrganization,
SalesOffice,
SalesGroup,
_SalesOrganization._CompanyCode.Currency AS CompanyCodeCurrency,
GrantorProgram,
_GrantorProgram.GrantorProgramType AS GrantorProgramType,
GrantorApplication,
TransactionCurrency,
ContractAccount,
_GrantorAgreementAmounts.GrantorAuthorizedAmount AS GrantorAuthorizedAmount,
_GrantorAgreementAmounts.GrantorHoldbackAmount AS GrantorHoldbackAmount,
_GrantorAgreementAmounts.GrantorClearedAmount AS GrantorClearedAmount,
_GrantorAgreementAmounts.GrantorReleasedHoldbackAmount AS GrantorReleasedHoldbackAmount,
_GrantorAgreementAmounts.GrantorBillingRequestAmount AS GrantorBillingRequestAmount,
_GrantorProgram._GrantorProgramType AS _GrantorProgramType
FROM I_GrantorAgreementEnhanced
;
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