P_RAYrToDtePerdRevn

DDL: P_RAYRTODTEPERDREVN SQL: PPERDRECGDREVN Type: view 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 (6)

NameValueLevelField
AbapCatalog.sqlViewName PPERDRECGDREVN view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
ClientHandling.algorithm #SESSION_VARIABLE view
VDM.viewType #COMPOSITE view
VDM.private true 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 DeltaRecognizedAmtInSlsDocCrcy Posting Amount
RecgdCatchUpAmtInSlsDocCrcy 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.
-- SQL view name: PPERDRECGDREVN

CREATE VIEW P_RAYrToDtePerdRevn AS
SELECT
  RevnAcctgDeferralItem.CompanyCode AS CompanyCode,
  RevnAcctgDeferralItem.AccountingPrinciple AS AccountingPrinciple,
  RevnAcctgDeferralItem.FiscalYearPeriod AS FiscalYearPeriod,
  case _RAPerformanceObligation.Customer when '' then _RAPerformanceObligation.BusinessPartner else ( case _RAPerformanceObligation.Customer when _RAPerformanceObligation.BusinessPartner then _RAPerformanceObligation.BusinessPartner else _RAPerformanceObligation.Customer end ) end as BusinessPartnerCustomer AS CustomerendendasBusinessPartnerCustomer,
  case _RAPerformanceObligation.Customer when '' then _RAPerformanceObligation._BusinessPartner.BusinessPartnerName else ( case _RAPerformanceObligation.Customer when _RAPerformanceObligation.BusinessPartner then _RAPerformanceObligation._BusinessPartner.BusinessPartnerName else _RAPerformanceObligation._Customer.CustomerName end ) end as CustomerName AS CustomerNameendendasCustomerName,
  DeltaRecognizedAmtInSlsDocCrcy,
  RecgdCatchUpAmtInSlsDocCrcy,
  RevnAcctgDeferralItem.SalesDocumentCurrency AS SalesDocumentCurrency
FROM I_RevnAcctgDeferralItem AS RevnAcctgDeferralItem
;