C_SetLeafForGrantGrp
Grant Group Setleaf
C_SetLeafForGrantGrp is a Consumption CDS View that provides data about "Grant Group Setleaf" in SAP S/4HANA. It reads from 1 data source (I_Setleaf) and exposes 35 fields with key fields SetClass, SetSubClass, SetID, SetLineNumber, GrantID. It has 3 associations to related views.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_Setleaf | I_Setleaf | from |
Associations (3)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..*] | C_Grant_Objp | _Grant | ( _Grant.GrantID between $projection.SetRangeFromValue and $projection.SetRangeToValue ) |
| [0..1] | C_Setleaf | _Setleaf | $projection.SetClass = _Setleaf.SetClass and $projection.SetSubClass = _Setleaf.SetSubClass and $projection.SetID = _Setleaf.SetID and $projection.SetLineNumber = _Setleaf.SetLineNumber |
| [0..1] | I_FundsMgmtEmptySet | _EmptySet | $projection.SetRangeOption = _EmptySet.SetRangeOption |
Annotations (10)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | CSETLEAFGRANTGRP | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| ObjectModel.usageType.dataClass | #MASTER | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| ObjectModel.usageType.sizeCategory | #XL | view | |
| VDM.viewType | #CONSUMPTION | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| AccessControl.personalData.blocking | #BLOCKED_DATA_EXCLUDED | view | |
| EndUserText.label | Grant Group Setleaf | view |
Fields (35)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | SetClass | SetClass | Set Class | |
| KEY | SetSubClass | SetSubClass | Subclass | |
| KEY | SetID | SetID | SETID | |
| KEY | SetLineNumber | SetLineNumber | Set Line | |
| KEY | GrantID | _Grant | GrantID | Sender Grant |
| CreatedByUser | _Grant | CreatedByUser | User Name | |
| CreationDate | _Grant | CreationDate | Time Stamp | |
| ValidityStartDate | _Grant | ValidityStartDate | Validity Start Date | |
| ValidityEndDate | _Grant | ValidityEndDate | ValidTo | |
| CompanyCode | _Grant | CompanyCode | Receiver Company Code | |
| CompanyCodeName | _Grant | CompanyCodeName | Company Name | |
| GrantType | _Grant | GrantType | ||
| GrantDescription | _Grant | GrantDescription | ||
| GranteeMgmtSponsor | _Grant | GranteeMgmtSponsor | ||
| BusinessPartnerName | _Grant | BusinessPartnerName | Extracted Customer Name | |
| GrantLifecycleStatus | _Grant | GrantLifecycleStatus | ||
| GrantUserStatus | _Grant | GrantUserStatus | ||
| GranteeMgmtBillingRuleDesc | _Grant | GranteeMgmtBillingRuleDesc | ||
| GranteeMgmtCostSharingRuleDesc | _Grant | GranteeMgmtCostSharingRuleDesc | ||
| GteeMIndrctCostShrngRuleDesc | _Grant | GteeMIndrctCostShrngRuleDesc | ||
| GrantIsBlockedForPosting | _Grant | GrantIsBlockedForPosting | ||
| PreAwardPstgIsAllowedForGrant | _Grant | PreAwardPstgIsAllowedForGrant | ||
| CreationTime | _Grant | CreationTime | Time of Change | |
| LastChangedByUser | _Grant | LastChangedByUser | User Name | |
| LastChangeDate | _Grant | LastChangeDate | Time Stamp | |
| LastChangeTime | _Grant | LastChangeTime | Time changed | |
| GrantAuthznGrp | _Grant | GrantAuthznGrp | ||
| GrantLfcycStatusForAuthzn | _Grant | GrantLfcycStatusForAuthzn | ||
| SetRangeSign | SetRangeSign | SIGN | ||
| SetRangeOption | I_Setleaf | SetRangeOption | Option | |
| SetRangeFromValue | SetRangeFromValue | Valid-From Date | ||
| SetRangeToValue | SetRangeToValue | Valid To | ||
| RangeFrom | _Setleaf | SetRangeFromValue | Valid-From Date | |
| RangeTo | _Setleaf | SetRangeToValue | Valid To | |
| _Grant | _Grant |
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_SetLeafForGrantGrp.
-- 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: CSETLEAFGRANTGRP
CREATE VIEW C_SetLeafForGrantGrp AS
SELECT
SetClass,
SetSubClass,
SetID,
SetLineNumber,
_Grant.GrantID AS GrantID,
_Grant.CreatedByUser AS CreatedByUser,
_Grant.CreationDate AS CreationDate,
_Grant.ValidityStartDate AS ValidityStartDate,
_Grant.ValidityEndDate AS ValidityEndDate,
_Grant.CompanyCode AS CompanyCode,
_Grant.CompanyCodeName AS CompanyCodeName,
_Grant.GrantType AS GrantType,
_Grant.GrantDescription AS GrantDescription,
_Grant.GranteeMgmtSponsor AS GranteeMgmtSponsor,
_Grant.BusinessPartnerName AS BusinessPartnerName,
_Grant.GrantLifecycleStatus AS GrantLifecycleStatus,
_Grant.GrantUserStatus AS GrantUserStatus,
_Grant.GranteeMgmtBillingRuleDesc AS GranteeMgmtBillingRuleDesc,
_Grant.GranteeMgmtCostSharingRuleDesc AS GranteeMgmtCostSharingRuleDesc,
_Grant.GteeMIndrctCostShrngRuleDesc AS GteeMIndrctCostShrngRuleDesc,
_Grant.GrantIsBlockedForPosting AS GrantIsBlockedForPosting,
_Grant.PreAwardPstgIsAllowedForGrant AS PreAwardPstgIsAllowedForGrant,
_Grant.CreationTime AS CreationTime,
_Grant.LastChangedByUser AS LastChangedByUser,
_Grant.LastChangeDate AS LastChangeDate,
_Grant.LastChangeTime AS LastChangeTime,
_Grant.GrantAuthznGrp AS GrantAuthznGrp,
_Grant.GrantLfcycStatusForAuthzn AS GrantLfcycStatusForAuthzn,
SetRangeSign,
I_Setleaf.SetRangeOption AS SetRangeOption,
SetRangeFromValue,
SetRangeToValue,
_Setleaf.SetRangeFromValue AS RangeFrom,
_Setleaf.SetRangeToValue AS RangeTo
FROM I_Setleaf
LEFT OUTER JOIN C_Grant_Objp AS _Grant ON /* condition not available in parsed metadata */ -- association [0..*]
LEFT OUTER JOIN C_Setleaf AS _Setleaf ON SetClass = _Setleaf.SetClass AND SetSubClass = _Setleaf.SetSubClass AND SetID = _Setleaf.SetID AND SetLineNumber = _Setleaf.SetLineNumber -- association [0..1]
LEFT OUTER JOIN I_FundsMgmtEmptySet AS _EmptySet ON SetRangeOption = _EmptySet.SetRangeOption -- association [0..1]
;
Learn More
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- CDS View Annotations — A Complete Guide
- What Is a CDS View in SAP S/4HANA?
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- CDS View Field Mapping and Associations
- Understanding the SAP S/4HANA Data Model
- CDS View Extensions and Custom Fields in SAP S/4HANA
- Released APIs and Stability Contracts in SAP S/4HANA
- BSEG to ACDOCA: The Universal Journal Migration
- Business Partner Migration: KNA1/LFA1 to BUT000
- Material Document Migration: MSEG/MKPF to MATDOC
- How to Find the Right CDS View for an SAP Table
- BW Extractor to CDS View Migration Guide
- S/4HANA CDS View Deprecation: What You Need to Know
- ABAP CDS View Tutorial — From Basics to Real-World Examples
- RAP and CDS Views — Building Transactional Apps in SAP S/4HANA
- Sales Document Status Migration: VBUP/VBUK Removal in S/4HANA
- CO Tables in S/4HANA: COEP, COBK, COSS, COSP to ACDOCA