C_EvtBsdProdnOvwVarianceTrend

DDL: C_EVTBSDPRODNOVWVARIANCETREND Type: view CONSUMPTION

Event-Based Production Accounting Overview Variance Trend

C_EvtBsdProdnOvwVarianceTrend is a Consumption CDS View that provides data about "Event-Based Production Accounting Overview Variance Trend" in SAP S/4HANA. It reads from 1 data source (P_EBPAO_VarianceTrend) and exposes 22 fields with key fields CompanyCode, OrderID, OrderItem, FiscalYearPeriod, OrderType.

Data Sources (1)

SourceAliasJoin Type
P_EBPAO_VarianceTrend P_EBPAO_VarianceTrend from

Parameters (4)

NameTypeDefault
P_Ledger fins_ledger
P_FromFiscalYearPeriod fins_fyearperiod
P_ToFiscalYearPeriod fins_fyearperiod
P_CurrencyRole fis_curtp

Annotations (11)

NameValueLevelField
AbapCatalog.sqlViewName CEBPAOVARCTRD view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #CHECK view
ClientHandling.algorithm #SESSION_VARIABLE view
EndUserText.label Event-Based Production Accounting Overview Variance Trend view
Metadata.allowExtensions true view
Metadata.ignorePropagatedAnnotations true view
ObjectModel.usageType.serviceQuality #D view
ObjectModel.usageType.sizeCategory #XL view
ObjectModel.usageType.dataClass #MIXED view
VDM.viewType #CONSUMPTION view

Fields (22)

KeyFieldSource TableSource FieldDescription
KEY CompanyCode CompanyCode Receiver Company Code
KEY OrderID OrderID Order ID
KEY OrderItem OrderItem
KEY FiscalYearPeriod FiscalYearPeriod Period/Year
KEY OrderType OrderType Order Type
KEY OrderCategory OrderCategory Order Category
KEY ControllingArea ControllingArea Controlling Area
KEY Plant Plant Valuation Area
KEY StorageLocation StorageLocation StorageLocation
KEY ProfitCenter ProfitCenter Profit Center
KEY Product Product Product Sold
KEY ProductGroup ProductGroup Product Sold Group
KEY SubLedgerAcctLineItemType SubLedgerAcctLineItemType SLALineItemType
DisplayCurrency
InptPrVarcAmtInDspCrcy
InptQtyVarcAmtInDspCrcy
RsceUsgeVarcAmtInDspCrcy
ScrapVarcAmtInDspCrcy
MixedPrVarcAmtInDspCrcy
OutpPrVarcAmtInDspCrcy
LotSizeVarcAmtInDspCrcy
RmngVarcAmtInDspCrcy

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 C_EvtBsdProdnOvwVarianceTrend.
-- 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_Ledger : fins_ledger, P_FromFiscalYearPeriod : fins_fyearperiod, P_ToFiscalYearPeriod : fins_fyearperiod, P_CurrencyRole : fis_curtp

CREATE VIEW C_EvtBsdProdnOvwVarianceTrend AS
SELECT
  CompanyCode,
  OrderID,
  OrderItem,
  FiscalYearPeriod,
  OrderType,
  OrderCategory,
  ControllingArea,
  Plant,
  StorageLocation,
  ProfitCenter,
  Product,
  ProductGroup,
  SubLedgerAcctLineItemType,
  cast('' as waers) AS DisplayCurrency,
  cast(InptPrVarcAmtInDspCrcy as fis_inptprvarcamt_in_dspcrcy preserving type) AS InptPrVarcAmtInDspCrcy,
  cast(InptQtyVarcAmtInDspCrcy as fis_inptqtyvarcamt_in_dspcrcy preserving type) AS InptQtyVarcAmtInDspCrcy,
  cast(RsceUsgeVarcAmtInDspCrcy as fis_rsceusgevarcamt_in_dspcrcy preserving type) AS RsceUsgeVarcAmtInDspCrcy,
  cast(ScrapVarcAmtInDspCrcy as fco_eb_scrapvarcamt_in_dspcrcy preserving type) AS ScrapVarcAmtInDspCrcy,
  cast(MixedPrVarcAmtInDspCrcy as fco_eb_mixprvarcamt_in_dspcrcy preserving type) AS MixedPrVarcAmtInDspCrcy,
  cast(OutpPrVarcAmtInDspCrcy as fco_eb_outprvarcamt_in_dspcrcy preserving type) AS OutpPrVarcAmtInDspCrcy,
  cast(LotSizeVarcAmtInDspCrcy as fis_lotsizevarcamt_in_dspcrcy preserving type) AS LotSizeVarcAmtInDspCrcy,
  cast(RmngVarcAmtInDspCrcy as fco_eb_rmngvarcamt_in_dspcrcy preserving type) AS RmngVarcAmtInDspCrcy
FROM P_EBPAO_VarianceTrend
;