P_RAOpenRevenuePerPeriod

DDL: P_RAOPENREVENUEPERPERIOD Type: view_entity COMPOSITE

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)

SourceAliasJoin Type
P_RASumFutureOpenRevenue P_RASumFutureOpenRevenue union_all
P_RASumRevenuePerPeriod P_RASumRevenuePerPeriod from

Parameters (4)

NameTypeDefault
P_FromFiscalYear fis_gjahr
P_FromFiscalPeriod fins_fiscalperiod
P_ToFiscalYear fis_gjahr
P_ToFiscalPeriod fins_fiscalperiod

Associations (2)

CardinalityTargetAliasCondition
[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)

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

Fields (83)

KeyFieldSource TableSource FieldDescription
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
;