I_OIL_ExchQtyPurchaseHeader
Quantity schedule Purchase header table
I_OIL_ExchQtyPurchaseHeader is a Basic CDS View that provides data about "Quantity schedule Purchase header table" in SAP S/4HANA. It reads from 1 data source (oia06h) and exposes 41 fields with key fields PurchasingDocument, PurchasingDocumentItem, ExchangePurchaseSubitem, CompanyCode. It has 12 associations to related views.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| oia06h | oia06h | from |
Associations (12)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [1..1] | I_CompanyCode | _CompanyCode | _CompanyCode.CompanyCode = $projection.CompanyCode |
| [1..1] | I_PurchasingDocument | _PurchasingDocument | _PurchasingDocument.PurchasingDocument = $projection.PurchasingDocument |
| [1..*] | I_PurchasingDocumentItem | _PurchasingDocumentItem | _PurchasingDocumentItem.PurchasingDocumentItem = $projection.PurchasingDocumentItem |
| [1..1] | I_Material | _Material | _Material.Material = $projection.Material |
| [1..1] | I_Plant | _Plant | _Plant.Plant = $projection.Plant |
| [1..1] | I_OIL_ExchangeAgreementTypeVH | _ExchangeAgreementTypeVH | _ExchangeAgreementTypeVH.ExchangeAgreementType = $projection.ExchangeAgreementType |
| [1..1] | I_Supplier | _Supplier | _Supplier.Supplier = $projection.ExchangePartner |
| [1..1] | I_UnitOfMeasure | _UnitOfMeasure | _UnitOfMeasure.UnitOfMeasure = $projection.ScheduleUnitOfMeasure |
| [1..1] | I_OIL_QtySchedBreakdownCodeVH | _QtySchedBreakdownCodeVH | _QtySchedBreakdownCodeVH.QuantityScheduleBreakdown = $projection.QuantityScheduleBreakdown |
| [1..1] | I_FactoryCalendar | _FactoryCalendar | _FactoryCalendar.FactoryCalendar = $projection.FactoryCalendar |
| [1..1] | I_OIL_QtySchedSplitCodeVH | _QtySchedSplitCodeVH | _QtySchedSplitCodeVH.QuantityScheduleSplitType = $projection.QuantityScheduleSplitType |
| [1..1] | I_OIL_ContractIndicatorVH | _OIL_ContractIndicatorVH | _OIL_ContractIndicatorVH.IndicatorIsContract = $projection.IndicatorIsContract |
Annotations (8)
| Name | Value | Level | Field |
|---|---|---|---|
| AccessControl.authorizationCheck | #MANDATORY | view | |
| AccessControl.personalData.blocking | #BLOCKED_DATA_EXCLUDED | view | |
| EndUserText.label | Quantity schedule Purchase header table | view | |
| ObjectModel.usageType.serviceQuality | #A | view | |
| ObjectModel.usageType.sizeCategory | #M | view | |
| ObjectModel.usageType.dataClass | #TRANSACTIONAL | view | |
| VDM.lifecycle.contract.type | #SAP_INTERNAL_API | view | |
| VDM.viewType | #BASIC | view |
Fields (41)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | PurchasingDocument | ebeln | Source PurchDoc | |
| KEY | PurchasingDocumentItem | ebelp | Item pur. doc. | |
| KEY | ExchangePurchaseSubitem | subitm | Sub item no. | |
| KEY | CompanyCode | bukrs | Value | |
| IndicatorIsContract | cind | Contr/call-off | ||
| ObjectLinkIsMarkedForDeletion | lvorm | Stock del. flag | ||
| Material | matnr | Vehicle Model | ||
| Plant | werks | Receiving Plant | ||
| ExchangeAgreementType | exgtyp | Exchange type | ||
| ExchangePartner | exgptr | Exg.partner | ||
| PurchasingOrderType | cnttyp | Order Type | ||
| ExchangeGoodsReceiptQuantity | smenge_pos | Called-off qty. | ||
| GoodsReceiptQuantity | smenge | Called-off qty. | ||
| ScheduledQuantity | intqty | Sched.qty. | ||
| ScheduleUnitOfMeasure | meins | Valuation Unit | ||
| QuantityScheduleBreakdown | entlu | QS breakdown | ||
| QuantityScheduleSplitType | split | Splitting | ||
| DeliveryTransportMode | mod | Fiscal Coupon Model | ||
| BrexitProtocolValidFromDate | vondat | Valid From | ||
| BrexitProtocolValidToDate | bisdat | Valid to | ||
| ExchangeAgreementPriority | oiprior | Priority | ||
| FactoryCalendar | kalid | Pub.hol.cal.ID | ||
| CreationDate | erdat | Entered On | ||
| CreationTime | ertim | Time | ||
| CreatedByUser | ernam | User Name | ||
| LastChangeDate | aedat | Obsolete | ||
| ChangedTime | aetim | Time | ||
| LastChangeByUser | aenam | User Name | ||
| PrmtHbSchedDtaAgingFltrDte | _dataaging | Data Aging | ||
| _PurchasingDocument | _PurchasingDocument | |||
| _PurchasingDocumentItem | _PurchasingDocumentItem | |||
| _CompanyCode | _CompanyCode | |||
| _OIL_ContractIndicatorVH | _OIL_ContractIndicatorVH | |||
| _Material | _Material | |||
| _Plant | _Plant | |||
| _ExchangeAgreementTypeVH | _ExchangeAgreementTypeVH | |||
| _Supplier | _Supplier | |||
| _UnitOfMeasure | _UnitOfMeasure | |||
| _QtySchedBreakdownCodeVH | _QtySchedBreakdownCodeVH | |||
| _QtySchedSplitCodeVH | _QtySchedSplitCodeVH | |||
| _FactoryCalendar | _FactoryCalendar |
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_ExchQtyPurchaseHeader.
-- 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_ExchQtyPurchaseHeader AS
SELECT
ebeln AS PurchasingDocument,
ebelp AS PurchasingDocumentItem,
subitm AS ExchangePurchaseSubitem,
bukrs AS CompanyCode,
cind AS IndicatorIsContract,
lvorm AS ObjectLinkIsMarkedForDeletion,
matnr AS Material,
werks AS Plant,
exgtyp AS ExchangeAgreementType,
exgptr AS ExchangePartner,
cnttyp AS PurchasingOrderType,
smenge_pos AS ExchangeGoodsReceiptQuantity,
smenge AS GoodsReceiptQuantity,
intqty AS ScheduledQuantity,
meins AS ScheduleUnitOfMeasure,
entlu AS QuantityScheduleBreakdown,
split AS QuantityScheduleSplitType,
mod AS DeliveryTransportMode,
vondat AS BrexitProtocolValidFromDate,
bisdat AS BrexitProtocolValidToDate,
oiprior AS ExchangeAgreementPriority,
kalid AS FactoryCalendar,
erdat AS CreationDate,
ertim AS CreationTime,
ernam AS CreatedByUser,
aedat AS LastChangeDate,
aetim AS ChangedTime,
aenam AS LastChangeByUser
FROM oia06h
LEFT OUTER JOIN I_CompanyCode AS _CompanyCode ON _CompanyCode.CompanyCode = CompanyCode -- association [1..1]
LEFT OUTER JOIN I_PurchasingDocument AS _PurchasingDocument ON _PurchasingDocument.PurchasingDocument = PurchasingDocument -- association [1..1]
LEFT OUTER JOIN I_PurchasingDocumentItem AS _PurchasingDocumentItem ON _PurchasingDocumentItem.PurchasingDocumentItem = PurchasingDocumentItem -- association [1..*]
LEFT OUTER JOIN I_Material AS _Material ON _Material.Material = Material -- association [1..1]
LEFT OUTER JOIN I_Plant AS _Plant ON _Plant.Plant = Plant -- association [1..1]
LEFT OUTER JOIN I_OIL_ExchangeAgreementTypeVH AS _ExchangeAgreementTypeVH ON _ExchangeAgreementTypeVH.ExchangeAgreementType = ExchangeAgreementType -- association [1..1]
LEFT OUTER JOIN I_Supplier AS _Supplier ON _Supplier.Supplier = ExchangePartner -- association [1..1]
LEFT OUTER JOIN I_UnitOfMeasure AS _UnitOfMeasure ON _UnitOfMeasure.UnitOfMeasure = ScheduleUnitOfMeasure -- association [1..1]
LEFT OUTER JOIN I_OIL_QtySchedBreakdownCodeVH AS _QtySchedBreakdownCodeVH ON _QtySchedBreakdownCodeVH.QuantityScheduleBreakdown = QuantityScheduleBreakdown -- association [1..1]
LEFT OUTER JOIN I_FactoryCalendar AS _FactoryCalendar ON _FactoryCalendar.FactoryCalendar = FactoryCalendar -- association [1..1]
LEFT OUTER JOIN I_OIL_QtySchedSplitCodeVH AS _QtySchedSplitCodeVH ON _QtySchedSplitCodeVH.QuantityScheduleSplitType = QuantityScheduleSplitType -- association [1..1]
LEFT OUTER JOIN I_OIL_ContractIndicatorVH AS _OIL_ContractIndicatorVH ON _OIL_ContractIndicatorVH.IndicatorIsContract = IndicatorIsContract -- association [1..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