P_RACBROpenRevAtContrLevel

DDL: P_RACBROPENREVATCONTRLEVEL Type: view_entity COMPOSITE

P_RACBROpenRevAtContrLevel is a Composite CDS View in SAP S/4HANA. It reads from 2 data sources (P_RASumRevenuePerPeriod, P_RATotalOpenRevenue) and exposes 16 fields with key field RevenueAccountingContract.

Data Sources (2)

SourceAliasJoin Type
P_RASumRevenuePerPeriod P_RASumRevenuePerPeriod union_all
P_RATotalOpenRevenue P_RATotalOpenRevenue from

Parameters (4)

NameTypeDefault
P_FiscalYear fis_gjahr
P_FiscalPeriod fins_fiscalperiod
P_ToFiscalYear fis_gjahr
P_ToFiscalPeriod fins_fiscalperiod

Annotations (4)

NameValueLevelField
AccessControl.authorizationCheck #NOT_REQUIRED view
Metadata.ignorePropagatedAnnotations true view
VDM.private true view
VDM.viewType #COMPOSITE view

Fields (16)

KeyFieldSource TableSource FieldDescription
KEY RevenueAccountingContract EventOpenRev RevenueAccountingContract Revenue Contract
CompanyCode EventOpenRev CompanyCode Receiver Company Code
AccountingPrinciple EventOpenRev AccountingPrinciple AP Ledger/CoCode
SalesDocumentCurrency EventOpenRev SalesDocumentCurrency Currency
TotalOpenRevenue EventOpenRev TotalOpenRevenue
CatchupAmountInPeriod
P_FiscalYear
P_FiscalPeriod
P_ToFiscalYear
RevenueAccountingContract Revenue Contract
CompanyCode TMOpenRev CompanyCode Receiver Company Code
AccountingPrinciple TMOpenRev AccountingPrinciple AP Ledger/CoCode
SalesDocumentCurrency TMOpenRev SalesDocumentCurrency Currency
TotalOpenRevenue TMOpenRev RecognizedAmountInPeriod
CatchupAmountInPeriod TMOpenRev CatchupAmountInPeriod
TotalOpenInvoice

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_RACBROpenRevAtContrLevel.
-- 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_FiscalPeriod : fins_fiscalperiod, P_ToFiscalYear : fis_gjahr, P_ToFiscalPeriod : fins_fiscalperiod

CREATE VIEW P_RACBROpenRevAtContrLevel AS
SELECT
  EventOpenRev.RevenueAccountingContract AS RevenueAccountingContract,
  EventOpenRev.CompanyCode AS CompanyCode,
  EventOpenRev.AccountingPrinciple AS AccountingPrinciple,
  EventOpenRev.SalesDocumentCurrency AS SalesDocumentCurrency,
  EventOpenRev.TotalOpenRevenue AS TotalOpenRevenue,
  cast(0 as farr_open_revenue) AS CatchupAmountInPeriod,
  EventOpenRev.TotalOpenInvoice as TotalOpenInvoice AS P_FiscalYear,
  P_FromFiscalPeriod : $parameters.P_FiscalPeriod AS P_FiscalPeriod,
  P_ToFiscalYear : $parameters.P_ToFiscalYear AS P_ToFiscalYear,
  cast(0 as farr_open_revenue) AS TotalOpenInvoice
FROM P_RATotalOpenRevenue
-- UNION ALL with additional select branch(es): P_RASumRevenuePerPeriod
;