P_EBOrderVarianceCost1
P_EBOrderVarianceCost1 is a Composite CDS View in SAP S/4HANA. It reads from 1 data source (I_JournalEntryItem) and exposes 14 fields with key fields CompanyCode, OrderID, OrderItem.
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 (7)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | PEBORDVRCCST1 | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AbapCatalog.preserveKey | true | view | |
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| VDM.private | true | view | |
| VDM.viewType | #COMPOSITE | view |
Fields (14)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | CompanyCode | CompanyCode | ||
| KEY | OrderID | OrderID | ||
| KEY | OrderItem | OrderItem | ||
| AmountInCompanyCodeCurrency | ||||
| AmountInGlobalCurrency | ||||
| FixedAmountInGlobalCrcy | ||||
| AmountInFreeDefinedCurrency1 | ||||
| AmountInFreeDefinedCurrency2 | ||||
| AmountInFreeDefinedCurrency3 | ||||
| AmountInFreeDefinedCurrency4 | ||||
| AmountInFreeDefinedCurrency5 | ||||
| AmountInFreeDefinedCurrency6 | ||||
| AmountInFreeDefinedCurrency7 | ||||
| AmountInFreeDefinedCurrency8 |
@AbapCatalog.sqlViewName: 'PEBORDVRCCST1'
@AbapCatalog.compiler.compareFilter: true
@AbapCatalog.preserveKey: true
@AccessControl.authorizationCheck: #NOT_REQUIRED
@ClientHandling.algorithm: #SESSION_VARIABLE
@VDM.private: true
@VDM.viewType: #COMPOSITE
define view P_EBOrderVarianceCost1
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,
// Actual Amounts from ACDOCA
sum(AmountInCompanyCodeCurrency) as AmountInCompanyCodeCurrency,
sum(AmountInGlobalCurrency) as AmountInGlobalCurrency,
sum(FixedAmountInGlobalCrcy) as FixedAmountInGlobalCrcy,
sum(AmountInFreeDefinedCurrency1) as AmountInFreeDefinedCurrency1,
sum(AmountInFreeDefinedCurrency2) as AmountInFreeDefinedCurrency2,
sum(AmountInFreeDefinedCurrency3) as AmountInFreeDefinedCurrency3,
sum(AmountInFreeDefinedCurrency4) as AmountInFreeDefinedCurrency4,
sum(AmountInFreeDefinedCurrency5) as AmountInFreeDefinedCurrency5,
sum(AmountInFreeDefinedCurrency6) as AmountInFreeDefinedCurrency6,
sum(AmountInFreeDefinedCurrency7) as AmountInFreeDefinedCurrency7,
sum(AmountInFreeDefinedCurrency8) as AmountInFreeDefinedCurrency8
}
where
BusinessTransactionCategory = 'EBVP'
and TransactionTypeDetermination = 'GBB'
and FiscalYearPeriod >= $parameters.P_FromFiscalYearPeriod
and FiscalYearPeriod <= $parameters.P_ToFiscalYearPeriod
and Ledger = :P_Ledger
group by
CompanyCode,
OrderID,
OrderItem
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"I_JOURNALENTRYITEM"
],
"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