P_RATotalSumRevenue

DDL: P_RATOTALSUMREVENUE Type: view_entity COMPOSITE

P_RATotalSumRevenue is a Composite CDS View in SAP S/4HANA. It reads from 1 data source (I_RevnAcctgDeferralItem) and exposes 10 fields with key fields CompanyCode, AccountingPrinciple, PerformanceObligation.

Data Sources (1)

SourceAliasJoin Type
I_RevnAcctgDeferralItem _DeferralItem from

Parameters (2)

NameTypeDefault
P_FiscalYear fis_gjahr
P_FiscalPeriod fins_fiscalperiod

Annotations (3)

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

Fields (10)

KeyFieldSource TableSource FieldDescription
KEY CompanyCode I_RevnAcctgDeferralItem CompanyCode Receiver Company Code
KEY AccountingPrinciple I_RevnAcctgDeferralItem AccountingPrinciple AP Ledger/CoCode
KEY PerformanceObligation I_RevnAcctgDeferralItem PerformanceObligation Performance Obligation
PerfOblgnFulfillmentType I_RevnAcctgDeferralItem PerfOblgnFulfillmentType Fulfillment Type
RevnAcctgConditionCategory I_RevnAcctgDeferralItem RevnAcctgConditionCategory Violation Category
SalesDocumentCurrency I_RevnAcctgDeferralItem SalesDocumentCurrency Currency
ConditionIsForStatistics ConditionIsForStatistics Statistical
TotalRecognizedAmount
TotalCatchupAmount
TotalInvoicedAmtInSlsDocCrcy

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_RATotalSumRevenue.
-- 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.
-- Parameters: P_FiscalYear : fis_gjahr, P_FiscalPeriod : fins_fiscalperiod

CREATE VIEW P_RATotalSumRevenue AS
SELECT
  _DeferralItem.CompanyCode AS CompanyCode,
  _DeferralItem.AccountingPrinciple AS AccountingPrinciple,
  _DeferralItem.PerformanceObligation AS PerformanceObligation,
  _DeferralItem.PerfOblgnFulfillmentType AS PerfOblgnFulfillmentType,
  _DeferralItem.RevnAcctgConditionCategory AS RevnAcctgConditionCategory,
  _DeferralItem.SalesDocumentCurrency AS SalesDocumentCurrency,
  ConditionIsForStatistics,
  sum(_DeferralItem.DeltaRecognizedAmtInSlsDocCrcy) AS TotalRecognizedAmount,
  sum(_DeferralItem.RecgdCatchUpAmtInSlsDocCrcy) AS TotalCatchupAmount,
  sum(_DeferralItem.DeltaInvoicedAmtInSlsDocCrcy) AS TotalInvoicedAmtInSlsDocCrcy
FROM I_RevnAcctgDeferralItem AS _DeferralItem
;