P_RAOpenRevenuePerPeriod
P_RAOpenRevenuePerPeriod is a Composite CDS View in SAP S/4HANA. It reads from 2 data sources (P_RASumFutureOpenRevenue, P_RASumRevenuePerPeriod) and exposes 83 fields with key fields PerformanceObligation, AccountingPrinciple, CompanyCode, RAReportingPeriodOperatorCode, FiscalYearPeriod. It has 2 associations to related views.
Data Sources (2)
| Source | Alias | Join Type |
|---|---|---|
| P_RASumFutureOpenRevenue | P_RASumFutureOpenRevenue | union_all |
| P_RASumRevenuePerPeriod | P_RASumRevenuePerPeriod | from |
Parameters (4)
| Name | Type | Default |
|---|---|---|
| P_FromFiscalYear | fis_gjahr | |
| P_FromFiscalPeriod | fins_fiscalperiod | |
| P_ToFiscalYear | fis_gjahr | |
| P_ToFiscalPeriod | fins_fiscalperiod |
Associations (2)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..1] | I_RAAccountingPeriod | Period | PeriodicRevenue.CompanyCode = Period.CompanyCode and PeriodicRevenue.AccountingPrinciple = Period.AccountingPrinciple and PeriodicRevenue.FiscalYearPeriod = Period.FiscalYearPeriod |
| [0..1] | I_RAReportingPerdOperator | ReportingPerdOperator | ReportingPerdOperator.RAReportingPeriodOperatorCode = '>' |
Annotations (4)
| Name | Value | Level | Field |
|---|---|---|---|
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| Metadata.ignorePropagatedAnnotations | true | view | |
| VDM.private | true | view | |
| VDM.viewType | #COMPOSITE | view |
Fields (83)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | PerformanceObligation | PerformanceObligation | Performance Obligation | |
| KEY | AccountingPrinciple | AccountingPrinciple | AP Ledger/CoCode | |
| KEY | CompanyCode | CompanyCode | Receiver Company Code | |
| KEY | RAReportingPeriodOperatorCode | |||
| KEY | FiscalYearPeriod | Period | FiscalYearPeriod | Period/Year |
| KEY | RevnAcctgConditionCategory | RevnAcctgConditionCategory | ||
| BandFiscalYearPeriodText | ||||
| SalesDocumentCurrency | SalesDocumentCurrency | Currency | ||
| BandFiscalYearText | ||||
| BandFiscalPeriodText | ||||
| BandFiscalQuarterText | ||||
| FromFiscalYearPeriod | ||||
| ToFiscalYearPeriod | ||||
| RevenueAccountingContract | RevenueAccountingContract | Revenue Contract | ||
| PerformanceObligationClass | PerformanceObligationClass | Performance Obligation Name | ||
| BusinessPartner | BusinessPartner | Issuing Authority | ||
| Customer | Customer | Sold-to Party | ||
| PerfOblgnFulfillmentType | PerfOblgnFulfillmentType | Fulfillment Type | ||
| PerfOblgnEventType | PerfOblgnEventType | Event Type | ||
| RevnAcctgSalesOrganization | RevnAcctgSalesOrganization | Sales Org. | ||
| FunctionalArea | FunctionalArea | Sendr Fctl Area | ||
| BusinessArea | BusinessArea | Business Area | ||
| Segment | Segment | Segment number | ||
| ProfitCenter | ProfitCenter | Profit Center | ||
| CostCenter | CostCenter | Cost Center | ||
| OrderID | OrderID | Order ID | ||
| SalesOrder | SalesOrder | SD Document | ||
| WBSElementExternalID | WBSElementExternalID | WBS Element External ID | ||
| RevnAcctgPerfOblgnStatus | RevnAcctgPerfOblgnStatus | Perf. Oblig. Status | ||
| ControllingArea | ControllingArea | Controlling Area | ||
| RAPerformanceObligationType | RAPerformanceObligationType | Performance Obligation Type | ||
| RAInitialEffectiveDate | RAInitialEffectiveDate | |||
| _RevenueAccountingContract | _RevenueAccountingContract | |||
| _RAPerformanceObligation | _RAPerformanceObligation | |||
| _BusinessPartner | _BusinessPartner | |||
| _BusinessArea | _BusinessArea | |||
| _Customer | _Customer | |||
| _FunctionalArea | _FunctionalArea | |||
| _Order | _Order | |||
| _Segment | _Segment | |||
| _WBSElement | _WBSElement | |||
| _ProfitCenter | _ProfitCenter | |||
| _CostCenter | _CostCenter | |||
| P_ToFiscalYear | ||||
| KEY | AccountingPrinciple | AccountingPrinciple | AP Ledger/CoCode | |
| KEY | CompanyCode | CompanyCode | Receiver Company Code | |
| KEY | RAReportingPeriodOperatorCode | ReportingPerdOperator | RAReportingPeriodOperatorCode | |
| KEY | FiscalYearPeriod | Period/Year | ||
| KEY | RevnAcctgConditionCategory | RevnAcctgConditionCategory | ||
| SalesDocumentCurrency | SalesDocumentCurrency | Currency | ||
| FromFiscalYearPeriod | ||||
| ToFiscalYearPeriod | ||||
| RevenueAccountingContract | RevenueAccountingContract | Revenue Contract | ||
| PerformanceObligationClass | PerformanceObligationClass | Performance Obligation Name | ||
| BusinessPartner | BusinessPartner | Issuing Authority | ||
| Customer | Customer | Sold-to Party | ||
| PerfOblgnFulfillmentType | PerfOblgnFulfillmentType | Fulfillment Type | ||
| PerfOblgnEventType | PerfOblgnEventType | Event Type | ||
| RevnAcctgSalesOrganization | RevnAcctgSalesOrganization | Sales Org. | ||
| FunctionalArea | FunctionalArea | Sendr Fctl Area | ||
| BusinessArea | BusinessArea | Business Area | ||
| Segment | Segment | Segment number | ||
| ProfitCenter | ProfitCenter | Profit Center | ||
| CostCenter | CostCenter | Cost Center | ||
| OrderID | OrderID | Order ID | ||
| SalesOrder | SalesOrder | SD Document | ||
| WBSElementExternalID | WBSElementExternalID | WBS Element External ID | ||
| RevnAcctgPerfOblgnStatus | RevnAcctgPerfOblgnStatus | Perf. Oblig. Status | ||
| ControllingArea | ControllingArea | Controlling Area | ||
| RAPerformanceObligationType | RAPerformanceObligationType | Performance Obligation Type | ||
| RAInitialEffectiveDate | RAInitialEffectiveDate | |||
| _RevenueAccountingContract | _RevenueAccountingContract | |||
| _RAPerformanceObligation | _RAPerformanceObligation | |||
| _BusinessPartner | _BusinessPartner | |||
| _BusinessArea | _BusinessArea | |||
| _Customer | _Customer | |||
| _FunctionalArea | _FunctionalArea | |||
| _Order | _Order | |||
| _Segment | _Segment | |||
| _WBSElement | _WBSElement | |||
| _ProfitCenter | _ProfitCenter | |||
| _CostCenter | _CostCenter | |||
| _ControllingArea | _ControllingArea |
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_RAOpenRevenuePerPeriod.
-- 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_FromFiscalYear : fis_gjahr, P_FromFiscalPeriod : fins_fiscalperiod, P_ToFiscalYear : fis_gjahr, P_ToFiscalPeriod : fins_fiscalperiod
CREATE VIEW P_RAOpenRevenuePerPeriod AS
SELECT
PerformanceObligation,
AccountingPrinciple,
CompanyCode,
cast('=' as farr_cds_discl_rptg_perd_optr) AS RAReportingPeriodOperatorCode,
Period.FiscalYearPeriod AS FiscalYearPeriod,
RevnAcctgConditionCategory,
cast(Period.FiscalYearPeriod as farr_reporting_year_period) AS BandFiscalYearPeriodText,
SalesDocumentCurrency,
cast(Period.FiscalYear as farr_reporting_year) AS BandFiscalYearText,
cast(Period.FiscalPeriod as farr_reporting_period) AS BandFiscalPeriodText,
cast(Period.FiscalQuarter as farr_reporting_quarter) AS BandFiscalQuarterText,
concat($parameters.P_FromFiscalYear, $parameters.P_FromFiscalPeriod) AS FromFiscalYearPeriod,
concat($parameters.P_ToFiscalYear, $parameters.P_ToFiscalPeriod) AS ToFiscalYearPeriod,
RevenueAccountingContract,
PerformanceObligationClass,
BusinessPartner,
Customer,
PerfOblgnFulfillmentType,
PerfOblgnEventType,
RevnAcctgSalesOrganization,
FunctionalArea,
BusinessArea,
Segment,
ProfitCenter,
CostCenter,
OrderID,
SalesOrder,
WBSElementExternalID,
RevnAcctgPerfOblgnStatus,
ControllingArea,
RAPerformanceObligationType,
RAInitialEffectiveDate
FROM P_RASumRevenuePerPeriod
LEFT OUTER JOIN I_RAAccountingPeriod AS Period ON PeriodicRevenue.CompanyCode = Period.CompanyCode AND PeriodicRevenue.AccountingPrinciple = Period.AccountingPrinciple AND PeriodicRevenue.FiscalYearPeriod = Period.FiscalYearPeriod -- association [0..1]
LEFT OUTER JOIN I_RAReportingPerdOperator AS ReportingPerdOperator ON ReportingPerdOperator.RAReportingPeriodOperatorCode = '>' -- association [0..1]
-- UNION ALL with additional select branch(es): P_RASumFutureOpenRevenue
;
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