P_EBOC_EventBasedVariance1
P_EBOC_EventBasedVariance1 is a Composite CDS View in SAP S/4HANA. It reads from 1 data source (I_JournalEntryItem) and exposes 31 fields with key fields CompanyCode, Plant, ControllingArea, BusinessTransactionCategory, ControllingDebitCreditCode.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_JournalEntryItem | I_JournalEntryItem | from |
Parameters (4)
| Name | Type | Default |
|---|---|---|
| P_OrderID | fis_order_number | |
| P_FromFiscalYearPeriod | fis_jahrper | |
| P_ToFiscalYearPeriod | fis_jahrper | |
| P_Ledger | fins_ledger |
Annotations (7)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | PEBOCEBVARC1 | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AbapCatalog.preserveKey | true | view | |
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| VDM.viewType | #COMPOSITE | view | |
| VDM.private | true | view |
Fields (31)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | CompanyCode | CompanyCode | Receiver Company Code | |
| KEY | Plant | Plant | Valuation Area | |
| KEY | ControllingArea | ControllingArea | Controlling Area | |
| KEY | BusinessTransactionCategory | BusinessTransactionCategory | Business Transaction Category | |
| KEY | ControllingDebitCreditCode | OriginCtrlgDebitCreditCode | Debit/CreditInd | |
| KEY | OriginSenderObject | OriginSenderObject | ||
| KEY | OrderItem | OrderItem | ||
| KEY | AccountAssignmentType | AccountAssignmentType | Sndr AcctAssgmt Type | |
| KEY | PartnerAccountAssignment | PartnerAccountAssignment | Partner Account Assignment | |
| KEY | PartnerAccountAssignmentType | PartnerAccountAssignmentType | Partner Account Assignment Type | |
| KEY | PartnerCostCenter | |||
| KEY | PartnerCostCtrActivityType | |||
| KEY | PartnerBusinessProcess | PartnerBusinessProcess | Part. Bus. Process | |
| KEY | PartnerOrder | PartnerOrder_2 | ||
| KEY | UnitOfMeasure | |||
| KEY | Material | OriginProduct | ||
| KEY | CostOriginGroup | VarianceOriginGroup | ||
| KEY | SubLedgerAcctLineItemType | SubLedgerAcctLineItemType | SLALineItemType | |
| KEY | OriginCostCenter | OriginCostCenter | ||
| KEY | OriginCostCtrActivityType | OriginCostCtrActivityType | ||
| AmountInCompanyCodeCurrency | ||||
| AmountInGlobalCurrency | ||||
| FixedAmountInGlobalCrcy | ||||
| AmountInFreeDefinedCurrency1 | ||||
| AmountInFreeDefinedCurrency2 | ||||
| AmountInFreeDefinedCurrency3 | ||||
| AmountInFreeDefinedCurrency4 | ||||
| AmountInFreeDefinedCurrency5 | ||||
| AmountInFreeDefinedCurrency6 | ||||
| AmountInFreeDefinedCurrency7 | ||||
| AmountInFreeDefinedCurrency8 |
Derived SQL interpretation, reconstructed from the parsed view metadata (data sources, associations, and field mappings). SAP annotations are omitted and the structure is reformulated as SQL — this is a functional approximation, not the verbatim SAP source.
-- Derived SQL interpretation of CDS view P_EBOC_EventBasedVariance1.
-- Reconstructed from parsed metadata (data sources, associations, fields).
-- SAP annotations are omitted and the structure is reformulated as SQL;
-- this is a functional approximation, not the verbatim SAP source. Some join
-- conditions may be unavailable and a few CDS constructs are kept as-is.
-- SQL view name: PEBOCEBVARC1
-- Parameters: P_OrderID : fis_order_number, P_FromFiscalYearPeriod : fis_jahrper, P_ToFiscalYearPeriod : fis_jahrper, P_Ledger : fins_ledger
CREATE VIEW P_EBOC_EventBasedVariance1 AS
SELECT
CompanyCode,
Plant,
ControllingArea,
BusinessTransactionCategory,
OriginCtrlgDebitCreditCode AS ControllingDebitCreditCode,
OriginSenderObject,
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,
OriginCostCenter,
OriginCostCtrActivityType,
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
FROM I_JournalEntryItem
;
Learn More
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- CDS View Annotations — A Complete Guide
- What Is a CDS View in SAP S/4HANA?
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- 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
- BSEG to ACDOCA: The Universal Journal Migration
- Business Partner Migration: KNA1/LFA1 to BUT000
- Material Document Migration: MSEG/MKPF to MATDOC
- How to Find the Right CDS View for an SAP Table
- BW Extractor to CDS View Migration Guide
- S/4HANA CDS View Deprecation: What You Need to Know
- ABAP CDS View Tutorial — From Basics to Real-World Examples
- RAP and CDS Views — Building Transactional Apps in SAP S/4HANA
- Sales Document Status Migration: VBUP/VBUK Removal in S/4HANA
- CO Tables in S/4HANA: COEP, COBK, COSS, COSP to ACDOCA