P_EventBasedTotalVariance
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)
| Source | Alias | Join Type |
|---|---|---|
| I_GLAccountLineItemRawData | totalVariance | from |
Parameters (1)
| Name | Type | Default |
|---|---|---|
| P_FiscalPeriodEndDate | budat |
Annotations (8)
| Name | Value | Level | Field |
|---|---|---|---|
| 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)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| 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":""
}
}*/
Learn More
- What Is a CDS View in SAP S/4HANA?
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- CDS View Annotations — A Complete Guide
- 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