P_RAContractTotalCost

DDL: P_RACONTRACTTOTALCOST Type: view_entity COMPOSITE Package: FARR_CONTRACT_CDS

RA Contract Total Cost

P_RAContractTotalCost is a Composite CDS View that provides data about "RA Contract Total Cost" in SAP S/4HANA. It reads from 2 data sources (I_RAPerformanceObligation, I_RevnAcctgDeferralItem) and exposes 3 fields with key field RevenueAccountingContract. Part of development package FARR_CONTRACT_CDS.

Data Sources (2)

SourceAliasJoin Type
I_RAPerformanceObligation _PerfOblgn inner
I_RevnAcctgDeferralItem RevnAcctgDeferralItem from

Annotations (3)

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

Fields (3)

KeyFieldSource TableSource FieldDescription
KEY RevenueAccountingContract I_RAPerformanceObligation RevenueAccountingContract Revenue Contract
ContractTotalCost
CostCurrency I_RevnAcctgDeferralItem 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_RAContractTotalCost.
-- 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_RAContractTotalCost AS
SELECT
  _PerfOblgn.RevenueAccountingContract AS RevenueAccountingContract,
  sum(RevnAcctgDeferralItem.DeltaEffectiveAmtInSlsDocCrcy) AS ContractTotalCost,
  RevnAcctgDeferralItem.SalesDocumentCurrency AS CostCurrency
FROM I_RevnAcctgDeferralItem AS RevnAcctgDeferralItem
INNER JOIN I_RAPerformanceObligation AS _PerfOblgn ON /* join condition not captured in parsed metadata */
;