I_OIL_ExchangesMovementData

DDL: I_OIL_EXCHANGESMOVEMENTDATA Type: view_entity COMPOSITE

Composite For Exg Transactions

I_OIL_ExchangesMovementData is a Composite CDS View that provides data about "Composite For Exg Transactions" in SAP S/4HANA. It reads from 5 data sources (I_OIL_LgclInvtryAdjmtDocItem, I_OIL_LgclInvtryAdjDocHdr, I_CalendarDate, I_OIL_MaterialDocumentItem, I_OIL_ExchangeMovementIndex) and exposes 18 fields with key fields LgclInvtryAdjmtDocumentNumber, LgclInvtryAdjmtDocumentYear, ExchangeItemNumber, LgclInvtryAdjmtItmType, LgclInvtryAdjmtDocumentYear.

Data Sources (5)

Annotations (9)

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

Fields (18)

KeyFieldSource TableSource FieldDescription
KEY LgclInvtryAdjmtDocumentNumber I_OIL_LgclInvtryAdjmtDocItem LgclInvtryAdjmtDocumentNumber LIA number
KEY LgclInvtryAdjmtDocumentYear I_OIL_LgclInvtryAdjmtDocItem LgclInvtryAdjmtDocumentYear Mat. Doc. Year
KEY ExchangeItemNumber Mat. Doc.Item
KEY LgclInvtryAdjmtItmType I_OIL_LgclInvtryAdjmtDocItem LgclInvtryAdjmtItmType Single-Character Flag
StockIdentifyingMaterial I_OIL_LgclInvtryAdjmtDocItem Material
Plant I_OIL_LgclInvtryAdjmtDocItem Plant Valuation Area
MaterialBaseUnit I_OIL_LgclInvtryAdjmtDocItem StockKeepingUnitOfMeasure Valuation Unit
PostingDate I_OIL_LgclInvtryAdjmtDocItem PostingDate Posting Date for GR
YearWeek I_CalendarDate YearWeek Year and Calendar Week
KEY LgclInvtryAdjmtDocumentYear I_OIL_MaterialDocumentItem LgclInvtryAdjmtDocumentYear Mat. Doc. Year
KEY ExchangeItemNumber I_OIL_MaterialDocumentItem ExchangeItemNumber Mat. Doc.Item
KEY LgclInvtryAdjmtItmType I_OIL_MaterialDocumentItem DebitCreditCode Single-Character Flag
StockIdentifyingMaterial I_OIL_MaterialDocumentItem StockIdentifyingMaterial
Plant I_OIL_MaterialDocumentItem Plant Valuation Area
MaterialBaseUnit I_OIL_MaterialDocumentItem MaterialBaseUnit Valuation Unit
PostingDate I_OIL_MaterialDocumentItem PostingDate Posting Date for GR
YearWeek I_OIL_MaterialDocumentItem YearWeek Year and Calendar Week
YearMonth I_OIL_MaterialDocumentItem YearMonth Year Month

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_ExchangesMovementData.
-- 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_ExchangesMovementData AS
SELECT
  a.LgclInvtryAdjmtDocumentNumber AS LgclInvtryAdjmtDocumentNumber,
  a.LgclInvtryAdjmtDocumentYear AS LgclInvtryAdjmtDocumentYear,
  cast( lpad(a.LgclInvtryAdjmtDocItemNumber, 6, '0' ) as oia_item ) AS ExchangeItemNumber,
  a.LgclInvtryAdjmtItmType AS LgclInvtryAdjmtItmType,
  a.Material AS StockIdentifyingMaterial,
  a.Plant AS Plant,
  a.StockKeepingUnitOfMeasure AS MaterialBaseUnit,
  a.PostingDate AS PostingDate,
  c.YearWeek AS YearWeek,
  m.YearMonth AS YearMonth
FROM I_OIL_LgclInvtryAdjmtDocItem AS a
INNER JOIN I_OIL_LgclInvtryAdjDocHdr AS b ON /* join condition not captured in parsed metadata */
INNER JOIN I_CalendarDate AS c ON /* join condition not captured in parsed metadata */
INNER JOIN I_OIL_ExchangeMovementIndex AS n ON /* join condition not captured in parsed metadata */
-- UNION ALL with additional select branch(es): I_OIL_MaterialDocumentItem
;