A_OIL_ExchangeStatement

DDL: A_OIL_EXCHANGESTATEMENT Type: view_entity CONSUMPTION

Exchange Statement

A_OIL_ExchangeStatement is a Consumption CDS View that provides data about "Exchange Statement" in SAP S/4HANA. It reads from 1 data source (R_OIL_ExchangeStatementTP) and exposes 55 fields with key field ExchangeStatementDocument.

Data Sources (1)

SourceAliasJoin Type
R_OIL_ExchangeStatementTP R_OIL_ExchangeStatementTP projection

Annotations (11)

NameValueLevelField
AccessControl.authorizationCheck #MANDATORY view
AccessControl.personalData.blocking #BLOCKED_DATA_EXCLUDED view
EndUserText.label Exchange Statement view
Metadata.ignorePropagatedAnnotations true view
OData.entityType.name OIL_ExchangeStatement_Type view
ObjectModel.representativeKey ExchangeStatementDocument view
ObjectModel.usageType.serviceQuality #B view
ObjectModel.usageType.sizeCategory #M view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
VDM.viewType #CONSUMPTION view
VDM.lifecycle.contract.type #PUBLIC_REMOTE_API view

Fields (55)

KeyFieldSource TableSource FieldDescription
KEY ExchangeStatementDocument ExchangeStatementDocument
ExchStatementIsNettingDocument ExchStatementIsNettingDocument
ExchangeStatementType ExchangeStatementType
ExchangePartner ExchangePartner Exg.partner
SalesOrganization SalesOrganization Sales Organization
Division Division Internal Division ID
DistributionChannel DistributionChannel RefDistCh-Cust/Mat.
Currency Currency Valuation Crcy
FromExchangeAgreement FromExchangeAgreement
ToExchangeAgreementNumber ToExchangeAgreementNumber
FromExchangeType FromExchangeType
ToExchangeType ToExchangeType
FromMaterialGroupReference FromMaterialGroupReference
ToMaterialGroupReference ToMaterialGroupReference
FromMaterialNumber FromMaterialNumber
ToMaterialNumber ToMaterialNumber
FromBaseProductNumber FromBaseProductNumber
ToBaseProductNumber ToBaseProductNumber
FromPlant FromPlant
ToPlant ToPlant
FromPeriod FromPeriod
ToPeriod ToPeriod To period
ExchangeMovementFromDate ExchangeMovementFromDate
ExchangeMovementToDate ExchangeMovementToDate
FromWeek FromWeek
ToWeek ToWeek
FromPostingPeriod FromPostingPeriod
ToPostingPeriod ToPostingPeriod
ExchangeDocumentStatus ExchangeDocumentStatus
FinancialYear FinancialYear Fiscal Year
BatchInputSessionName BatchInputSessionName
NettingDocumentBatchInputValue NettingDocumentBatchInputValue
NetBalance NetBalance
CreationDate CreationDate Time Stamp
CreationTime CreationTime Time of Change
CreatedByUser CreatedByUser User Name
LastChangeDate LastChangeDate Time Stamp
ChangedTime ChangedTime Changed at
LastChangeByUser LastChangeByUser User Name
InvoiceCycle1IsActive InvoiceCycle1IsActive
InvoiceCycle2IsActive InvoiceCycle2IsActive
InvoiceCycle3IsActive InvoiceCycle3IsActive
InvoiceCycle4IsActive InvoiceCycle4IsActive
InvoiceCycle5IsActive InvoiceCycle5IsActive
InvoiceCycle6IsActive InvoiceCycle6IsActive
InvoiceCycle7IsActive InvoiceCycle7IsActive
InvoiceCycle8IsActive InvoiceCycle8IsActive
InvoiceCycle9IsActive InvoiceCycle9IsActive
LgclInvtryAdjustmentIsIncluded LgclInvtryAdjustmentIsIncluded
PureFinancialsAreIncluded PureFinancialsAreIncluded
UnitOfMeasure UnitOfMeasure Unit Protected Qty
MvtWithoutFinancialsIsIncluded MvtWithoutFinancialsIsIncluded
ExchangeBalanceIsIncluded ExchangeBalanceIsIncluded
CompanyCodeCurrency CompanyCodeCurrency Local Currency
PrmtHbSchedDtaAgingFltrDte PrmtHbSchedDtaAgingFltrDte Data Aging

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 A_OIL_ExchangeStatement.
-- 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 A_OIL_ExchangeStatement AS
SELECT
  ExchangeStatementDocument,
  ExchStatementIsNettingDocument,
  ExchangeStatementType,
  ExchangePartner,
  SalesOrganization,
  Division,
  DistributionChannel,
  Currency,
  FromExchangeAgreement,
  ToExchangeAgreementNumber,
  FromExchangeType,
  ToExchangeType,
  FromMaterialGroupReference,
  ToMaterialGroupReference,
  FromMaterialNumber,
  ToMaterialNumber,
  FromBaseProductNumber,
  ToBaseProductNumber,
  FromPlant,
  ToPlant,
  FromPeriod,
  ToPeriod,
  ExchangeMovementFromDate,
  ExchangeMovementToDate,
  FromWeek,
  ToWeek,
  FromPostingPeriod,
  ToPostingPeriod,
  ExchangeDocumentStatus,
  FinancialYear,
  BatchInputSessionName,
  NettingDocumentBatchInputValue,
  NetBalance,
  CreationDate,
  CreationTime,
  CreatedByUser,
  LastChangeDate,
  ChangedTime,
  LastChangeByUser,
  InvoiceCycle1IsActive,
  InvoiceCycle2IsActive,
  InvoiceCycle3IsActive,
  InvoiceCycle4IsActive,
  InvoiceCycle5IsActive,
  InvoiceCycle6IsActive,
  InvoiceCycle7IsActive,
  InvoiceCycle8IsActive,
  InvoiceCycle9IsActive,
  LgclInvtryAdjustmentIsIncluded,
  PureFinancialsAreIncluded,
  UnitOfMeasure,
  MvtWithoutFinancialsIsIncluded,
  ExchangeBalanceIsIncluded,
  CompanyCodeCurrency,
  PrmtHbSchedDtaAgingFltrDte
FROM R_OIL_ExchangeStatementTP
;