P_RevenueVarianceCnstnt

DDL: P_REVENUEVARIANCECNSTNT SQL: PREVVARC Type: view COMPOSITE

P_RevenueVarianceCnstnt is a Composite CDS View in SAP S/4HANA. It reads from 1 data source (I_ActualPlanLineItemSemTag) and exposes 80 fields with key fields Ledger, SourceLedger, CompanyCode, FiscalYear, AccountingDocument.

Data Sources (1)

SourceAliasJoin Type
I_ActualPlanLineItemSemTag I_ActualPlanLineItemSemTag from

Annotations (8)

NameValueLevelField
AbapCatalog.sqlViewName PREVVARC view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #CHECK view
AccessControl.personalData.blocking #REQUIRED view
VDM.private true view
VDM.viewType #COMPOSITE view
ClientHandling.algorithm #SESSION_VARIABLE view
AbapCatalog.preserveKey true view

Fields (80)

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
QuantityType
FiscalPeriod FiscalPeriod Tax period
PlanningCategory PlanningCategory Plan Category
BaseUnit BaseUnit Unit of Measure
_BaseUnit _BaseUnit
_Ledger _Ledger
_CompanyCode _CompanyCode
CompanyCodeCurrency CompanyCodeCurrency Local Currency
_CustomerSupplierCountry _CustomerSupplierCountry
SalesOrganization SalesOrganization Sales Organization
_SalesOrganization _SalesOrganization
OrganizationDivision OrganizationDivision Org. Division
DistributionChannel DistributionChannel RefDistCh-Cust/Mat.
_DistributionChannel _DistributionChannel
Customer Customer Sold-to Party
_Customer _Customer
SoldMaterial SoldMaterial Product Sold
_SoldMaterial _SoldMaterial
MaterialGroup MaterialGroup Product Group
_MaterialGroup _MaterialGroup
CustomerGroup CustomerGroup Customer Group
GLAccount GLAccount General Ledger
ProfitCenter ProfitCenter Profit Center
CustomerSupplierCountry CustomerSupplierCountry Customer or Supplier Country/Region
CustomerSupplierIndustry CustomerSupplierIndustry Industry
DocumentDate DocumentDate Journal Entry Date
GlobalCurrency GlobalCurrency GM Billing Element: Global Currency
ActlBilledRevenueAmtInGlobCrcy ActlBilledRevenueAmtInGlobCrcy
PlnBilledRevenueAmtInGlobCrcy PlnBilledRevenueAmtInGlobCrcy
CostSourceUnit CostSourceUnit
ValuationQuantity ValuationQuantity
SemanticTag SemanticTag Semantic Tag
AccountAssignmentType AccountAssignmentType Sndr AcctAssgmt Type
ActualPlanCode ActualPlanCode
ValidityStartDate ValidityStartDate Validity Start Date
ValidityEndDate ValidityEndDate ValidTo
Division Division Internal Division ID
SalesDistrict SalesDistrict Sales District
ActlRecgdRevenueAmtInGlobCrcy ActlRecgdRevenueAmtInGlobCrcy
PlnRecgdRevenueAmtInGlobCrcy PlnRecgdRevenueAmtInGlobCrcy
ActualRevenueAmtInCCCrcy ActualRevenueAmtInCCCrcy
PlnRevenueAmountInCCCrcy PlnRevenueAmountInCCCrcy
_LedgerFiscalYearForVariant _LedgerFiscalYearForVariant
LedgerFiscalYear LedgerFiscalYear
FiscalYearVariant FiscalYearVariant FY Variant
_FiscalPeriodForVariant _FiscalPeriodForVariant
AccountingDocumentType AccountingDocumentType Journal Entry Type
_GLAccountInCompanyCode _GLAccountInCompanyCode
_AccountingDocumentType _AccountingDocumentType
AssetClass AssetClass Asset Class
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
ServiceDocument ServiceDocument Transaction ID
ServiceDocumentType ServiceDocumentType Transaction Type
PostingDate PostingDate Posting Date for GR
Supplier Supplier Supplier
SalesDocument SalesDocument SD Document
OrderID OrderID Order ID
_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 P_RevenueVarianceCnstnt.
-- 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: PREVVARC

CREATE VIEW P_RevenueVarianceCnstnt AS
SELECT
  Ledger,
  SourceLedger,
  CompanyCode,
  FiscalYear,
  AccountingDocument,
  LedgerGLLineItem,
  FinancialPlanningReqTransSqnc,
  FinancialPlanningDataPacket,
  FinancialPlanningEntryItem,
  GLAccountHierarchy,
  cast('1' as fac_revvar_quantity_type) AS QuantityType,
  FiscalPeriod,
  PlanningCategory,
  BaseUnit,
  CompanyCodeCurrency,
  SalesOrganization,
  OrganizationDivision,
  DistributionChannel,
  Customer,
  SoldMaterial,
  MaterialGroup,
  CustomerGroup,
  GLAccount,
  ProfitCenter,
  CustomerSupplierCountry,
  CustomerSupplierIndustry,
  DocumentDate,
  GlobalCurrency,
  ActlBilledRevenueAmtInGlobCrcy,
  PlnBilledRevenueAmtInGlobCrcy,
  CostSourceUnit,
  ValuationQuantity,
  SemanticTag,
  AccountAssignmentType,
  ActualPlanCode,
  ValidityStartDate,
  ValidityEndDate,
  Division,
  SalesDistrict,
  ActlRecgdRevenueAmtInGlobCrcy,
  PlnRecgdRevenueAmtInGlobCrcy,
  ActualRevenueAmtInCCCrcy,
  PlnRevenueAmountInCCCrcy,
  LedgerFiscalYear,
  FiscalYearVariant,
  AccountingDocumentType,
  AssetClass,
  FinancialAccountType,
  FunctionalArea,
  BusinessArea,
  Segment,
  ControllingArea,
  CostCenter,
  Plant,
  ValuationArea,
  ServiceDocument,
  ServiceDocumentType,
  PostingDate,
  Supplier,
  SalesDocument,
  OrderID
FROM I_ActualPlanLineItemSemTag
;