P_RACBRTotalOpenInvoice

DDL: P_RACBRTOTALOPENINVOICE Type: view_entity COMPOSITE

P_RACBRTotalOpenInvoice is a Composite CDS View in SAP S/4HANA. It reads from 7 data sources and exposes 24 fields with key fields PerformanceObligation, CompanyCode, AccountingPrinciple, CompanyCode, AccountingPrinciple.

Data Sources (7)

SourceAliasJoin Type
I_RAPostponedItem _AssumedInv inner
I_RAProcdInvoiceRevnAcctItem _PlannedInv inner
I_RAContrBalRclassfctnAging I_RAContrBalRclassfctnAging inner
I_RAContrBalRclassfctnAging I_RAContrBalRclassfctnAging inner
P_RATotalOpenRevenue P_RATotalOpenRevenue union_all
I_RevenueAccountingMapping RAMapping from
I_RevenueAccountingMapping RAMappingAssume union_all

Parameters (3)

NameTypeDefault
P_FiscalYear farr_from_fiscal_year
P_FiscalPeriod farr_from_fiscal_period
P_GeneralLedgerAgingScope fins_aging

Annotations (4)

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

Fields (24)

KeyFieldSource TableSource FieldDescription
KEY PerformanceObligation I_RevenueAccountingMapping PerformanceObligation Performance Obligation
KEY CompanyCode Receiver Company Code
KEY AccountingPrinciple I_RevenueAccountingMapping AccountingPrinciple AP Ledger/CoCode
RevenueAccountingContract I_RevenueAccountingMapping RevenueAccountingContract Revenue Contract
SalesDocumentCurrency Currency
TotalInvoicedAmtInSlsDocCrcy
RAConditionItemIsStatistical Statistical
P_FiscalYear
PerformanceObligation Performance Obligation
KEY CompanyCode Receiver Company Code
KEY AccountingPrinciple I_RevenueAccountingMapping AccountingPrinciple AP Ledger/CoCode
RevenueAccountingContract I_RevenueAccountingMapping RevenueAccountingContract Revenue Contract
SalesDocumentCurrency Currency
TotalInvoicedAmtInSlsDocCrcy
RAConditionItemIsStatistical Statistical
P_FiscalYear
PerformanceObligation Performance Obligation
KEY CompanyCode EventOpenInv CompanyCode Receiver Company Code
KEY AccountingPrinciple EventOpenInv AccountingPrinciple AP Ledger/CoCode
RevenueAccountingContract EventOpenInv RevenueAccountingContract Revenue Contract
SalesDocumentCurrency EventOpenInv SalesDocumentCurrency Currency
TotalInvoicedAmtInSlsDocCrcy
RAConditionItemIsStatistical EventOpenInv ConditionIsForStatistics Statistical
RevnAcctgConditionCategory EventOpenInv RevnAcctgConditionCategory

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_RACBRTotalOpenInvoice.
-- 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 : farr_from_fiscal_year, P_FiscalPeriod : farr_from_fiscal_period, P_GeneralLedgerAgingScope : fins_aging

CREATE VIEW P_RACBRTotalOpenInvoice AS
SELECT
  RAMapping.PerformanceObligation AS PerformanceObligation,
  RAMapping._RAPerformanceObligation.CompanyCode AS CompanyCode,
  RAMapping.AccountingPrinciple AS AccountingPrinciple,
  RAMapping.RevenueAccountingContract AS RevenueAccountingContract,
  RAMapping._RAPerformanceObligation.SalesDocumentCurrency AS SalesDocumentCurrency,
  sum(_PlannedInv._InvoiceConditon.RevnAcctgPostgAmtInSlsDocCrcy) AS TotalInvoicedAmtInSlsDocCrcy,
  _PlannedInv._InvoiceConditon.RAConditionItemIsStatistical AS RAConditionItemIsStatistical,
  _PlannedInv._InvoiceConditon.RevnAcctgConditionCategory AS P_FiscalYear,
  EventOpenInv.RevnAcctgConditionCategory AS RevnAcctgConditionCategory
FROM I_RevenueAccountingMapping AS RAMapping
INNER JOIN I_RAProcdInvoiceRevnAcctItem AS _PlannedInv ON /* join condition not captured in parsed metadata */
INNER JOIN I_RAContrBalRclassfctnAging ON /* join condition not captured in parsed metadata */
INNER JOIN I_RAPostponedItem AS _AssumedInv ON /* join condition not captured in parsed metadata */
-- UNION ALL with additional select branch(es): I_RevenueAccountingMapping, P_RATotalOpenRevenue
;