P_RAYrToDtePerdRevn

DDL: P_RAYRTODTEPERDREVN Type: view_entity COMPOSITE

P_RAYrToDtePerdRevn is a Composite CDS View in SAP S/4HANA. It reads from 1 data source (I_RevnAcctgDeferralItem) and exposes 8 fields with key fields CompanyCode, AccountingPrinciple, FiscalYearPeriod, CustomerendendasBusinessPartnerCustomer, CustomerNameendendasCustomerName.

Data Sources (1)

SourceAliasJoin Type
I_RevnAcctgDeferralItem RevnAcctgDeferralItem from

Annotations (2)

NameValueLevelField
VDM.private true view
VDM.viewType #COMPOSITE view

Fields (8)

KeyFieldSource TableSource FieldDescription
KEY CompanyCode I_RevnAcctgDeferralItem CompanyCode Receiver Company Code
KEY AccountingPrinciple I_RevnAcctgDeferralItem AccountingPrinciple AP Ledger/CoCode
KEY FiscalYearPeriod I_RevnAcctgDeferralItem FiscalYearPeriod Period/Year
KEY CustomerendendasBusinessPartnerCustomer
KEY CustomerNameendendasCustomerName
DeltaRecognizedAmtInSlsDocCrcy I_RevnAcctgDeferralItem DeltaRecognizedAmtInSlsDocCrcy Posting Amount
RecgdCatchUpAmtInSlsDocCrcy I_RevnAcctgDeferralItem RecgdCatchUpAmtInSlsDocCrcy Catchup Amount
SalesDocumentCurrency 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_RAYrToDtePerdRevn.
-- 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_RAYrToDtePerdRevn AS
SELECT
  RevnAcctgDeferralItem.CompanyCode AS CompanyCode,
  RevnAcctgDeferralItem.AccountingPrinciple AS AccountingPrinciple,
  RevnAcctgDeferralItem.FiscalYearPeriod AS FiscalYearPeriod,
  case RevnAcctgDeferralItem._RAPerformanceObligation.Customer when '' then RevnAcctgDeferralItem._RAPerformanceObligation.BusinessPartner else (case RevnAcctgDeferralItem._RAPerformanceObligation.Customer when RevnAcctgDeferralItem._RAPerformanceObligation.BusinessPartner then RevnAcctgDeferralItem._RAPerformanceObligation.BusinessPartner else RevnAcctgDeferralItem._RAPerformanceObligation.Customer end) end as BusinessPartnerCustomer AS CustomerendendasBusinessPartnerCustomer,
  case RevnAcctgDeferralItem._RAPerformanceObligation.Customer when '' then RevnAcctgDeferralItem._RAPerformanceObligation._BusinessPartner.BusinessPartnerName else (case RevnAcctgDeferralItem._RAPerformanceObligation.Customer when RevnAcctgDeferralItem._RAPerformanceObligation.BusinessPartner then RevnAcctgDeferralItem._RAPerformanceObligation._BusinessPartner.BusinessPartnerName else RevnAcctgDeferralItem._RAPerformanceObligation._Customer.CustomerName end) end as CustomerName AS CustomerNameendendasCustomerName,
  RevnAcctgDeferralItem.DeltaRecognizedAmtInSlsDocCrcy AS DeltaRecognizedAmtInSlsDocCrcy,
  RevnAcctgDeferralItem.RecgdCatchUpAmtInSlsDocCrcy AS RecgdCatchUpAmtInSlsDocCrcy,
  RevnAcctgDeferralItem.SalesDocumentCurrency AS SalesDocumentCurrency
FROM I_RevnAcctgDeferralItem AS RevnAcctgDeferralItem
;