P_GrantCostAllocSgmt
WUGRANT Cost Allocation Segments
P_GrantCostAllocSgmt is a Composite CDS View that provides data about "WUGRANT Cost Allocation Segments" in SAP S/4HANA. It reads from 1 data source (I_GrantCostAllocSgmt) and exposes 40 fields with key fields GrantWhereUsedObjType, GrantID, AllocationType, AllocationCycle, ValidityStartDate. Part of development package ODATA_PSM_S4C_GM_WHRUSED_GRANT.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_GrantCostAllocSgmt | I_GrantCostAllocSgmt | from |
Annotations (11)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | PWUGRANTCAS | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AbapCatalog.preserveKey | true | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| EndUserText.label | WUGRANT Cost Allocation Segments | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| ObjectModel.usageType.sizeCategory | #L | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| ObjectModel.usageType.dataClass | #MIXED | view | |
| VDM.private | true | view | |
| VDM.viewType | #COMPOSITE | view |
Fields (40)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | GrantWhereUsedObjType | |||
| KEY | GrantID | GrantID | Sender Grant | |
| KEY | AllocationType | AllocationType | Table | |
| KEY | AllocationCycle | AllocationCycle | Cycle | |
| KEY | ValidityStartDate | ValidityStartDate | Validity Start Date | |
| KEY | AllocationCycleSegment | AllocationCycleSegment | Segment Number | |
| KEY | AllocationSetType | AllocationSetType | Type of Set | |
| KEY | AllocDocumentSequenceNumber | AllocDocumentSequenceNumber | ||
| AllocationCycleName | AllocationCycleName | Allocation Cycle | ||
| AllocationCycleNameText | AllocationCycleNameText | Cycle Description | ||
| Ledger | Ledger | Ledger | ||
| AllocationLastExecutedByUser | AllocationLastExecutedByUser | |||
| LastChangedByUser | LastChangedByUser | User Name | ||
| AllocationLastExecutedDate | AllocationLastExecutedDate | |||
| SegmentName | SegmentName | Segment Name | ||
| SegmentNameText | SegmentNameText | |||
| AllocationSegmentIsLocked | AllocationSegmentIsLocked | Lock indicator | ||
| AllocationFieldGroup | AllocationFieldGroup | Var. Portion Type | ||
| AllocationFieldName | AllocationFieldName | Field | ||
| AllocationSetName | AllocationSetName | |||
| AllocationFieldMinimumValue | AllocationFieldMinimumValue | From Value | ||
| AllocationFieldMaximumValue | AllocationFieldMaximumValue | To Value | ||
| AllocationSetId | AllocationSetId | Group ID | ||
| AllocKeyFieldIsInitial | AllocKeyFieldIsInitial | |||
| AllocKeyFieldIsAllValues | AllocKeyFieldIsAllValues | |||
| ValidityEndDate | ValidityEndDate | ValidTo | ||
| AllocationActualPlanVariant | AllocationActualPlanVariant | Actual/Plan | ||
| AllocationPostingType | AllocationPostingType | Posting Type | ||
| AllocationPostingTypeText | _AllocationPostingTypeText | AllocationPostingTypeText | ||
| AllocationReceiverRuleText | _AllocationReceiverRuleText | AllocationReceiverRuleText | ||
| AllocationSenderRuleText | _AllocationSenderRuleText | AllocationSenderRuleText | ||
| AllocationSenderRule | AllocationSenderRule | Sender Rule | ||
| AllocationReceiverRule | AllocationReceiverRule | Receiver Rule | ||
| GrantAllocationRole | GrantAllocationRole | |||
| GrantAllocationGroup | GrantAllocationGroup | |||
| _Cycle | _Cycle | |||
| _Segment | _Segment | |||
| _AllocationPostingTypeText | _AllocationPostingTypeText | |||
| _AllocationReceiverRuleText | _AllocationReceiverRuleText | |||
| _AllocationSenderRuleText | _AllocationSenderRuleText |
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_GrantCostAllocSgmt.
-- 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_GrantCostAllocSgmt AS
SELECT
cast ('5CAS' as psm_s4c_gm_grant_wu_obj_typ_vh) AS GrantWhereUsedObjType,
GrantID,
AllocationType,
AllocationCycle,
ValidityStartDate,
AllocationCycleSegment,
AllocationSetType,
AllocDocumentSequenceNumber,
AllocationCycleName,
AllocationCycleNameText,
Ledger,
AllocationLastExecutedByUser,
LastChangedByUser,
AllocationLastExecutedDate,
SegmentName,
SegmentNameText,
AllocationSegmentIsLocked,
AllocationFieldGroup,
AllocationFieldName,
AllocationSetName,
AllocationFieldMinimumValue,
AllocationFieldMaximumValue,
AllocationSetId,
AllocKeyFieldIsInitial,
AllocKeyFieldIsAllValues,
ValidityEndDate,
AllocationActualPlanVariant,
AllocationPostingType,
_AllocationPostingTypeText.AllocationPostingTypeText AS AllocationPostingTypeText,
_AllocationReceiverRuleText.AllocationReceiverRuleText AS AllocationReceiverRuleText,
_AllocationSenderRuleText.AllocationSenderRuleText AS AllocationSenderRuleText,
AllocationSenderRule,
AllocationReceiverRule,
GrantAllocationRole,
GrantAllocationGroup
FROM I_GrantCostAllocSgmt
;
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