I_OIL_ExchangesMovementData
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)
| Source | Alias | Join Type |
|---|---|---|
| I_OIL_LgclInvtryAdjmtDocItem | a | from |
| I_OIL_LgclInvtryAdjDocHdr | b | inner |
| I_CalendarDate | c | inner |
| I_OIL_MaterialDocumentItem | m | union_all |
| I_OIL_ExchangeMovementIndex | n | inner |
Annotations (9)
| Name | Value | Level | Field |
|---|---|---|---|
| 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)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| 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
;
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