P_RATotalRecgdRevnByBP

DDL: P_RATOTALRECGDREVNBYBP Type: view_entity COMPOSITE Package: ODATA_FARR_OVERVIEWPAGE

RA Total Recgd Revn by BP

P_RATotalRecgdRevnByBP is a Composite CDS View that provides data about "RA Total Recgd Revn by BP" in SAP S/4HANA. It reads from 1 data source (P_RARecgdRevnByBusinessPartner) and exposes 7 fields with key fields CompanyCode, AccountingPrinciple, BusinessPartner, BusinessPartnerName, FiscalYear. Part of development package ODATA_FARR_OVERVIEWPAGE.

Data Sources (1)

SourceAliasJoin Type
P_RARecgdRevnByBusinessPartner P_RARecgdRevnByBusinessPartner from

Parameters (3)

NameTypeDefault
P_FiscalYear fis_gjahr
P_CompanyCode bukrs
P_AccountingPrinciple accounting_principle

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 BusinessPartner BusinessPartner Issuing Authority
KEY BusinessPartnerName BusinessPartnerName Extracted Customer Name
KEY FiscalYear FiscalYear G/L Fiscal Year
KEY SalesDocumentCurrency SalesDocumentCurrency Currency
curr232asRAYearlyRecgdRevnInSlsDocCrcy

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_RATotalRecgdRevnByBP.
-- 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, P_CompanyCode : bukrs, P_AccountingPrinciple : accounting_principle

CREATE VIEW P_RATotalRecgdRevnByBP AS
SELECT
  CompanyCode,
  AccountingPrinciple,
  BusinessPartner,
  BusinessPartnerName,
  FiscalYear,
  SalesDocumentCurrency,
  coalesce(DeltaRecognizedAmtInSlsDocCrcy + RecgdCatchUpAmtInSlsDocCrcy, cast(0 as abap.curr(23,2))) as RAYearlyRecgdRevnInSlsDocCrcy AS curr232asRAYearlyRecgdRevnInSlsDocCrcy
FROM P_RARecgdRevnByBusinessPartner
;