I_RevenueVarianceBenchmark
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)
| Source | Alias | Join Type |
|---|---|---|
| I_RevenueVariance | I_RevenueVariance | from |
Parameters (12)
| Name | Type | Default |
|---|---|---|
| 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)
| Name | Value | Level | Field |
|---|---|---|---|
| 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)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| 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
;
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