C_GrantWorkflowTaskCard

DDL: C_GRANTWORKFLOWTASKCARD Type: view_entity CONSUMPTION Package: PSM_S4CO_ODATA_GM_WF

Grant Workflow Task Card

C_GrantWorkflowTaskCard is a Consumption CDS View that provides data about "Grant Workflow Task Card" in SAP S/4HANA. It reads from 1 data source (I_Grant) and exposes 19 fields with key field GrantID. It has 2 associations to related views. Part of development package PSM_S4CO_ODATA_GM_WF.

Data Sources (1)

SourceAliasJoin Type
I_Grant iGrant from

Associations (2)

CardinalityTargetAliasCondition
[0..1] I_GrantTypeText _GrantTypeText $projection.GrantType = _GrantTypeText.GrantType and _GrantTypeText.Language = $session.system_language
[0..1] I_PublicSectorGrantStatusText _PublicSectorGrantStatusText $projection.GrantStatus = _PublicSectorGrantStatusText.GrantStatus and _PublicSectorGrantStatusText.Language = $session.system_language

Annotations (7)

NameValueLevelField
AccessControl.authorizationCheck #MANDATORY view
AccessControl.personalData.blocking #NOT_REQUIRED view
EndUserText.label Grant Workflow Task Card view
ObjectModel.usageType.serviceQuality #X view
ObjectModel.usageType.sizeCategory #L view
ObjectModel.usageType.dataClass #MIXED view
VDM.viewType #CONSUMPTION view

Fields (19)

KeyFieldSource TableSource FieldDescription
KEY GrantID GrantID Sender Grant
GrantName
GrantType I_Grant GrantType Grant Type
GrantTypeDescription _GrantTypeText GrantTypeDescription
GrantStatus I_Grant GrantStatus Workflow Status
GrantStatusName _PublicSectorGrantStatusText GrantStatusName
GranteeMgmtSponsor I_Grant GranteeMgmtSponsor With Partner
BusinessPartnerName _Sponsor BusinessPartnerName Extracted Customer Name
GrantTotalAmountInGrantCrcy I_Grant GrantTotalAmountInGrantCrcy Grant Value
GrantCurrency I_Grant GrantCurrency Grant Currency
GrantExternalReference I_Grant GrantExternalReference External Reference
GrantIsNotRelevantGrant I_Grant GrantIsNotRelevantGrant
GrantAuthznGrp I_Grant GrantAuthznGrp Authorization Group
GrantLifecycleStatus I_Grant GrantLifecycleStatus Status
_GrantType _GrantType
_GrantStatus _GrantStatus
_Sponsor _Sponsor
_GrantLifecycleStatus _GrantLifecycleStatus
_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 C_GrantWorkflowTaskCard.
-- 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 C_GrantWorkflowTaskCard AS
SELECT
  GrantID,
  iGrant._Text[1:Language = $session.system_language].GrantName AS GrantName,
  iGrant.GrantType AS GrantType,
  _GrantTypeText.GrantTypeDescription AS GrantTypeDescription,
  iGrant.GrantStatus AS GrantStatus,
  _PublicSectorGrantStatusText.GrantStatusName AS GrantStatusName,
  iGrant.GranteeMgmtSponsor AS GranteeMgmtSponsor,
  _Sponsor.BusinessPartnerName AS BusinessPartnerName,
  iGrant.GrantTotalAmountInGrantCrcy AS GrantTotalAmountInGrantCrcy,
  iGrant.GrantCurrency AS GrantCurrency,
  iGrant.GrantExternalReference AS GrantExternalReference,
  iGrant.GrantIsNotRelevantGrant AS GrantIsNotRelevantGrant,
  iGrant.GrantAuthznGrp AS GrantAuthznGrp,
  iGrant.GrantLifecycleStatus AS GrantLifecycleStatus
FROM I_Grant AS iGrant
LEFT OUTER JOIN I_GrantTypeText AS _GrantTypeText ON GrantType = _GrantTypeText.GrantType AND _GrantTypeText.Language = $session.system_language  -- association [0..1]
LEFT OUTER JOIN I_PublicSectorGrantStatusText AS _PublicSectorGrantStatusText ON GrantStatus = _PublicSectorGrantStatusText.GrantStatus AND _PublicSectorGrantStatusText.Language = $session.system_language  -- association [0..1]
;