P_RACBRTotalOpenInvoice
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)
| Source | Alias | Join 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)
| Name | Type | Default |
|---|---|---|
| P_FiscalYear | farr_from_fiscal_year | |
| P_FiscalPeriod | farr_from_fiscal_period | |
| P_GeneralLedgerAgingScope | fins_aging |
Annotations (4)
| Name | Value | Level | Field |
|---|---|---|---|
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| Metadata.ignorePropagatedAnnotations | true | view | |
| VDM.private | true | view | |
| VDM.viewType | #COMPOSITE | view |
Fields (24)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| 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
;
Learn More
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- CDS View Annotations — A Complete Guide
- What Is a CDS View in SAP S/4HANA?
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- CDS View Field Mapping and Associations
- Understanding the SAP S/4HANA Data Model
- CDS View Extensions and Custom Fields in SAP S/4HANA
- Released APIs and Stability Contracts in SAP S/4HANA
- BSEG to ACDOCA: The Universal Journal Migration
- Business Partner Migration: KNA1/LFA1 to BUT000
- Material Document Migration: MSEG/MKPF to MATDOC
- How to Find the Right CDS View for an SAP Table
- BW Extractor to CDS View Migration Guide
- S/4HANA CDS View Deprecation: What You Need to Know
- ABAP CDS View Tutorial — From Basics to Real-World Examples
- RAP and CDS Views — Building Transactional Apps in SAP S/4HANA
- Sales Document Status Migration: VBUP/VBUK Removal in S/4HANA
- CO Tables in S/4HANA: COEP, COBK, COSS, COSP to ACDOCA