P_RAYrToDteRecgdRevnByCust

DDL: P_RAYRTODTERECGDREVNBYCUST SQL: PREVBYCUST Type: view COMPOSITE

P_RAYrToDteRecgdRevnByCust is a Composite CDS View in SAP S/4HANA. It reads from 1 data source (P_RAYrToDtePerdRevnByCust) and exposes 9 fields with key fields CompanyCode, AccountingPrinciple, BusinessPartnerCustomer, CustomerName, FiscalYear.

Data Sources (1)

SourceAliasJoin Type
P_RAYrToDtePerdRevnByCust P_RAYrToDtePerdRevnByCust from

Annotations (7)

NameValueLevelField
AbapCatalog.sqlViewName PREVBYCUST view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #CHECK view
AbapCatalog.preserveKey true view
ClientHandling.algorithm #SESSION_VARIABLE view
VDM.viewType #COMPOSITE view
VDM.private true view

Fields (9)

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 FiscalYear
KEY SalesDocumentCurrency SalesDocumentCurrency Currency
DeltaRecognizedAmtInSlsDocCrcy DeltaRecognizedAmtInSlsDocCrcy
RecgdCatchUpAmtInSlsDocCrcy RecgdCatchUpAmtInSlsDocCrcy
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_RAYrToDteRecgdRevnByCust.
-- 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: PREVBYCUST

CREATE VIEW P_RAYrToDteRecgdRevnByCust AS
SELECT
  CompanyCode,
  AccountingPrinciple,
  BusinessPartnerCustomer,
  CustomerName,
  substring(FiscalYearPeriod, 1, 4) AS FiscalYear,
  SalesDocumentCurrency,
  DeltaRecognizedAmtInSlsDocCrcy,
  RecgdCatchUpAmtInSlsDocCrcy,
  PerfOblgnHasCustomer
FROM P_RAYrToDtePerdRevnByCust
;