P_RACBROpenRevAtContrLevel
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)
| Source | Alias | Join Type |
|---|---|---|
| P_RASumRevenuePerPeriod | P_RASumRevenuePerPeriod | union_all |
| P_RATotalOpenRevenue | P_RATotalOpenRevenue | from |
Parameters (4)
| Name | Type | Default |
|---|---|---|
| P_FiscalYear | fis_gjahr | |
| P_FiscalPeriod | fins_fiscalperiod | |
| P_ToFiscalYear | fis_gjahr | |
| P_ToFiscalPeriod | fins_fiscalperiod |
Annotations (4)
| Name | Value | Level | Field |
|---|---|---|---|
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| Metadata.ignorePropagatedAnnotations | true | view | |
| VDM.private | true | view | |
| VDM.viewType | #COMPOSITE | view |
Fields (16)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| 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
;
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