P_EBPC_TotalVariance_30_1
Event-Based Order Total Cost Variance
P_EBPC_TotalVariance_30_1 is a Composite CDS View that provides data about "Event-Based Order Total Cost Variance" in SAP S/4HANA. It reads from 1 data source (I_JournalEntryItem) and exposes 5 fields with key fields CompanyCode, OrderID, OrderItem. Part of development package ODATA_CO_RT_PRODUCTION_COSTS.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_JournalEntryItem | I_JournalEntryItem | from |
Parameters (3)
| Name | Type | Default |
|---|---|---|
| P_Ledger | fins_ledger | |
| P_FromFiscalYearPeriod | fins_fyearperiod | |
| P_ToFiscalYearPeriod | fins_fyearperiod |
Annotations (4)
| Name | Value | Level | Field |
|---|---|---|---|
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| Metadata.ignorePropagatedAnnotations | true | view | |
| VDM.private | true | view | |
| VDM.viewType | #COMPOSITE | view |
Fields (5)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | CompanyCode | CompanyCode | ||
| KEY | OrderID | OrderID | ||
| KEY | OrderItem | OrderItem | ||
| DisplayCurrency | GlobalCurrency | |||
| AmountInDisplayCurrency |
@AbapCatalog.viewEnhancementCategory: [#NONE]
@AccessControl.authorizationCheck: #NOT_REQUIRED
@Metadata.ignorePropagatedAnnotations: true
@VDM.private: true
@VDM.viewType: #COMPOSITE
define view entity P_EBPC_TotalVariance_30_1
with parameters
P_Ledger : fins_ledger,
P_FromFiscalYearPeriod : fins_fyearperiod,
P_ToFiscalYearPeriod : fins_fyearperiod
as select from I_JournalEntryItem
{
key CompanyCode,
key OrderID,
key OrderItem,
GlobalCurrency as DisplayCurrency,
sum(cast(AmountInGlobalCurrency as abap.dec(23,2))) as AmountInDisplayCurrency
}
where
BusinessTransactionCategory = 'EBVP'
and TransactionTypeDetermination = 'GBB'
and FiscalYearPeriod >= $parameters.P_FromFiscalYearPeriod
and FiscalYearPeriod <= $parameters.P_ToFiscalYearPeriod
and Ledger = $parameters.P_Ledger
group by
CompanyCode,
OrderID,
OrderItem,
GlobalCurrency
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