I_OIL_ExchangeBalance

DDL: I_OIL_EXCHANGEBALANCE Type: view_entity COMPOSITE

Composite of Exchanges Balance Data

I_OIL_ExchangeBalance is a Composite CDS View that provides data about "Composite of Exchanges Balance Data" in SAP S/4HANA. It reads from 1 data source (I_OIL_ExchangesMovementData) and exposes 7 fields with key fields StockIdentifyingMaterial, Plant, MaterialBaseUnit. It has 1 association to related views.

Data Sources (1)

SourceAliasJoin Type
I_OIL_ExchangesMovementData I_OIL_ExchangesMovementData from

Associations (1)

CardinalityTargetAliasCondition
[0..1] I_Material _StockIdentifyingMaterial $projection.StockIdentifyingMaterial = _StockIdentifyingMaterial.Material

Annotations (9)

NameValueLevelField
AccessControl.authorizationCheck #MANDATORY view
AccessControl.personalData.blocking #REQUIRED view
EndUserText.label Composite of Exchanges Balance Data view
Metadata.ignorePropagatedAnnotations true view
ObjectModel.usageType.serviceQuality #X view
ObjectModel.usageType.sizeCategory #XL view
ObjectModel.usageType.dataClass #MIXED view
VDM.lifecycle.contract.type #SAP_INTERNAL_API view
VDM.viewType #COMPOSITE view

Fields (7)

KeyFieldSource TableSource FieldDescription
KEY StockIdentifyingMaterial StockIdentifyingMaterial Vehicle Model
KEY Plant Plant Valuation Area
KEY MaterialBaseUnit MaterialBaseUnit Valuation Unit
ExchangeLiftsQuantity
ExchangeReceiptsQuantity
ExchangeBalanceQuantity
_StockIdentifyingMaterial _StockIdentifyingMaterial

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 I_OIL_ExchangeBalance.
-- 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.

CREATE VIEW I_OIL_ExchangeBalance AS
SELECT
  StockIdentifyingMaterial,
  Plant,
  MaterialBaseUnit,
  sum (ExchangeLiftsQuantity) AS ExchangeLiftsQuantity,
  sum (ExchangeReceiptsQuantity) AS ExchangeReceiptsQuantity,
  sum (( ExchangeLiftsQuantity - ExchangeReceiptsQuantity )) AS ExchangeBalanceQuantity
FROM I_OIL_ExchangesMovementData
LEFT OUTER JOIN I_Material AS _StockIdentifyingMaterial ON StockIdentifyingMaterial = _StockIdentifyingMaterial.Material  -- association [0..1]
;