P_RAFulfilledQtyPerKeyGrp

DDL: P_RAFULFILLEDQTYPERKEYGRP Type: view_entity COMPOSITE

P_RAFulfilledQtyPerKeyGrp is a Composite CDS View in SAP S/4HANA. It reads from 2 data sources (P_RAFulfillmentWithContractId, P_RAFlmtRecnclnKeyGroup) and exposes 7 fields with key fields PerformanceObligation, RecnclnKeyGroupId.

Data Sources (2)

SourceAliasJoin Type
P_RAFulfillmentWithContractId Fulfill from
P_RAFlmtRecnclnKeyGroup RecnclnKeyGroup inner

Annotations (3)

NameValueLevelField
AccessControl.authorizationCheck #NOT_REQUIRED view
VDM.private true view
VDM.viewType #COMPOSITE view

Fields (7)

KeyFieldSource TableSource FieldDescription
KEY PerformanceObligation P_RAFulfillmentWithContractId PerformanceObligation Performance Obligation
KEY RecnclnKeyGroupId P_RAFlmtRecnclnKeyGroup RecnclnKeyGroupId
RevenueAccountingContract P_RAFlmtRecnclnKeyGroup RevenueAccountingContract Revenue Contract
FulfilledQuantityUnit P_RAFulfillmentWithContractId FulfilledQuantityUnit
TotalFulfilledQtyPerGroup
TotalFulfilledAmountPerGroup
SalesDocumentCurrency P_RAFulfillmentWithContractId SalesDocumentCurrency Currency

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_RAFulfilledQtyPerKeyGrp.
-- 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_RAFulfilledQtyPerKeyGrp AS
SELECT
  Fulfill.PerformanceObligation AS PerformanceObligation,
  RecnclnKeyGroup.RecnclnKeyGroupId AS RecnclnKeyGroupId,
  RecnclnKeyGroup.RevenueAccountingContract AS RevenueAccountingContract,
  Fulfill.FulfilledQuantityUnit AS FulfilledQuantityUnit,
  sum(Fulfill.ReportedFulfilledQuantity) AS TotalFulfilledQtyPerGroup,
  sum(Fulfill.FulfilledAmountInSlsDocCrcy) AS TotalFulfilledAmountPerGroup,
  Fulfill.SalesDocumentCurrency AS SalesDocumentCurrency
FROM P_RAFulfillmentWithContractId AS Fulfill
INNER JOIN P_RAFlmtRecnclnKeyGroup AS RecnclnKeyGroup ON /* join condition not captured in parsed metadata */
;