I_Grant

DDL: I_GRANT SQL: IGMGRANT Type: view BASIC

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

CategoryCDS Views for Master Data
Data CategoryDimension
StatusReleased
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

View on SAP Help Portal →

SAP API Hub

StateC1
Line of BusinessCross Applications
Application ComponentPSM-GM-GTE-MD
CapabilitiesAnalytical Dimension, Data Source for Data Extraction, Association Target for Defining CDS Entities
PackageCross 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

Data Sources (1)

SourceAliasJoin Type
gmgr gmgr from

Associations (23)

CardinalityTargetAliasCondition
[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)

NameValueLevelField
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)

KeyFieldSource TableSource FieldDescription
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]
;