P_RARevnExplItemBase

DDL: P_RAREVNEXPLITEMBASE Type: view_entity COMPOSITE Package: ODATA_FARR_REV_EXPLANATION

RA Revn Expl Item Base with Revenue

P_RARevnExplItemBase is a Composite CDS View that provides data about "RA Revn Expl Item Base with Revenue" in SAP S/4HANA. It reads from 3 data sources (P_RARevnAmtPerRecnclnKeyGrp, P_RARevnAmtPerRecnclnKeyGrp, P_RARevnAmtPerRecnclnKeyGrp) and exposes 23 fields with key fields PerformanceObligation, RecnclnKeyGroupId, RARevenueAdjustReason, RecnclnKeyGroupId, RARevenueAdjustReason. Part of development package ODATA_FARR_REV_EXPLANATION.

Data Sources (3)

SourceAliasJoin Type
P_RARevnAmtPerRecnclnKeyGrp P_RARevnAmtPerRecnclnKeyGrp from
P_RARevnAmtPerRecnclnKeyGrp P_RARevnAmtPerRecnclnKeyGrp union_all
P_RARevnAmtPerRecnclnKeyGrp P_RARevnAmtPerRecnclnKeyGrp union_all

Annotations (4)

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

Fields (23)

KeyFieldSource TableSource FieldDescription
KEY PerformanceObligation PerformanceObligation Performance Obligation
KEY RecnclnKeyGroupId RecnclnKeyGroupId
KEY RARevenueAdjustReason
RevenueAccountingContract RevenueAccountingContract Revenue Contract
RelatedChgTypeItemKeyGroupId RelatedChgTypeItemKeyGroupId
FiscalYearPeriod FiscalYearPeriod Period/Year
DeltaRecognizedAmtInSlsDocCrcy TolRecgdCatchupPerGroup
SalesDocumentCurrency SalesDocumentCurrency Currency
KEY RecnclnKeyGroupId RecnclnKeyGroupId
KEY RARevenueAdjustReason
RevenueAccountingContract RevenueAccountingContract Revenue Contract
RelatedChgTypeItemKeyGroupId RelatedChgTypeItemKeyGroupId
FiscalYearPeriod FiscalYearPeriod Period/Year
DeltaRecognizedAmtInSlsDocCrcy
SalesDocumentCurrency SalesDocumentCurrency Currency
KEY RecnclnKeyGroupId RecnclnKeyGroupId
KEY RARevenueAdjustReason
RevenueAccountingContract RevenueAccountingContract Revenue Contract
RelatedChgTypeItemKeyGroupId RelatedChgTypeItemKeyGroupId
FiscalYearPeriod FiscalYearPeriod Period/Year
DeltaRecognizedAmtInSlsDocCrcy TolRecgdRevenuePerGroup
SalesDocumentCurrency SalesDocumentCurrency Currency
OpenRevenueByAdjustReason

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_RARevnExplItemBase.
-- 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.

CREATE VIEW P_RARevnExplItemBase AS
SELECT
  PerformanceObligation,
  RecnclnKeyGroupId,
  cast('0' as farr_cds_rev_adjust_reason) AS RARevenueAdjustReason,
  RevenueAccountingContract,
  RelatedChgTypeItemKeyGroupId,
  FiscalYearPeriod,
  TolRecgdCatchupPerGroup AS DeltaRecognizedAmtInSlsDocCrcy,
  SalesDocumentCurrency,
  cast(0 as abap.curr(23,2)) AS OpenRevenueByAdjustReason
FROM P_RARevnAmtPerRecnclnKeyGrp
-- UNION ALL with additional select branch(es): P_RARevnAmtPerRecnclnKeyGrp
;