P_EventBasedTotalVariance

DDL: P_EVENTBASEDTOTALVARIANCE Type: view_entity COMPOSITE

Event based total variance

P_EventBasedTotalVariance is a Composite CDS View that provides data about "Event based total variance" in SAP S/4HANA. It reads from 1 data source (I_GLAccountLineItemRawData) and exposes 5 fields with key fields SourceLedger, ControllingObject.

Data Sources (1)

SourceAliasJoin Type
I_GLAccountLineItemRawData totalVariance from

Parameters (1)

NameTypeDefault
P_FiscalPeriodEndDate budat

Annotations (8)

NameValueLevelField
AccessControl.authorizationCheck #NOT_REQUIRED view
EndUserText.label Event based total variance view
Metadata.ignorePropagatedAnnotations true view
ObjectModel.usageType.serviceQuality #X view
ObjectModel.usageType.sizeCategory #S view
ObjectModel.usageType.dataClass #MIXED view
VDM.private true view
VDM.viewType #COMPOSITE view

Fields (5)

KeyFieldSource TableSource FieldDescription
KEY SourceLedger I_GLAccountLineItemRawData SourceLedger
KEY ControllingObject I_GLAccountLineItemRawData ControllingObject
CompanyCode I_GLAccountLineItemRawData CompanyCode
OrderID I_GLAccountLineItemRawData OrderID
OrderItem I_GLAccountLineItemRawData OrderItem
@AbapCatalog.viewEnhancementCategory: [#NONE]
@AccessControl.authorizationCheck: #NOT_REQUIRED
@EndUserText.label: 'Event based total variance'
@Metadata.ignorePropagatedAnnotations: true
@ObjectModel.usageType:{
  serviceQuality: #X,
  sizeCategory: #S,
  dataClass: #MIXED
}
@VDM.private:true
@VDM.viewType: #COMPOSITE
define view entity P_EventBasedTotalVariance
  with parameters
    P_FiscalPeriodEndDate : budat
  as select from I_GLAccountLineItemRawData as totalVariance
{
  key totalVariance.SourceLedger,
  key totalVariance.ControllingObject,
      totalVariance.CompanyCode,
      totalVariance.OrderID,
      totalVariance.OrderItem
}
where
      totalVariance.IsReversed                   = ''
  and totalVariance.IsReversal                   = ''
  and totalVariance.BusinessTransactionCategory  = 'EBVP'
  and totalVariance.TransactionTypeDetermination = 'GBB'
  and totalVariance.PostingDate                  <= $parameters.P_FiscalPeriodEndDate
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"I_GLACCOUNTLINEITEMRAWDATA"
],
"ASSOCIATED":
[],
"BASE":
[],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/