I_OIL_ExchangeAgreementHeader
Exchange Agreement
I_OIL_ExchangeAgreementHeader is a Basic CDS View that provides data about "Exchange Agreement" in SAP S/4HANA. It reads from 1 data source (oia01) and exposes 41 fields with key field ExchangeAgreement. It has 10 associations to related views.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| oia01 | oia01 | from |
Associations (10)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [1..1] | I_OIL_ExchangeAgreementTypeVH | _ExchangeAgreementTypeVH | _ExchangeAgreementTypeVH.ExchangeAgreementType = $projection.ExchangeAgreementType |
| [1..1] | I_Supplier | _Supplier | _Supplier.Supplier = $projection.ExchangePartner |
| [1..1] | I_OIL_PaymentBlockingReasonVH | _PaymentBlockingReason | _PaymentBlockingReason.PaymentBlockKey = $projection.PaymentBlockKey |
| [1..1] | I_OIL_ExchAgrmtMatlPostgRuleVH | _MaterialPostingRuleVH | _MaterialPostingRuleVH.MaterialPostingRule = $projection.MaterialPostingRule |
| [1..1] | I_OIL_ExchAgrmtFeePostgRuleVH | _FeePostingRuleVH | _FeePostingRuleVH.FeePostingRule = $projection.FeePostingRule |
| [1..1] | I_OIL_QtySchedBreakdownCodeVH | _QtySchedBreakdownCodeVH | _QtySchedBreakdownCodeVH.QuantityScheduleBreakdown = $projection.QuantityScheduleBreakdown |
| [1..1] | I_OIL_QtySchedSplitCodeVH | _QtySchedSplitCodeVH | _QtySchedSplitCodeVH.QuantityScheduleSplitType = $projection.QuantityScheduleSplitType |
| [1..1] | I_OIL_ExchAgreementStatusVH | _ExchAgreementStatusVH | _ExchAgreementStatusVH.ExchangeAgreementStatus = $projection.ExchangeAgreementStatus |
| [1..1] | I_OIL_ExchangeEvergreenTypeVH | _ExchangeEvergreenTypeVH | _ExchangeEvergreenTypeVH.EvergreenType = $projection.EvergreenType |
| [0..1] | E_OIL_ExchangeAgreement | _ExchangeAgreementExtension | _ExchangeAgreementExtension.ExchangeAgreement = $projection.ExchangeAgreement |
Annotations (10)
| Name | Value | Level | Field |
|---|---|---|---|
| AccessControl.authorizationCheck | #MANDATORY | view | |
| AccessControl.personalData.blocking | #BLOCKED_DATA_EXCLUDED | view | |
| EndUserText.label | Exchange Agreement | view | |
| ObjectModel.representativeKey | ExchangeAgreement | view | |
| ObjectModel.sapObjectNodeType.name | OIL_ExchangeAgreement | 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 | ExchangeAgreement | exgnum | Exchange no. | |
| ExchangeAgreementType | exgtyp | Exchange type | ||
| ExchangePartner | exgptr | Exg.partner | ||
| ExchAgreementPartnerRefCode | ptrref | Partner ref. | ||
| MaterialPostingRule | matpst | Mat.posting | ||
| FeePostingRule | feepst | Fee posting | ||
| IsNettingActive | nettng | Netting active | ||
| QuantityScheduleBreakdown | entlu | QS breakdown | ||
| IndicatorForOwnershipCheck | ownchk | Ownership check | ||
| ExchangeDocumentNumberRange | numkr | Number range Orders | ||
| IsFeeCheckApplied | feechk | Apply fee check | ||
| IsVATRelevant | oia_ipmvat | VAT on int.mat. | ||
| QuantityScheduleSplitType | split | Splitting | ||
| CreationDate | erdat | Entered On | ||
| CreationTime | ertim | Time | ||
| CreatedByUser | ernam | User Name | ||
| LastChangeDate | aedat | Obsolete | ||
| ChangedTime | aetim | Time | ||
| LastChangeByUser | aenam | User Name | ||
| PaymentBlockKey | netcyc | Netting cycle | ||
| BaseProductPricingRoutine | oisbrel | S/B prod.ind. | ||
| BaseProductAssignmentUserExit | oichsbp | S/B prod. check | ||
| BaseLocation | oia_baselo | Base location | ||
| ExchangeAgreementStatus | exgstat | Exchange status | ||
| StartDate | begda | Valid From | ||
| EndDate | endda | Valid To | ||
| ExchangeAgreementReviewDate | revda | Review date | ||
| EvergreenType | evgtype | Evergreen type | ||
| ExchangeNoticePeriodInDays | notper | Notice period | ||
| ExchAgreementIsNotSelectable | exgselect | Flag to Sel Exchange | ||
| ExchangeFeeIsPricingBased | oia_pb_fee | Pricing-based fees | ||
| PrmtHbSchedDtaAgingFltrDte | _dataaging | Data Aging | ||
| _ExchangeAgreementTypeVH | _ExchangeAgreementTypeVH | |||
| _Supplier | _Supplier | |||
| _MaterialPostingRuleVH | _MaterialPostingRuleVH | |||
| _FeePostingRuleVH | _FeePostingRuleVH | |||
| _QtySchedBreakdownCodeVH | _QtySchedBreakdownCodeVH | |||
| _QtySchedSplitCodeVH | _QtySchedSplitCodeVH | |||
| _PaymentBlockingReason | _PaymentBlockingReason | |||
| _ExchAgreementStatusVH | _ExchAgreementStatusVH | |||
| _ExchangeEvergreenTypeVH | _ExchangeEvergreenTypeVH |
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_ExchangeAgreementHeader.
-- 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_ExchangeAgreementHeader AS
SELECT
exgnum AS ExchangeAgreement,
exgtyp AS ExchangeAgreementType,
exgptr AS ExchangePartner,
ptrref AS ExchAgreementPartnerRefCode,
matpst AS MaterialPostingRule,
feepst AS FeePostingRule,
nettng AS IsNettingActive,
entlu AS QuantityScheduleBreakdown,
ownchk AS IndicatorForOwnershipCheck,
numkr AS ExchangeDocumentNumberRange,
feechk AS IsFeeCheckApplied,
oia_ipmvat AS IsVATRelevant,
split AS QuantityScheduleSplitType,
erdat AS CreationDate,
ertim AS CreationTime,
ernam AS CreatedByUser,
aedat AS LastChangeDate,
aetim AS ChangedTime,
aenam AS LastChangeByUser,
netcyc AS PaymentBlockKey,
oisbrel AS BaseProductPricingRoutine,
oichsbp AS BaseProductAssignmentUserExit,
oia_baselo AS BaseLocation,
exgstat AS ExchangeAgreementStatus,
begda AS StartDate,
endda AS EndDate,
revda AS ExchangeAgreementReviewDate,
evgtype AS EvergreenType,
notper AS ExchangeNoticePeriodInDays,
exgselect AS ExchAgreementIsNotSelectable,
oia_pb_fee AS ExchangeFeeIsPricingBased
FROM oia01
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_OIL_PaymentBlockingReasonVH AS _PaymentBlockingReason ON _PaymentBlockingReason.PaymentBlockKey = PaymentBlockKey -- association [1..1]
LEFT OUTER JOIN I_OIL_ExchAgrmtMatlPostgRuleVH AS _MaterialPostingRuleVH ON _MaterialPostingRuleVH.MaterialPostingRule = MaterialPostingRule -- association [1..1]
LEFT OUTER JOIN I_OIL_ExchAgrmtFeePostgRuleVH AS _FeePostingRuleVH ON _FeePostingRuleVH.FeePostingRule = FeePostingRule -- association [1..1]
LEFT OUTER JOIN I_OIL_QtySchedBreakdownCodeVH AS _QtySchedBreakdownCodeVH ON _QtySchedBreakdownCodeVH.QuantityScheduleBreakdown = QuantityScheduleBreakdown -- association [1..1]
LEFT OUTER JOIN I_OIL_QtySchedSplitCodeVH AS _QtySchedSplitCodeVH ON _QtySchedSplitCodeVH.QuantityScheduleSplitType = QuantityScheduleSplitType -- association [1..1]
LEFT OUTER JOIN I_OIL_ExchAgreementStatusVH AS _ExchAgreementStatusVH ON _ExchAgreementStatusVH.ExchangeAgreementStatus = ExchangeAgreementStatus -- association [1..1]
LEFT OUTER JOIN I_OIL_ExchangeEvergreenTypeVH AS _ExchangeEvergreenTypeVH ON _ExchangeEvergreenTypeVH.EvergreenType = EvergreenType -- association [1..1]
LEFT OUTER JOIN E_OIL_ExchangeAgreement AS _ExchangeAgreementExtension ON _ExchangeAgreementExtension.ExchangeAgreement = ExchangeAgreement -- 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