I_RevenueVarianceBenchmark

DDL: I_REVENUEVARIANCEBENCHMARK SQL: IREVVARB Type: view COMPOSITE Package: ODATA_REVENUE_VARIANCE

Revenue Variance Benchmark

I_RevenueVarianceBenchmark is a Composite CDS View that provides data about "Revenue Variance Benchmark" in SAP S/4HANA. It reads from 1 data source (I_RevenueVariance) and exposes 66 fields with key fields Ledger, SourceLedger, CompanyCode, FiscalYear, AccountingDocument. Part of development package ODATA_REVENUE_VARIANCE.

Data Sources (1)

SourceAliasJoin Type
I_RevenueVariance I_RevenueVariance from

Parameters (12)

NameTypeDefault
P_KeyDate datum
P_DisplayCurrency vdm_v_display_currency
P_Interval1Year fis_gjahr
P_Interval2Year fis_gjahr
P_Interval1FromFiscalPeriod fis_period_from
P_Interval2FromFiscalPeriod fis_period_from
P_Interval1ToFiscalPeriod fis_period_to
P_Interval2ToFiscalPeriod fis_period_to
P_Interval1Type fac_revvar_interval_type
P_Interval2Type fac_revvar_interval_type
P_PlanningCategory fac_revvar_pln_category
P_QuantityType fac_revvar_quantity_type

Annotations (11)

NameValueLevelField
AbapCatalog.sqlViewName IREVVARB view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #CHECK view
EndUserText.label Revenue Variance Benchmark view
ObjectModel.usageType.sizeCategory #XL view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.dataClass #MIXED view
VDM.viewType #COMPOSITE view
ClientHandling.algorithm #SESSION_VARIABLE view
AccessControl.personalData.blocking #REQUIRED view
Metadata.allowExtensions true view

Fields (66)

KeyFieldSource TableSource FieldDescription
KEY Ledger Ledger Ledger
KEY SourceLedger SourceLedger Source Ledger
KEY CompanyCode CompanyCode Receiver Company Code
KEY FiscalYear FiscalYear G/L Fiscal Year
KEY AccountingDocument AccountingDocument Journal Entry
KEY LedgerGLLineItem LedgerGLLineItem Journal Entry Item
KEY FinancialPlanningReqTransSqnc FinancialPlanningReqTransSqnc Request TSN
KEY FinancialPlanningDataPacket FinancialPlanningDataPacket Data packet number
KEY FinancialPlanningEntryItem FinancialPlanningEntryItem
KEY GLAccountHierarchy GLAccountHierarchy
FiscalPeriod FiscalPeriod Tax period
PlanningCategory Plan Category
RevenueComparisonVariant
Interval1Type
Interval2Type
DisplayCurrency
CompanyCodeCurrency CompanyCodeCurrency Local Currency
RatioUnit
BaseUnit BaseUnit Unit of Measure
BaseUnitName BaseUnitName
LedgerName LedgerName Ledger Name
CompanyCodeName CompanyCodeName Company Name
Country Country Venue: Ctry/Reg
CountryName CountryName Country
SalesOrganization SalesOrganization Sales Organization
SalesOrganizationName SalesOrganizationName Sales Organization Description
Division Division Internal Division ID
DivisionName DivisionName Division Description
DistributionChannel DistributionChannel RefDistCh-Cust/Mat.
DistributionChannelName DistributionChannelName
Customer Customer Sold-to Party
CustomerName CustomerName Name of Customer
Material Material Vehicle Model
MaterialName MaterialName Material Description
MaterialGroup MaterialGroup Product Group
MaterialGroupName MaterialGroupName prod Grp Desc.
CustomerGroup CustomerGroup Customer Group
GLAccount GLAccount General Ledger
ProfitCenter ProfitCenter Profit Center
GlobalCurrency GlobalCurrency GM Billing Element: Global Currency
FinancialAccountType FinancialAccountType Fin. Account Type
FunctionalArea FunctionalArea Sendr Fctl Area
BusinessArea BusinessArea Business Area
Segment Segment Segment number
ControllingArea ControllingArea Controlling Area
CostCenter CostCenter Cost Center
Plant Plant Valuation Area
ValuationArea ValuationArea Valuation Area
OrganizationDivision OrganizationDivision Org. Division
AssetClass AssetClass Asset Class
PostingDate PostingDate Posting Date for GR
Supplier Supplier Supplier
SalesDocument SalesDocument SD Document
OrderID OrderID Order ID
AccountingDocumentType AccountingDocumentType Journal Entry Type
ServiceDocument ServiceDocument Transaction ID
ServiceDocumentType ServiceDocumentType Transaction Type
_GLAccountInCompanyCode _GLAccountInCompanyCode
_Customer _Customer
_AccountingDocumentType _AccountingDocumentType
_Supplier _Supplier
_CurrentProfitCenter _CurrentProfitCenter
_CurrentCostCenter _CurrentCostCenter
_SalesDocument _SalesDocument
_Order _Order
_ServiceDocument _ServiceDocument

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 I_RevenueVarianceBenchmark.
-- 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.
-- SQL view name: IREVVARB
-- Parameters: P_KeyDate : datum, P_DisplayCurrency : vdm_v_display_currency, P_Interval1Year : fis_gjahr, P_Interval2Year : fis_gjahr, P_Interval1FromFiscalPeriod : fis_period_from, P_Interval2FromFiscalPeriod : fis_period_from, P_Interval1ToFiscalPeriod : fis_period_to, P_Interval2ToFiscalPeriod : fis_period_to, P_Interval1Type : fac_revvar_interval_type, P_Interval2Type : fac_revvar_interval_type, P_PlanningCategory : fac_revvar_pln_category, P_QuantityType : fac_revvar_quantity_type

CREATE VIEW I_RevenueVarianceBenchmark AS
SELECT
  Ledger,
  SourceLedger,
  CompanyCode,
  FiscalYear,
  AccountingDocument,
  LedgerGLLineItem,
  FinancialPlanningReqTransSqnc,
  FinancialPlanningDataPacket,
  FinancialPlanningEntryItem,
  GLAccountHierarchy,
  FiscalPeriod,
  cast(PlanningCategory as fac_revvar_pln_category) AS PlanningCategory,
  cast('' as fac_revvar_comprn_type) AS RevenueComparisonVariant,
  cast(:P_Interval1Type as fac_revvar_interval_type) AS Interval1Type,
  cast(:P_Interval2Type as fac_revvar_interval_type) AS Interval2Type,
  cast(:P_DisplayCurrency as vdm_v_display_currency) AS DisplayCurrency,
  CompanyCodeCurrency,
  cast('%' as msehi) AS RatioUnit,
  BaseUnit,
  BaseUnitName,
  LedgerName,
  CompanyCodeName,
  Country,
  CountryName,
  SalesOrganization,
  SalesOrganizationName,
  Division,
  DivisionName,
  DistributionChannel,
  DistributionChannelName,
  Customer,
  CustomerName,
  Material,
  MaterialName,
  MaterialGroup,
  MaterialGroupName,
  CustomerGroup,
  GLAccount,
  ProfitCenter,
  GlobalCurrency,
  FinancialAccountType,
  FunctionalArea,
  BusinessArea,
  Segment,
  ControllingArea,
  CostCenter,
  Plant,
  ValuationArea,
  OrganizationDivision,
  AssetClass,
  PostingDate,
  Supplier,
  SalesDocument,
  OrderID,
  AccountingDocumentType,
  ServiceDocument,
  ServiceDocumentType
FROM I_RevenueVariance
;