P_EBASO_EvtBsdVariance1
Event-Based Analyze Summarization Object - Variance
P_EBASO_EvtBsdVariance1 is a Composite CDS View that provides data about "Event-Based Analyze Summarization Object - Variance" in SAP S/4HANA. It reads from 1 data source (I_JournalEntryItem) and exposes 45 fields with key fields SourceLedger, CompanyCode, Plant, FiscalYear, AccountingDocument. Part of development package ODATA_CO_EB_ANALYZE_SUM_OBJECT.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_JournalEntryItem | I_JournalEntryItem | from |
Parameters (3)
| Name | Type | Default |
|---|---|---|
| P_FromFiscalYearPeriod | fis_jahrper | |
| P_ToFiscalYearPeriod | fis_jahrper | |
| P_Ledger | fins_ledger |
Annotations (4)
| Name | Value | Level | Field |
|---|---|---|---|
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| Metadata.ignorePropagatedAnnotations | true | view | |
| VDM.private | true | view | |
| VDM.viewType | #COMPOSITE | view |
Fields (45)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | SourceLedger | SourceLedger | ||
| KEY | CompanyCode | CompanyCode | ||
| KEY | Plant | Plant | ||
| KEY | FiscalYear | FiscalYear | ||
| KEY | AccountingDocument | AccountingDocument | ||
| KEY | LedgerGLLineItem | LedgerGLLineItem | ||
| KEY | Ledger | Ledger | ||
| KEY | ControllingValueType | |||
| ControllingArea | ControllingArea | |||
| BusinessTransactionCategory | BusinessTransactionCategory | |||
| ControllingDebitCreditCode | OriginCtrlgDebitCreditCode | |||
| OrderItem | OrderItem | |||
| AccountAssignmentType | AccountAssignmentType | |||
| PartnerAccountAssignment | PartnerAccountAssignment | |||
| PartnerAccountAssignmentType | PartnerAccountAssignmentType | |||
| PartnerCostCenter | ||||
| PartnerCostCtrActivityType | ||||
| PartnerBusinessProcess | PartnerBusinessProcess | |||
| PartnerOrder | PartnerOrder_2 | |||
| UnitOfMeasure | ||||
| Material | OriginProduct | |||
| CostOriginGroup | VarianceOriginGroup | |||
| SubLedgerAcctLineItemType | SubLedgerAcctLineItemType | |||
| OriginCostCenter | OriginCostCenter | |||
| OriginCostCtrActivityType | OriginCostCtrActivityType | |||
| CompanyCodeCurrency | CompanyCodeCurrency | |||
| GlobalCurrency | GlobalCurrency | |||
| FreeDefinedCurrency1 | FreeDefinedCurrency1 | |||
| FreeDefinedCurrency2 | FreeDefinedCurrency2 | |||
| FreeDefinedCurrency3 | FreeDefinedCurrency3 | |||
| FreeDefinedCurrency4 | FreeDefinedCurrency4 | |||
| FreeDefinedCurrency5 | FreeDefinedCurrency5 | |||
| FreeDefinedCurrency6 | FreeDefinedCurrency6 | |||
| FreeDefinedCurrency7 | FreeDefinedCurrency7 | |||
| FreeDefinedCurrency8 | FreeDefinedCurrency8 | |||
| AmountInCompanyCodeCurrency | ||||
| AmountInGlobalCurrency | ||||
| AmountInFreeDefinedCurrency1 | ||||
| AmountInFreeDefinedCurrency2 | ||||
| AmountInFreeDefinedCurrency3 | ||||
| AmountInFreeDefinedCurrency4 | ||||
| AmountInFreeDefinedCurrency5 | ||||
| AmountInFreeDefinedCurrency6 | ||||
| AmountInFreeDefinedCurrency7 | ||||
| AmountInFreeDefinedCurrency8 |
@AbapCatalog.viewEnhancementCategory: [#NONE]
@AccessControl.authorizationCheck: #NOT_REQUIRED
@Metadata.ignorePropagatedAnnotations: true
@VDM.private: true
@VDM.viewType: #COMPOSITE
define view entity P_EBASO_EvtBsdVariance1
with parameters
P_FromFiscalYearPeriod : fis_jahrper,
P_ToFiscalYearPeriod : fis_jahrper,
P_Ledger : fins_ledger
as select from I_JournalEntryItem
{
key SourceLedger,
key CompanyCode,
key Plant,
key FiscalYear,
key AccountingDocument,
key LedgerGLLineItem,
key Ledger,
key cast('31' as co_wrttp) as ControllingValueType, // Variance
ControllingArea,
cast(
case
when VarianceOriginGLAccount is not initial then VarianceOriginGLAccount
else OffsettingAccount
end
as fis_racct) as CostElement,
BusinessTransactionCategory,
OriginCtrlgDebitCreditCode as ControllingDebitCreditCode,
case SubLedgerAcctLineItemType
when '09139'
then 'C' //Lot Size Variance is from Goods Receipt
else 'B'
end as CtrlgOriginClassification,
case
when OrderID <> '' then OrderID
else OriginOrder // V-Price Variance (BSX transaction)
end as OrderID,
OrderItem,
AccountAssignmentType,
PartnerAccountAssignment,
PartnerAccountAssignmentType,
cast(OriginCostCenter as fis_skost) as PartnerCostCenter,
cast(OriginCostCtrActivityType as fis_par_lstar) as PartnerCostCtrActivityType,
PartnerBusinessProcess,
PartnerOrder_2 as PartnerOrder,
cast(ReferenceQuantityUnit as meins) as UnitOfMeasure,
OriginProduct as Material,
VarianceOriginGroup as CostOriginGroup,
SubLedgerAcctLineItemType,
cast(
case
when SubLedgerAcctLineItemType = '09139' then 'X' // Lot-Size Variance
else ''
end
as fco_psknz ) as IsLotSizeIndependent,
// Origin Objects
OriginCostCenter,
OriginCostCtrActivityType,
CompanyCodeCurrency,
GlobalCurrency,
FreeDefinedCurrency1,
FreeDefinedCurrency2,
FreeDefinedCurrency3,
FreeDefinedCurrency4,
FreeDefinedCurrency5,
FreeDefinedCurrency6,
FreeDefinedCurrency7,
FreeDefinedCurrency8,
cast(AmountInCompanyCodeCurrency as abap.dec(23, 2)) as AmountInCompanyCodeCurrency,
cast(AmountInGlobalCurrency as abap.dec(23, 2)) as AmountInGlobalCurrency,
cast(AmountInFreeDefinedCurrency1 as abap.dec(23, 2)) as AmountInFreeDefinedCurrency1,
cast(AmountInFreeDefinedCurrency2 as abap.dec(23, 2)) as AmountInFreeDefinedCurrency2,
cast(AmountInFreeDefinedCurrency3 as abap.dec(23, 2)) as AmountInFreeDefinedCurrency3,
cast(AmountInFreeDefinedCurrency4 as abap.dec(23, 2)) as AmountInFreeDefinedCurrency4,
cast(AmountInFreeDefinedCurrency5 as abap.dec(23, 2)) as AmountInFreeDefinedCurrency5,
cast(AmountInFreeDefinedCurrency6 as abap.dec(23, 2)) as AmountInFreeDefinedCurrency6,
cast(AmountInFreeDefinedCurrency7 as abap.dec(23, 2)) as AmountInFreeDefinedCurrency7,
cast(AmountInFreeDefinedCurrency8 as abap.dec(23, 2)) as AmountInFreeDefinedCurrency8
}
where
BusinessTransactionCategory = 'EBVP'
and(
TransactionTypeDetermination = 'PRD'
or TransactionTypeDetermination = 'BSX'
or TransactionTypeDetermination = ''
)
and FiscalYearPeriod >= $parameters.P_FromFiscalYearPeriod
and FiscalYearPeriod <= $parameters.P_ToFiscalYearPeriod
and Ledger = $parameters.P_Ledger
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