C_SetLeafForGrantObjP

DDL: C_SETLEAFFORGRANTOBJP SQL: CSLEAFGRANTOBJP Type: view CONSUMPTION

Set Leaf for Grant

C_SetLeafForGrantObjP is a Consumption CDS View that provides data about "Set Leaf for Grant" in SAP S/4HANA. It reads from 1 data source (I_Setleaf) and exposes 15 fields with key fields SetClass, SetSubClass, GrantGroup, SetLineNumber, GrantID. It has 3 associations to related views.

Data Sources (1)

SourceAliasJoin Type
I_Setleaf I_Setleaf from

Associations (3)

CardinalityTargetAliasCondition
[0..1] I_SetHeader _SetHeader $projection.SetClass = _SetHeader.SetClass and $projection.SetSubClass = _SetHeader.SetSubClass and $projection.GrantGroup = _SetHeader.SetID
[0..*] C_Grant_Objp _Grant ( _Grant.GrantID between $projection.SetRangeFromValue and $projection.SetRangeToValue )
[0..1] C_GrantGroup_Objp _GrantGroup $projection.GrantGroup = _GrantGroup.GrantGroup and _GrantGroup.SetClass = '0113'

Annotations (10)

NameValueLevelField
VDM.viewType #CONSUMPTION view
AccessControl.authorizationCheck #CHECK view
AccessControl.personalData.blocking #BLOCKED_DATA_EXCLUDED view
ClientHandling.algorithm #SESSION_VARIABLE view
ObjectModel.usageType.dataClass #MASTER view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #XL view
AbapCatalog.sqlViewName CSLEAFGRANTOBJP view
AbapCatalog.compiler.compareFilter true view
EndUserText.label Set Leaf for Grant view

Fields (15)

KeyFieldSource TableSource FieldDescription
KEY SetClass SetClass Set Class
KEY SetSubClass SetSubClass Subclass
KEY GrantGroup SetID Grant Group
KEY SetLineNumber SetLineNumber Set Line
KEY GrantID _Grant GrantID Sender Grant
SetRangeSign SetRangeSign SIGN
SetRangeOption SetRangeOption Option
SetRangeFromValue SetRangeFromValue Valid-From Date
SetRangeToValue SetRangeToValue Valid To
GrantAuthznGrp _Grant GrantAuthznGrp
GrantLfcycStatusForAuthzn _Grant GrantLfcycStatusForAuthzn
CreatedByUser _GrantGroup CreatedByUser Created By
CreationDate _GrantGroup CreationDate Creation Date
SetDescription _GrantGroup SetDescription Group Description
FundsMgmtExtendedSetDesc

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_SetLeafForGrantObjP.
-- 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: CSLEAFGRANTOBJP

CREATE VIEW C_SetLeafForGrantObjP AS
SELECT
  SetClass,
  SetSubClass,
  SetID AS GrantGroup,
  SetLineNumber,
  _Grant.GrantID AS GrantID,
  SetRangeSign,
  SetRangeOption,
  SetRangeFromValue,
  SetRangeToValue,
  _Grant.GrantAuthznGrp AS GrantAuthznGrp,
  _Grant.GrantLfcycStatusForAuthzn AS GrantLfcycStatusForAuthzn,
  _GrantGroup.CreatedByUser AS CreatedByUser,
  _GrantGroup.CreationDate AS CreationDate,
  _GrantGroup.SetDescription AS SetDescription,
  cast( concat_with_space(SetID, _SetHeader._SetHeaderText[1:Language=$session.system_language].SetDescription, 1 ) as fmis_fundsmgmtextendedsetname ) AS FundsMgmtExtendedSetDesc
FROM I_Setleaf
LEFT OUTER JOIN I_SetHeader AS _SetHeader ON SetClass = _SetHeader.SetClass AND SetSubClass = _SetHeader.SetSubClass AND GrantGroup = _SetHeader.SetID  -- association [0..1]
LEFT OUTER JOIN C_Grant_Objp AS _Grant ON /* condition not available in parsed metadata */  -- association [0..*]
LEFT OUTER JOIN C_GrantGroup_Objp AS _GrantGroup ON GrantGroup = _GrantGroup.GrantGroup AND _GrantGroup.SetClass = '0113'  -- association [0..1]
;