I_Grant
Grant
I_Grant (Basic)
Package: Explore, extend and adapt the SAP S/4HANA Cloud Private Edition with built-in and side-by-side extension capabilities.
Grant · Cross Applications
I_Grant is a Basic CDS View (Dimension) that provides data about "Grant" in SAP S/4HANA. It reads from 1 data source (gmgr) and exposes 60 fields with key field GrantID. It has 23 associations to related views.
SAP Help Documentation
| Category | CDS Views for Master Data |
|---|---|
| Data Category | Dimension |
| Status | Released |
Purpose
This CDS view provides the prerequisites for answering the following business questions: What grant type is involved? Who is the sponsor of a grant? What is the lifecycle status of a grant?
Prerequisites
You have authorization to access specific grants based on the authorization object F_FIGM_GNT.
Structure
Object types This view is built on the business object: Grant
This CDS view provides the prerequisites for answering the following business questions: What grant type is involved? Who is the sponsor of a grant? What is the lifecycle status of a grant?
Prerequisites
You have authorization to access specific grants based on the authorization object F_FIGM_GNT.
Structure
Object types This view is built on the business object: Grant
SAP API Hub
| State | C1 |
|---|---|
| Line of Business | Cross Applications |
| Application Component | PSM-GM-GTE-MD |
| Capabilities | Analytical Dimension, Data Source for Data Extraction, Association Target for Defining CDS Entities |
| Package | Cross Applications for SAP S/4HANA Cloud Private Edition |
| Description | <p>This CDS view provides the master data for grants, which can be used to answer the following business questions:</p> <ul> <li><p>What grant type is involved?</p></li> <li><p>Who is the sponsor of a grant?</p></li> <li><p>What is the lifecycle status of a grant?</p></li> </ul> |
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 |
|---|---|---|
| gmgr | gmgr | from |
Associations (23)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [1..1] | E_Grant | _Extension | $projection.GrantID = _Extension.GrantID |
| [0..1] | I_CompanyCode | _CompanyCode | $projection.CompanyCode = _CompanyCode.CompanyCode |
| [0..*] | I_GrantText | _Text | $projection.GrantID = _Text.GrantID |
| [0..*] | I_GrantResponsibility | _GrantResponsibility | $projection.GrantID = _GrantResponsibility.GrantID |
| [0..1] | I_GteeMIndrctCostShrngRule | _IndirectCostSharingRule | $projection.GteeMIndrctCostShrngRule = _IndirectCostSharingRule.GteeMIndrctCostShrngRule |
| [0..1] | I_GranteeMgmtCostSharingRule | _CostSharingRule | $projection.GranteeMgmtCostSharingRule = _CostSharingRule.GranteeMgmtCostSharingRule |
| [0..1] | I_GranteeMgmtBillingRule | _BillingRule | $projection.GranteeMgmtBillingRule = _BillingRule.GranteeMgmtBillingRule |
| [0..1] | I_GrantType | _GrantType | $projection.GrantType = _GrantType.GrantType |
| [0..1] | I_Currency | _GrantCurrency | $projection.GrantCurrency = _GrantCurrency.Currency |
| [0..1] | I_BusinessPartner | _Sponsor | $projection.GranteeMgmtSponsor = _Sponsor.BusinessPartner |
| [0..1] | I_SystemStatus | _GrantLifecycleStatus | $projection.GrantLifecycleStatus = _GrantLifecycleStatus.SystemStatus |
| [0..1] | I_PublicSectorGrantStatus | _GrantStatus | $projection.GrantStatus = _GrantStatus.GrantStatus |
| [0..1] | I_UserStatus | _UserStatus | $projection.GrantUserStatus = _UserStatus.UserStatus and $projection.GrantStatusProfile = _UserStatus.StatusProfile |
| [0..1] | I_StatusProfile | _StatusProfile | $projection.GrantStatusProfile = _StatusProfile.StatusProfile |
| [0..1] | I_FiscalYearVariant | _FiscalYearVariant | $projection.GrantFiscalYearVariant = _FiscalYearVariant.FiscalYearVariant |
| [0..1] | I_User | _CreatedByUser | $projection.CreatedByUser = _CreatedByUser.UserID |
| [0..1] | I_User | _LastChangedByUser | $projection.LastChangedByUser = _LastChangedByUser.UserID |
| [0..*] | I_GrantHierarchyNode | _GrantHierarchyNode | $projection.GrantID = _GrantHierarchyNode.GrantID |
| [0..*] | I_CostCenter | _CostCenter | $projection.CostCenter = _CostCenter.CostCenter and $projection.ControllingArea = _CostCenter.ControllingArea |
| [0..1] | I_CostCenter | _CurrentCostCenter | $projection.CostCenter = _CurrentCostCenter.CostCenter and $projection.ControllingArea = _CurrentCostCenter.ControllingArea and $projection.ValidityEndDate <= _CurrentCostCenter.ValidityEndDate |
| [1] | I_ControllingArea | _ControllingArea | $projection.ControllingArea = _ControllingArea.ControllingArea |
| [0..1] | I_UserContactCard | _UserRespContactCard | $projection.GrantResponsibleUser = _UserRespContactCard.ContactCardID |
| [0..1] | I_GrantAuthznGrp | _GrantAuthznGrp | $projection.GrantAuthznGrp = _GrantAuthznGrp.GrantAuthznGrp |
Annotations (19)
| Name | Value | Level | Field |
|---|---|---|---|
| EndUserText.label | Grant | view | |
| Analytics.dataCategory | #DIMENSION | view | |
| Analytics.dataExtraction.enabled | true | view | |
| Analytics.internalName | #LOCAL | view | |
| VDM.viewType | #BASIC | view | |
| VDM.lifecycle.contract.type | #PUBLIC_LOCAL_API | view | |
| AccessControl.authorizationCheck | #MANDATORY | view | |
| AccessControl.personalData.blocking | #NOT_REQUIRED | view | |
| ObjectModel.representativeKey | GrantID | view | |
| ObjectModel.usageType.dataClass | #MASTER | view | |
| ObjectModel.usageType.serviceQuality | #B | view | |
| ObjectModel.usageType.sizeCategory | #L | view | |
| ObjectModel.sapObjectNodeType.name | Grant | view | |
| Metadata.allowExtensions | true | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AbapCatalog.sqlViewName | IGMGRANT | view | |
| Metadata.ignorePropagatedAnnotations | true | view | |
| ObjectModel.modelingPattern | #ANALYTICAL_DIMENSION | view |
Fields (60)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | GrantID | gmgr | grant_nbr | Receiver Grant |
| ValidityStartDate | gmgr | valid_from | Validity Start Time | |
| ValidityEndDate | gmgr | valid_to | Validity End Time | |
| GranteeMgmtSponsor | gmgr | partner | Grant Sponsor | |
| GrantAuthznGrp | gmgr | authgr | Grants Management: Authorization Groups | |
| GrantType | gmgr | grant_type | Grant Type | |
| CompanyCode | Company Code | |||
| GrantIsBlockedForPosting | gmgr | blocking_ind | Block All Postings | |
| GrantCurrency | gmgr | grant_currency | Grant Currency | |
| GrantTotalAmountInGrantCrcy | gmgr | grant_total | Total Grant Value in Sponsor Currency | |
| GteeMIndrctCostShrngRule | gmgr | idc_rule | Rule for Determining Indirect Costs | |
| GteeMIndirectCostRateInPercent | gmgr | idc_rate | Cloud Edition Only: Percentage for Indirect Costs | |
| GrantLifecycleStatus | gmgr | lifecycle_status | Lifecycle Status | |
| GrantStatus | gmgr | status | Workflow Status | |
| GrantStatusProfile | _GrantType | StatusProfile | Status profile for the user states attached to system states | |
| GrantUserStatus | gmgr | user_status | User Status | |
| GranteeMgmtCostSharingRule | gmgr | cs_rule | Rule for Determining Cost Sharing Requirements | |
| GteeMCostSharingOverallRate | gmgr | cs_rate | Overall Cost Sharing Rate for Grant | |
| GranteeMgmtBillingRule | gmgr | billing_rule | Rule Used as a Basis for Billing | |
| CreatedByUser | gmgr | created_by | Version Created By | |
| CreationDate | gmgr | created_on | Variant created on | |
| CreationTime | gmgr | created_at | Uploaded On | |
| LastChangedByUser | gmgr | modified_by | Last Modified by | |
| LastChangeDate | gmgr | modified_on | Date last modified | |
| LastChangeTime | gmgr | modified_at | Last Modified Time | |
| PreAwardPstgIsAllowedForGrant | gmgr | pre_award_costs | Pre-award cost control | |
| GrantFiscalYearVariant | gmgr | grant_fy_variant | Fiscal year variant of grant | |
| GteeMTimeSliceSplittingRule | gmgr | splitting_rule | Rule Used to Split Time Intervals Between Fiscal Years | |
| CostCenter | gmgr | kostl | Substitute CC | |
| ControllingArea | gmgr | kokrs | Controlling Area | |
| GranteeMgmtWorkflowStatus | gmgr | workflow_status | Workflow Status | |
| GrantBlockedByWorkflow | gmgr | workflow_block | GM Blocks grant editing pending approval | |
| GrantExternalReference | gmgr | ext_reference | Alternate Grant Identifier | |
| GrantInternalReference | gmgr | int_reference | Alternate Grant Identifier | |
| GrantResponsibleUser | gmgr | grant_resp | Grant Responsible User | |
| GrantAssistanceListingNumber | gmgr | cfda | Assistance Listing Number | |
| SalesOrder | gmgr | sales_order | Sales Document | |
| GrantAwardType | gmgr | award_type | Award Type | |
| _Text | _Text | |||
| _GrantResponsibility | _GrantResponsibility | |||
| _CompanyCode | _CompanyCode | |||
| _IndirectCostSharingRule | _IndirectCostSharingRule | |||
| _CostSharingRule | _CostSharingRule | |||
| _BillingRule | _BillingRule | |||
| _FiscalYearVariant | _FiscalYearVariant | |||
| _GrantType | _GrantType | |||
| _GrantCurrency | _GrantCurrency | |||
| _GrantLifecycleStatus | _GrantLifecycleStatus | |||
| _GrantStatus | _GrantStatus | |||
| _StatusProfile | _StatusProfile | |||
| _Sponsor | _Sponsor | |||
| _UserStatus | _UserStatus | |||
| _CreatedByUser | _CreatedByUser | |||
| _LastChangedByUser | _LastChangedByUser | |||
| _GrantHierarchyNode | _GrantHierarchyNode | |||
| _CostCenter | _CostCenter | |||
| _CurrentCostCenter | _CurrentCostCenter | |||
| _ControllingArea | _ControllingArea | |||
| _UserRespContactCard | _UserRespContactCard | |||
| _GrantAuthznGrp | _GrantAuthznGrp |
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_Grant.
-- 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.
-- SQL view name: IGMGRANT
CREATE VIEW I_Grant AS
SELECT
gmgr.grant_nbr AS GrantID,
gmgr.valid_from AS ValidityStartDate,
gmgr.valid_to AS ValidityEndDate,
gmgr.partner AS GranteeMgmtSponsor,
gmgr.authgr AS GrantAuthznGrp,
gmgr.grant_type AS GrantType,
cast( gmgr.company_code as fis_bukrs preserving type) AS CompanyCode,
gmgr.blocking_ind AS GrantIsBlockedForPosting,
gmgr.grant_currency AS GrantCurrency,
gmgr.grant_total AS GrantTotalAmountInGrantCrcy,
gmgr.idc_rule AS GteeMIndrctCostShrngRule,
gmgr.idc_rate AS GteeMIndirectCostRateInPercent,
gmgr.lifecycle_status AS GrantLifecycleStatus,
gmgr.status AS GrantStatus,
_GrantType.StatusProfile AS GrantStatusProfile,
gmgr.user_status AS GrantUserStatus,
gmgr.cs_rule AS GranteeMgmtCostSharingRule,
gmgr.cs_rate AS GteeMCostSharingOverallRate,
gmgr.billing_rule AS GranteeMgmtBillingRule,
gmgr.created_by AS CreatedByUser,
gmgr.created_on AS CreationDate,
gmgr.created_at AS CreationTime,
gmgr.modified_by AS LastChangedByUser,
gmgr.modified_on AS LastChangeDate,
gmgr.modified_at AS LastChangeTime,
gmgr.pre_award_costs AS PreAwardPstgIsAllowedForGrant,
gmgr.grant_fy_variant AS GrantFiscalYearVariant,
gmgr.splitting_rule AS GteeMTimeSliceSplittingRule,
gmgr.kostl AS CostCenter,
gmgr.kokrs AS ControllingArea,
gmgr.workflow_status AS GranteeMgmtWorkflowStatus,
gmgr.workflow_block AS GrantBlockedByWorkflow,
gmgr.ext_reference AS GrantExternalReference,
gmgr.int_reference AS GrantInternalReference,
gmgr.grant_resp AS GrantResponsibleUser,
gmgr.cfda AS GrantAssistanceListingNumber,
gmgr.sales_order AS SalesOrder,
gmgr.award_type AS GrantAwardType
FROM gmgr
LEFT OUTER JOIN E_Grant AS _Extension ON GrantID = _Extension.GrantID -- association [1..1]
LEFT OUTER JOIN I_CompanyCode AS _CompanyCode ON CompanyCode = _CompanyCode.CompanyCode -- association [0..1]
LEFT OUTER JOIN I_GrantText AS _Text ON GrantID = _Text.GrantID -- association [0..*]
LEFT OUTER JOIN I_GrantResponsibility AS _GrantResponsibility ON GrantID = _GrantResponsibility.GrantID -- association [0..*]
LEFT OUTER JOIN I_GteeMIndrctCostShrngRule AS _IndirectCostSharingRule ON GteeMIndrctCostShrngRule = _IndirectCostSharingRule.GteeMIndrctCostShrngRule -- association [0..1]
LEFT OUTER JOIN I_GranteeMgmtCostSharingRule AS _CostSharingRule ON GranteeMgmtCostSharingRule = _CostSharingRule.GranteeMgmtCostSharingRule -- association [0..1]
LEFT OUTER JOIN I_GranteeMgmtBillingRule AS _BillingRule ON GranteeMgmtBillingRule = _BillingRule.GranteeMgmtBillingRule -- association [0..1]
LEFT OUTER JOIN I_GrantType AS _GrantType ON GrantType = _GrantType.GrantType -- association [0..1]
LEFT OUTER JOIN I_Currency AS _GrantCurrency ON GrantCurrency = _GrantCurrency.Currency -- association [0..1]
LEFT OUTER JOIN I_BusinessPartner AS _Sponsor ON GranteeMgmtSponsor = _Sponsor.BusinessPartner -- association [0..1]
LEFT OUTER JOIN I_SystemStatus AS _GrantLifecycleStatus ON GrantLifecycleStatus = _GrantLifecycleStatus.SystemStatus -- association [0..1]
LEFT OUTER JOIN I_PublicSectorGrantStatus AS _GrantStatus ON GrantStatus = _GrantStatus.GrantStatus -- association [0..1]
LEFT OUTER JOIN I_UserStatus AS _UserStatus ON GrantUserStatus = _UserStatus.UserStatus AND GrantStatusProfile = _UserStatus.StatusProfile -- association [0..1]
LEFT OUTER JOIN I_StatusProfile AS _StatusProfile ON GrantStatusProfile = _StatusProfile.StatusProfile -- association [0..1]
LEFT OUTER JOIN I_FiscalYearVariant AS _FiscalYearVariant ON GrantFiscalYearVariant = _FiscalYearVariant.FiscalYearVariant -- association [0..1]
LEFT OUTER JOIN I_User AS _CreatedByUser ON CreatedByUser = _CreatedByUser.UserID -- association [0..1]
LEFT OUTER JOIN I_User AS _LastChangedByUser ON LastChangedByUser = _LastChangedByUser.UserID -- association [0..1]
LEFT OUTER JOIN I_GrantHierarchyNode AS _GrantHierarchyNode ON GrantID = _GrantHierarchyNode.GrantID -- association [0..*]
LEFT OUTER JOIN I_CostCenter AS _CostCenter ON CostCenter = _CostCenter.CostCenter AND ControllingArea = _CostCenter.ControllingArea -- association [0..*]
LEFT OUTER JOIN I_CostCenter AS _CurrentCostCenter ON CostCenter = _CurrentCostCenter.CostCenter AND ControllingArea = _CurrentCostCenter.ControllingArea AND ValidityEndDate <= _CurrentCostCenter.ValidityEndDate -- association [0..1]
LEFT OUTER JOIN I_ControllingArea AS _ControllingArea ON ControllingArea = _ControllingArea.ControllingArea -- association [1]
LEFT OUTER JOIN I_UserContactCard AS _UserRespContactCard ON GrantResponsibleUser = _UserRespContactCard.ContactCardID -- association [0..1]
LEFT OUTER JOIN I_GrantAuthznGrp AS _GrantAuthznGrp ON GrantAuthznGrp = _GrantAuthznGrp.GrantAuthznGrp -- 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