P_RATotRecgdRevnByCust

DDL: P_RATOTRECGDREVNBYCUST Type: view_entity COMPOSITE

P_RATotRecgdRevnByCust is a Composite CDS View in SAP S/4HANA. It reads from 1 data source (P_RARecgdRevnByCust) and exposes 7 fields with key fields CompanyCode, AccountingPrinciple, BusinessPartnerCustomer, CustomerName, SalesDocumentCurrency.

Data Sources (1)

SourceAliasJoin Type
P_RARecgdRevnByCust P_RARecgdRevnByCust from

Parameters (1)

NameTypeDefault
P_FiscalYear fis_gjahr

Annotations (3)

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

Fields (7)

KeyFieldSource TableSource FieldDescription
KEY CompanyCode CompanyCode Receiver Company Code
KEY AccountingPrinciple AccountingPrinciple AP Ledger/CoCode
KEY BusinessPartnerCustomer BusinessPartnerCustomer CHAR35
KEY CustomerName CustomerName Name of Customer
KEY SalesDocumentCurrency SalesDocumentCurrency Currency
curr232asRAYearlyRecgdRevnInSlsDocCrcy
PerfOblgnHasCustomer PerfOblgnHasCustomer

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_RATotRecgdRevnByCust.
-- 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

CREATE VIEW P_RATotRecgdRevnByCust AS
SELECT
  CompanyCode,
  AccountingPrinciple,
  BusinessPartnerCustomer,
  CustomerName,
  SalesDocumentCurrency,
  coalesce(DeltaRecognizedAmtInSlsDocCrcy + RecgdCatchUpAmtInSlsDocCrcy, cast(0 as abap.curr(23,2))) as RAYearlyRecgdRevnInSlsDocCrcy AS curr232asRAYearlyRecgdRevnInSlsDocCrcy,
  PerfOblgnHasCustomer
FROM P_RARecgdRevnByCust
;