I_GrantorApplication

DDL: I_GRANTORAPPLICATION Type: view_entity BASIC

Grantor Application

I_GrantorApplication (Basic)

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

Public Sector

I_GrantorApplication is a Basic CDS View (Dimension) that provides data about "Grantor Application" in SAP S/4HANA. It reads from 1 data source (crms4d_grap_h) and exposes 79 fields with key fields BusinessObjectType, GrantorApplication.

SAP Help Documentation

CategoryCDS Views for Grantor Management
Data CategoryDimension
Purpose
This CDS view serves as a basic view for grantor applications and only retrieves data from the associated database table. It contains associations to all relevant data in the object model. 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_GAP (Authorization Object CRM Order - Business Object: Grantor application) CRM_ORD_OE (Authorization Object CRM Order - Allowed Organizational 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 application.

Structure
Important Fields Important fields in this view include the following: Field Name Description GrantorApplication ID of the grantor application GrantorApplicationType Transaction type for the grantor application

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.

View on SAP Help Portal →

SAP API Hub

StateC1
Line of BusinessPublic Sector
Application ComponentPSM-GM-GTR-GEN
CapabilitiesAssociation Target for Defining CDS Entities, Data Source for Defining CDS Entities, Analytical Dimension, Data Source in SQL Select
PackagePublic Sector for SAP S/4HANA
Description <p>This CDS view serves as a basic view for grantor applications and only retrieves data from the associated database table. It contains associations to all relevant data in the object model.</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

Data Sources (1)

SourceAliasJoin Type
crms4d_grap_h crms4d_grap_h from

Annotations (13)

NameValueLevelField
EndUserText.label Grantor Application view
VDM.viewType #BASIC view
VDM.lifecycle.contract.type #PUBLIC_LOCAL_API view
AccessControl.authorizationCheck #MANDATORY view
ObjectModel.representativeKey GrantorApplication view
ObjectModel.modelingPattern #ANALYTICAL_DIMENSION view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
ObjectModel.usageType.serviceQuality #A view
ObjectModel.usageType.sizeCategory #L view
Analytics.dataCategory #DIMENSION view
Analytics.internalName #LOCAL view
Metadata.allowExtensions true view
Metadata.ignorePropagatedAnnotations true view

Fields (79)

KeyFieldSource TableSource FieldDescription
KEY BusinessObjectType objtype_h Business Trans. Cat.
KEY GrantorApplication Grantor Application
GrantorApplicationUUID header_guid GUID of a CRM Order Object
GrantorApplicationCharUUID 32 Character CRM Object GUID
GrantorApplicationType process_type Business Transaction Type
DocumentDescription description_h Transaction Description
Language descr_language Language Key of Description
PostingDate posting_date Posting Date for a Business Transaction
CreationDateTime created_at_h Created On
CreatedByUser created_by_h User that Created the Transaction
LastChangeDateTime changed_at_h Changed On
LastChangedByUser changed_by_h Transaction Last Changed By
PricingDocument pricing_document Number of the Document Condition
PricingProcedure pricing_procedure Procedure (Pricing, Output Control, Acct. Det., Costing,...)
GrantorDocumentGrantee Customer
GrntoDocGranteeAddressNumber grantee_address_number Address Number
GrntoDocResponsibleEmployee employee_resp Employee Responsible
GrantorDocumentContactPerson grantee_contact Customer Contact Person
GrantorDocumentBillToParty bill_to_party Bill-To Party
GrantorDocumentPayer payer Payer
GrntoDocumentPaymentRecipient payment_recipient Payment Recipient
DocumentStartDateTime Time Dependency: Validity Start Date
DocumentStartDate valid_from_date Grantor Valid From Date
DocumentEndDateTime Time Dependency: Validity End Date
DocumentEndDate valid_to_date Grantor Valid To Date
GrantorApplicationStatus stat_lifecycle Unique Custom Status
IsReleased stat_released Release Status
IsOpen stat_open Status "Open"
HasError stat_error Error Status
IsRejected Indicator for document is rejected
GrantorDocIsSuccessfullyTrnsfd stat_transfer_ok Grantor Management: Status Transferred
GrantorDocHasTransferError stat_transfer_failed Grantor Management: Status Transfer failed
GrantorDocumentIsCancelled stat_grm_cancelled Grantor Management: Status Cancelled
SalesOrganizationOrgUnitID sales_org Sales Organization ID
SalesOfficeOrgUnitID sales_office Sales Office
SalesGroupOrgUnitID sales_group Sales Group
DistributionChannel dis_channel Distribution Channel
Division division Internal Division ID
ServiceOrganization service_org Service Organization
ResponsibleServiceOrganization service_org_resp Organizational Unit (Service)
ResponsibleSalesOrganization sales_org_resp Organizational Unit (Sales)
SalesOrganization sales_org_sd Sales Organization
SalesOffice sales_office_sd Sales Office
SalesGroup sales_group_sd Sales Group
GrantorProgram External Identifier of a Grantor Program
GrantorAgreement Grantor Agreement
TransactionCurrency currency Valuation Crcy
ContractAccount contract_account Contract Account Number
_GrantorProgram _GrantorProgram
_GrantorApplicationItem _GrantorApplicationItem
_BusinessObjectType _BusinessObjectType
_GrantorApplicationType _GrantorApplicationType
_GrantorDocumentGrantee _GrantorDocumentGrantee
_GrntoDocResponsibleEmployee _GrntoDocResponsibleEmployee
_GrantorDocumentContactPerson _GrantorDocumentContactPerson
_GrantorDocumentBillToParty _GrantorDocumentBillToParty
_GrantorDocumentPayer _GrantorDocumentPayer
_GrntoDocumentPaymentRecipient _GrntoDocumentPaymentRecipient
_GrantorApplLifecycleStatus _GrantorApplLifecycleStatus
_GrantorApplicationIsOpen _GrantorApplicationIsOpen
_GrantorApplicationIsReleased _GrantorApplicationIsReleased
_GrantorApplicationHasError _GrantorApplicationHasError
_GrantorApplicationIsRejected _GrantorApplicationIsRejected
_GrntoDocIsSuccessfullyTrnsfd _GrntoDocIsSuccessfullyTrnsfd
_GrantorDocHasTransferError _GrantorDocHasTransferError
_GrantorDocumentIsCancelled _GrantorDocumentIsCancelled
_TransactionCurrency _TransactionCurrency
_ContractAccount _ContractAccount
_ContractAccountPartner _ContractAccountPartner
_SalesOrganizationOrgUnit _SalesOrganizationOrgUnit
_SalesOfficeOrgUnit _SalesOfficeOrgUnit
_SalesGroupOrgUnit _SalesGroupOrgUnit
_ServiceOrganizationOrgUnit _ServiceOrganizationOrgUnit
_RespSrvcOrganizationOrgUnit _RespSrvcOrganizationOrgUnit
_SalesOrganization _SalesOrganization
_SalesOffice _SalesOffice
_SalesGroup _SalesGroup
_DistributionChannel _DistributionChannel
_Division _Division

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_GrantorApplication.
-- 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_GrantorApplication AS
SELECT
  objtype_h AS BusinessObjectType,
  cast(object_id as crms4_grm_application preserving type ) AS GrantorApplication,
  header_guid AS GrantorApplicationUUID,
  cast(header_guid_char as crmt_object_charguid32 preserving type ) AS GrantorApplicationCharUUID,
  process_type AS GrantorApplicationType,
  description_h AS DocumentDescription,
  descr_language AS Language,
  posting_date AS PostingDate,
  created_at_h AS CreationDateTime,
  created_by_h AS CreatedByUser,
  changed_at_h AS LastChangeDateTime,
  changed_by_h AS LastChangedByUser,
  pricing_document AS PricingDocument,
  pricing_procedure AS PricingProcedure,
  cast(grantee as crms4_grm_grantee preserving type ) AS GrantorDocumentGrantee,
  grantee_address_number AS GrntoDocGranteeAddressNumber,
  employee_resp AS GrntoDocResponsibleEmployee,
  grantee_contact AS GrantorDocumentContactPerson,
  bill_to_party AS GrantorDocumentBillToParty,
  payer AS GrantorDocumentPayer,
  payment_recipient AS GrntoDocumentPaymentRecipient,
  cast( valid_from as crms4_valid_from preserving type ) AS DocumentStartDateTime,
  valid_from_date AS DocumentStartDate,
  cast( valid_to as crms4_valid_to preserving type ) AS DocumentEndDateTime,
  valid_to_date AS DocumentEndDate,
  stat_lifecycle AS GrantorApplicationStatus,
  stat_released AS IsReleased,
  stat_open AS IsOpen,
  stat_error AS HasError,
  cast( stat_cancelled as vdm_document_is_rejected preserving type ) AS IsRejected,
  stat_transfer_ok AS GrantorDocIsSuccessfullyTrnsfd,
  stat_transfer_failed AS GrantorDocHasTransferError,
  stat_grm_cancelled AS GrantorDocumentIsCancelled,
  sales_org AS SalesOrganizationOrgUnitID,
  sales_office AS SalesOfficeOrgUnitID,
  sales_group AS SalesGroupOrgUnitID,
  dis_channel AS DistributionChannel,
  Division,
  service_org AS ServiceOrganization,
  service_org_resp AS ResponsibleServiceOrganization,
  sales_org_resp AS ResponsibleSalesOrganization,
  sales_org_sd AS SalesOrganization,
  sales_office_sd AS SalesOffice,
  sales_group_sd AS SalesGroup,
  cast(grantor_program_id as crmt_gpm_extid preserving type ) AS GrantorProgram,
  cast(grantor_agreement_id as crms4_grm_agreement preserving type ) AS GrantorAgreement,
  currency AS TransactionCurrency,
  contract_account AS ContractAccount
FROM crms4d_grap_h
;