I_OIL_MaterialDocumentItem
Exchange Material Document Item
I_OIL_MaterialDocumentItem is a Composite CDS View that provides data about "Exchange Material Document Item" in SAP S/4HANA. It reads from 1 data source (I_MaterialDocumentRecord) and exposes 150 fields with key fields LgclInvtryAdjmtDocumentYear, MaterialDocument, ExchangeItemNumber. It has 5 associations to related views.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_MaterialDocumentRecord | I_MaterialDocumentRecord | from |
Associations (5)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [1..1] | I_MaterialDocumentYear | _MaterialDocumentYear | $projection.LgclInvtryAdjmtDocumentYear = _MaterialDocumentYear.MaterialDocumentYear |
| [1..1] | I_MaterialDocumentHeader_2 | _MaterialDocumentHeader | $projection.LgclInvtryAdjmtDocumentYear = _MaterialDocumentHeader.MaterialDocumentYear and $projection.MaterialDocument = _MaterialDocumentHeader.MaterialDocument |
| [0..1] | I_MaterialDocumentHeader_2 | _ReversedMatDoc | $projection.ReversedMaterialDocumentYear = _ReversedMatDoc.MaterialDocumentYear and $projection.ReversedMaterialDocument = _ReversedMatDoc.MaterialDocument |
| [0..1] | I_MaterialDocumentItem_2 | _ReversedMatDocItem | $projection.ReversedMaterialDocumentYear = _ReversedMatDocItem.MaterialDocumentYear and $projection.ReversedMaterialDocument = _ReversedMatDocItem.MaterialDocument and $projection.ReversedMaterialDocumentItem = _ReversedMatDocItem.MaterialDocumentItem |
| [0..1] | I_Product | _Product | $projection.Material = _Product.Product |
Annotations (11)
| Name | Value | Level | Field |
|---|---|---|---|
| EndUserText.label | Exchange Material Document Item | view | |
| ObjectModel.usageType.sizeCategory | #XXL | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| ObjectModel.usageType.dataClass | #TRANSACTIONAL | view | |
| Search.searchable | true | view | |
| VDM.viewType | #COMPOSITE | view | |
| VDM.lifecycle.contract.type | #SAP_INTERNAL_API | view | |
| AccessControl.authorizationCheck | #MANDATORY | view | |
| AccessControl.personalData.blocking | #REQUIRED | view | |
| Metadata.ignorePropagatedAnnotations | true | view | |
| Analytics.technicalName | IOILMaterialDocumentItem | view |
Fields (150)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | LgclInvtryAdjmtDocumentYear | MaterialDocumentYear | Material Document Year | |
| KEY | MaterialDocument | MaterialDocument | Material Doc. | |
| KEY | ExchangeItemNumber | |||
| Material | Material | Vehicle Model | ||
| StockIdentifyingMaterial | StockIdentifyingMaterial | Stock Mat. | ||
| Plant | Plant | Valuation Area | ||
| StorageLocation | StorageLocation | StorageLocation | ||
| StorageType | StorageType | Storage Type | ||
| StorageBin | StorageBin | Storage Bin | ||
| Batch | Batch | Lot No. | ||
| ShelfLifeExpirationDate | ShelfLifeExpirationDate | SLED/BBD | ||
| ManufactureDate | ManufactureDate | Date of Manuf. | ||
| Supplier | Supplier | Supplier | ||
| SalesOrder | SalesOrder | SD Document | ||
| SalesOrderItem | SalesOrderItem | Sales Order Item | ||
| SalesOrderScheduleLine | SalesOrderScheduleLine | SOrder schedule | ||
| WBSElementInternalID | WBS Internal ID | |||
| Customer | Customer | Sold-to Party | ||
| InventorySpecialStockType | InventorySpecialStockType | Special Stock Type | ||
| InventoryStockType | InventoryStockType | Stock Type | ||
| StockOwner | StockOwner | Owner of stock | ||
| GoodsMovementType | GoodsMovementType | Movement Type | ||
| DebitCreditCode | DebitCreditCode | Single-Character Flag | ||
| InventoryUsabilityCode | InventoryUsabilityCode | Stock Type | ||
| QuantityInBaseUnit | QuantityInBaseUnit | Quantity | ||
| MaterialBaseUnit | MaterialBaseUnit | Valuation Unit | ||
| QuantityInEntryUnit | QuantityInEntryUnit | Quantity in Unit of Entry | ||
| EntryUnit | EntryUnit | Unit of Entry | ||
| PostingDate | PostingDate | Posting Date for GR | ||
| YearMonth | YearMonth | Year Month | ||
| YearWeek | YearWeek | Year and Calendar Week | ||
| DocumentDate | DocumentDate | Journal Entry Date | ||
| ReservationItemRecordType | ReservationRecordType | Record type | ||
| TotalGoodsMvtAmtInCCCrcy | TotalGoodsMvtAmtInCCCrcy | |||
| CompanyCodeCurrency | CompanyCodeCurrency | Local Currency | ||
| InventoryValuationType | InventoryValuationType | Valuation Type | ||
| ReservationIsFinallyIssued | ReservationIsFinallyIssued | Res Final Issue | ||
| PurchaseOrder | PurchaseOrder | Purchasing Document | ||
| PurchaseOrderItem | PurchaseOrderItem | Purchasing Document Item | ||
| ProjectNetwork | ProjectNetwork | Order | ||
| OrderID | OrderID | Order ID | ||
| OrderItem | OrderItem | |||
| MaintOrderRoutingNumber | MaintOrderRoutingNumber | Plan No.f.Oper. | ||
| MaintOrderOperationCounter | MaintOrderOperationCounter | Counter | ||
| Reservation | Reservation | Reservation | ||
| ReservationItem | ReservationItem | Reservation Item | ||
| DeliveryDocument | DeliveryDocument | Outbound Delivery | ||
| DeliveryDocumentItem | DeliveryDocumentItem | Outb. Delivery Item | ||
| ReversedMaterialDocumentYear | ReversedMaterialDocumentYear | Reversed Doc Year | ||
| ReversedMaterialDocument | ReversedMaterialDocument | Reversed Mat Doc | ||
| ReversedMaterialDocumentItem | ReversedMaterialDocumentItem | Reversed Doc Item | ||
| RvslOfGoodsReceiptIsAllowed | RvslOfGoodsReceiptIsAllowed | |||
| GoodsRecipientName | GoodsRecipientName | Recipient Name | ||
| GoodsMovementReasonCode | GoodsMovementReasonCode | Reason for Mvmt | ||
| UnloadingPointName | UnloadingPointName | Unloading Point Name | ||
| CostCenter | CostCenter | Cost Center | ||
| GLAccount | GLAccount | General Ledger | ||
| ServicePerformer | ServicePerformer | Service Performer | ||
| PersonWorkAgreement | PersonWorkAgreement | Personnel No. | ||
| AccountAssignmentCategory | AccountAssignmentCategory | Acct Assgmt Cat | ||
| WorkItem | WorkItem | Work Item ID | ||
| ServicesRenderedDate | ServicesRenderedDate | Services Rendered Date | ||
| IssgOrRcvgMaterial | IssgOrRcvgMaterial | Transfer Material | ||
| IssuingOrReceivingPlant | IssuingOrReceivingPlant | Transfer Plant | ||
| IssuingOrReceivingStorageLoc | IssuingOrReceivingStorageLoc | Receiving SLoc. | ||
| IssgOrRcvgBatch | IssgOrRcvgBatch | Transfer Batch | ||
| IssgOrRcvgSpclStockInd | IssgOrRcvgSpclStockInd | Special Stock | ||
| IssuingOrReceivingValType | IssuingOrReceivingValType | Val. Type Tfr. | ||
| CompanyCode | CompanyCode | Receiver Company Code | ||
| BusinessArea | BusinessArea | Business Area | ||
| ControllingArea | ControllingArea | Controlling Area | ||
| FiscalYearPeriod | FiscalYearPeriod | Period/Year | ||
| FiscalYearVariant | FiscalYearVariant | FY Variant | ||
| GoodsMovementRefDocType | GoodsMovementRefDocType | Reference Doc. Type | ||
| IsCompletelyDelivered | IsCompletelyDelivered | Is completely delivered | ||
| MaterialDocumentItemText | MaterialDocumentItemText | Text | ||
| IsAutomaticallyCreated | IsAutomaticallyCreated | Is Automatically Created | ||
| SerialNumbersAreCreatedAutomly | SerialNumbersAreCreatedAutomly | SerialNo. auto. | ||
| GoodsReceiptType | GoodsReceiptType | Receipt Ind. | ||
| ConsumptionPosting | ConsumptionPosting | Consumption Posting | ||
| MultiAcctAssgmtOriglMatlDocItm | MultiAcctAssgmtOriglMatlDocItm | |||
| MultipleAccountAssignmentCode | MultipleAccountAssignmentCode | |||
| GoodsMovementIsCancelled | GoodsMovementIsCancelled | Is Item Cancelled | ||
| IssuingOrReceivingStockType | IssuingOrReceivingStockType | |||
| ManufacturingOrder | ManufacturingOrder | Order | ||
| ManufacturingOrderItem | ManufacturingOrderItem | Manufacturing Order Item | ||
| MaterialDocumentLine | MaterialDocumentLine | Line ID | ||
| MaterialDocumentParentLine | MaterialDocumentParentLine | Parent ID | ||
| SpecialStockIdfgSalesOrder | SpecialStockIdfgSalesOrder | Stock Ident Header | ||
| SpecialStockIdfgSalesOrderItem | SpecialStockIdfgSalesOrderItem | Stock Ident Item | ||
| SpecialStockIdfgWBSElement | WBS Internal ID | |||
| QtyInPurchaseOrderPriceUnit | QtyInPurchaseOrderPriceUnit | Qty in OPUn | ||
| OrderPriceUnit | OrderPriceUnit | Order Price Un. | ||
| QuantityInDeliveryQtyUnit | QuantityInDeliveryQtyUnit | |||
| DeliveryQuantityUnit | DeliveryQuantityUnit | Unit of measure | ||
| ProfitCenter | ProfitCenter | Profit Center | ||
| ProductStandardID | _Product | ProductStandardID | GTIN | |
| GdsMvtExtAmtInCoCodeCrcy | GdsMvtExtAmtInCoCodeCrcy | Ext. Amount LC | ||
| InvtryMgmtReferenceDocument | InvtryMgmtReferenceDocument | Reference Doc. | ||
| InvtryMgmtRefDocumentItem | InvtryMgmtRefDocumentItem | Ref. Doc. Item | ||
| EWMFieldsEWMWarehouse | ||||
| EWMStorageBin | EWMStorageBin | Storage Bin | ||
| MaterialDocumentPostingType | MaterialDocumentPostingType | Type of posting | ||
| OriginalMaterialDocumentItem | OriginalMaterialDocumentItem | Orig. line itm | ||
| _MaterialDocumentYear | _MaterialDocumentYear | |||
| _MaterialDocumentHeader | _MaterialDocumentHeader | |||
| _Material | _Material | |||
| _IssgOrRcvgMaterial | _IssgOrRcvgMaterial | |||
| _Plant | _Plant | |||
| _IssuingOrReceivingPlant | _IssuingOrReceivingPlant | |||
| _StorageLocation | _StorageLocation | |||
| _IssuingOrReceivingStorageLoc | _IssuingOrReceivingStorageLoc | |||
| _Supplier | _Supplier | |||
| _Customer | _Customer | |||
| _SupplierCompanyByPlant | _SupplierCompanyByPlant | |||
| _CustomerCompanyByPlant | _CustomerCompanyByPlant | |||
| _BPStockOwner | _BPStockOwner | |||
| _InventorySpecialStockType | _InventorySpecialStockType | |||
| _IssgOrRcvgSpclStockInd | _IssgOrRcvgSpclStockInd | |||
| _InventoryStockType | _InventoryStockType | |||
| _InventoryValuationType | _InventoryValuationType | |||
| _GoodsMovementType | _GoodsMovementType | |||
| _DebitCreditCode | _DebitCreditCode | |||
| _StockType | _StockType | |||
| _StockType_2 | _StockType_2 | |||
| _MaterialBaseUnit | _MaterialBaseUnit | |||
| _EntryUnit | _EntryUnit | |||
| _GLAccount | _GLAccount | |||
| _CostCenter | _CostCenter | |||
| _BusinessPartner | _BusinessPartner | |||
| _PersonWorkAgreement | _PersonWorkAgreement | |||
| _AccountAssignmentCategory | _AccountAssignmentCategory | |||
| _WorkItem | _WorkItem | |||
| _CompanyCode | _CompanyCode | |||
| _BusinessArea | _BusinessArea | |||
| _ControllingArea | _ControllingArea | |||
| _SalesOrder | _SalesOrder | |||
| _SalesOrderItem | _SalesOrderItem | |||
| _SalesOrderScheduleLine | _SalesOrderScheduleLine | |||
| _WBSElement | _WBSElement | |||
| _PurchaseOrder | _PurchaseOrder | |||
| _PurchaseOrderItem | _PurchaseOrderItem | |||
| _ProjectNetwork | _ProjectNetwork | |||
| _LogisticsOrder | _LogisticsOrder | |||
| _DeliveryDocument | _DeliveryDocument | |||
| _DeliveryDocumentItem | _DeliveryDocumentItem | |||
| _ReversedMatDoc | _ReversedMatDoc | |||
| _ReversedMatDocItem | _ReversedMatDocItem | |||
| _GoodsMvtTypeBySpclStkIndT | _GoodsMvtTypeBySpclStkIndT | |||
| _Currency | _Currency |
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_MaterialDocumentItem.
-- 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_MaterialDocumentItem AS
SELECT
MaterialDocumentYear AS LgclInvtryAdjmtDocumentYear,
MaterialDocument,
cast( lpad(MaterialDocumentItem, 6, '0' ) as oia_item ) AS ExchangeItemNumber,
Material,
StockIdentifyingMaterial,
Plant,
StorageLocation,
StorageType,
StorageBin,
Batch,
ShelfLifeExpirationDate,
ManufactureDate,
Supplier,
SalesOrder,
SalesOrderItem,
SalesOrderScheduleLine,
cast(WBSElementInternalID as nsdm_wbselement_internal_id preserving type) AS WBSElementInternalID,
Customer,
InventorySpecialStockType,
InventoryStockType,
StockOwner,
GoodsMovementType,
DebitCreditCode,
InventoryUsabilityCode,
QuantityInBaseUnit,
MaterialBaseUnit,
QuantityInEntryUnit,
EntryUnit,
PostingDate,
YearMonth,
YearWeek,
DocumentDate,
ReservationRecordType AS ReservationItemRecordType,
TotalGoodsMvtAmtInCCCrcy,
CompanyCodeCurrency,
InventoryValuationType,
ReservationIsFinallyIssued,
PurchaseOrder,
PurchaseOrderItem,
ProjectNetwork,
OrderID,
OrderItem,
MaintOrderRoutingNumber,
MaintOrderOperationCounter,
Reservation,
ReservationItem,
DeliveryDocument,
DeliveryDocumentItem,
ReversedMaterialDocumentYear,
ReversedMaterialDocument,
ReversedMaterialDocumentItem,
RvslOfGoodsReceiptIsAllowed,
GoodsRecipientName,
GoodsMovementReasonCode,
UnloadingPointName,
CostCenter,
GLAccount,
ServicePerformer,
PersonWorkAgreement,
AccountAssignmentCategory,
WorkItem,
ServicesRenderedDate,
IssgOrRcvgMaterial,
IssuingOrReceivingPlant,
IssuingOrReceivingStorageLoc,
IssgOrRcvgBatch,
IssgOrRcvgSpclStockInd,
IssuingOrReceivingValType,
CompanyCode,
BusinessArea,
ControllingArea,
FiscalYearPeriod,
FiscalYearVariant,
GoodsMovementRefDocType,
IsCompletelyDelivered,
MaterialDocumentItemText,
IsAutomaticallyCreated,
SerialNumbersAreCreatedAutomly,
GoodsReceiptType,
ConsumptionPosting,
MultiAcctAssgmtOriglMatlDocItm,
MultipleAccountAssignmentCode,
GoodsMovementIsCancelled,
IssuingOrReceivingStockType,
ManufacturingOrder,
ManufacturingOrderItem,
MaterialDocumentLine,
MaterialDocumentParentLine,
SpecialStockIdfgSalesOrder,
SpecialStockIdfgSalesOrderItem,
cast(SpecialStockIdfgWBSElement as nsdm_wbselement_internal_id preserving type) AS SpecialStockIdfgWBSElement,
QtyInPurchaseOrderPriceUnit,
OrderPriceUnit,
QuantityInDeliveryQtyUnit,
DeliveryQuantityUnit,
ProfitCenter,
_Product.ProductStandardID AS ProductStandardID,
GdsMvtExtAmtInCoCodeCrcy,
InvtryMgmtReferenceDocument,
InvtryMgmtRefDocumentItem,
EWMStorageBin,
MaterialDocumentPostingType,
OriginalMaterialDocumentItem
FROM I_MaterialDocumentRecord
LEFT OUTER JOIN I_MaterialDocumentYear AS _MaterialDocumentYear ON LgclInvtryAdjmtDocumentYear = _MaterialDocumentYear.MaterialDocumentYear -- association [1..1]
LEFT OUTER JOIN I_MaterialDocumentHeader_2 AS _MaterialDocumentHeader ON LgclInvtryAdjmtDocumentYear = _MaterialDocumentHeader.MaterialDocumentYear AND MaterialDocument = _MaterialDocumentHeader.MaterialDocument -- association [1..1]
LEFT OUTER JOIN I_MaterialDocumentHeader_2 AS _ReversedMatDoc ON ReversedMaterialDocumentYear = _ReversedMatDoc.MaterialDocumentYear AND ReversedMaterialDocument = _ReversedMatDoc.MaterialDocument -- association [0..1]
LEFT OUTER JOIN I_MaterialDocumentItem_2 AS _ReversedMatDocItem ON ReversedMaterialDocumentYear = _ReversedMatDocItem.MaterialDocumentYear AND ReversedMaterialDocument = _ReversedMatDocItem.MaterialDocument AND ReversedMaterialDocumentItem = _ReversedMatDocItem.MaterialDocumentItem -- association [0..1]
LEFT OUTER JOIN I_Product AS _Product ON Material = _Product.Product -- association [0..1]
;
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