A_Grant

DDL: A_GRANT Type: view_entity COMPOSITE Package: PSM_FM_API

Grant

A_Grant is a Composite CDS View that provides data about "Grant" in SAP S/4HANA. It reads from 1 data source (R_GrantTP) and exposes 29 fields with key field GrantID. It has 1 association to related views. It is exposed through 1 OData service (API_GRANT). Part of development package PSM_FM_API.

Data Sources (1)

SourceAliasJoin Type
R_GrantTP R_GrantTP projection

Associations (1)

CardinalityTargetAliasCondition
[0..*] A_GrantText _Text $projection.GrantID = _Text.GrantID

Annotations (9)

NameValueLevelField
EndUserText.label Grant view
AccessControl.authorizationCheck #CHECK view
Metadata.ignorePropagatedAnnotations true view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.dataClass #MASTER view
ObjectModel.usageType.sizeCategory #L view
OData.entityType.name Grant_Type view
VDM.lifecycle.contract.type #PUBLIC_REMOTE_API view
VDM.viewType #COMPOSITE view

OData Services (1)

ServiceBindingVersionContractRelease
API_GRANT API_GRANT V2 C2 C1

Fields (29)

KeyFieldSource TableSource FieldDescription
KEY GrantID GrantID Sender Grant
ValidityStartDate ValidityStartDate Validity Start Date
ValidityEndDate ValidityEndDate ValidTo
GranteeMgmtSponsor GranteeMgmtSponsor
GrantAuthznGrp GrantAuthznGrp
GrantLfcycStatusForAuthzn GrantLfcycStatusForAuthzn
GrantType GrantType
CompanyCode CompanyCode Receiver Company Code
GrantIsBlockedForPosting GrantIsBlockedForPosting
GrantCurrency GrantCurrency Grant Currency
GrantTotalAmountInGrantCrcy GrantTotalAmountInGrantCrcy
GteeMIndrctCostShrngRule GteeMIndrctCostShrngRule
GrantLifecycleStatus GrantLifecycleStatus
GrantStatusProfile GrantStatusProfile
GrantUserStatus GrantUserStatus
GranteeMgmtCostSharingRule GranteeMgmtCostSharingRule
GteeMCostSharingOverallRate GteeMCostSharingOverallRate
GranteeMgmtBillingRule GranteeMgmtBillingRule
CreationDate CreationDate Time Stamp
CreationTime CreationTime Time of Change
LastChangeDate LastChangeDate Time Stamp
LastChangeTime LastChangeTime Time changed
PreAwardPstgIsAllowedForGrant PreAwardPstgIsAllowedForGrant
GrantFiscalYearVariant GrantFiscalYearVariant
GrantIsNotRelevantGrant GrantIsNotRelevantGrant
GteeMTimeSliceSplittingRule GteeMTimeSliceSplittingRule
GrantName GrantName
GrantDescription GrantDescription
_Text _Text

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 A_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.

CREATE VIEW A_Grant AS
SELECT
  GrantID,
  ValidityStartDate,
  ValidityEndDate,
  GranteeMgmtSponsor,
  GrantAuthznGrp,
  GrantLfcycStatusForAuthzn,
  GrantType,
  CompanyCode,
  GrantIsBlockedForPosting,
  GrantCurrency,
  GrantTotalAmountInGrantCrcy,
  GteeMIndrctCostShrngRule,
  GrantLifecycleStatus,
  GrantStatusProfile,
  GrantUserStatus,
  GranteeMgmtCostSharingRule,
  GteeMCostSharingOverallRate,
  GranteeMgmtBillingRule,
  CreationDate,
  CreationTime,
  LastChangeDate,
  LastChangeTime,
  PreAwardPstgIsAllowedForGrant,
  GrantFiscalYearVariant,
  GrantIsNotRelevantGrant,
  GteeMTimeSliceSplittingRule,
  GrantName,
  GrantDescription
FROM R_GrantTP
LEFT OUTER JOIN A_GrantText AS _Text ON GrantID = _Text.GrantID  -- association [0..*]
;