P_SpnsrdPgmGrant

DDL: P_SPNSRDPGMGRANT Type: view COMPOSITE

Sponsor program Grant usage

P_SpnsrdPgmGrant is a Composite CDS View that provides data about "Sponsor program Grant usage" in SAP S/4HANA. It reads from 1 data source (I_GrantSponsoredProgramsLink) and exposes 11 fields with key fields SpnsrdPgmWhereUsedObjType, SponsoredProgram, GrantID. It has 1 association to related views.

Data Sources (1)

SourceAliasJoin Type
I_GrantSponsoredProgramsLink I_GrantSponsoredProgramsLink from

Associations (1)

CardinalityTargetAliasCondition
[0..*] I_GrantText _GrantText $projection.GrantID = _GrantText.GrantID

Annotations (11)

NameValueLevelField
AbapCatalog.sqlViewName PWUSPDPGMGRANT view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
AccessControl.authorizationCheck #MANDATORY view
EndUserText.label Sponsor program Grant usage view
ClientHandling.algorithm #SESSION_VARIABLE view
ObjectModel.usageType.sizeCategory #L view
ObjectModel.usageType.serviceQuality #B view
ObjectModel.usageType.dataClass #MASTER view
VDM.private true view
VDM.viewType #COMPOSITE view

Fields (11)

KeyFieldSource TableSource FieldDescription
KEY SpnsrdPgmWhereUsedObjType
KEY SponsoredProgram SponsoredProgram Sponsored Program
KEY GrantID GrantID Sender Grant
GrantName _GrantText GrantName
GrantType _Grant GrantType
GrantTypeDescription
ValidityStartDate _Grant ValidityStartDate Validity Start Date
ValidityEndDate _Grant ValidityEndDate ValidTo
_Grant _Grant
_SponsoredProgram _SponsoredProgram
_GrantText _GrantText

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 P_SpnsrdPgmGrant.
-- 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 P_SpnsrdPgmGrant AS
SELECT
  cast ('4GRNT' as psm_s4c_gm_spdpgm_wu_objtypevh ) AS SpnsrdPgmWhereUsedObjType,
  SponsoredProgram,
  GrantID,
  _GrantText.GrantName AS GrantName,
  _Grant.GrantType AS GrantType,
  _Grant._GrantType._GrantTypeText[1:Language = $session.system_language].GrantTypeDescription AS GrantTypeDescription,
  _Grant.ValidityStartDate AS ValidityStartDate,
  _Grant.ValidityEndDate AS ValidityEndDate
FROM I_GrantSponsoredProgramsLink
LEFT OUTER JOIN I_GrantText AS _GrantText ON GrantID = _GrantText.GrantID  -- association [0..*]
;