R_OIL_ExchangeStatementTP

DDL: R_OIL_EXCHANGESTATEMENTTP Type: view_entity TRANSACTIONAL

Exchange Statement - TP

R_OIL_ExchangeStatementTP is a Transactional CDS View that provides data about "Exchange Statement - TP" in SAP S/4HANA. It reads from 1 data source (I_OIL_ExchangeStatement) and exposes 72 fields with key field ExchangeStatementDocument. It has 1 association to related views.

Data Sources (1)

SourceAliasJoin Type
I_OIL_ExchangeStatement I_OIL_ExchangeStatement from

Associations (1)

CardinalityTargetAliasCondition
[0..*] R_OIL_ExchNettingProposalTP _ExchNettingProposalTP

Annotations (10)

NameValueLevelField
AccessControl.authorizationCheck #MANDATORY view
AccessControl.personalData.blocking #BLOCKED_DATA_EXCLUDED view
EndUserText.label Exchange Statement - TP view
ObjectModel.representativeKey ExchangeStatementDocument view
ObjectModel.sapObjectNodeType.name OIL_ExchangeStatement view
ObjectModel.usageType.serviceQuality #B view
ObjectModel.usageType.sizeCategory #M view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
VDM.viewType #TRANSACTIONAL view
VDM.lifecycle.contract.type #SAP_INTERNAL_API view

Fields (72)

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
_BillingDocumentType _BillingDocumentType
_Supplier _Supplier
_SalesOrganization _SalesOrganization
_Division _Division
_Currency _Currency
_DistributionChannel _DistributionChannel
_ExchangeHeaderFrom _ExchangeHeaderFrom
_ExchangeHeaderTo _ExchangeHeaderTo
_ExchangeAgreementTypeFrom _ExchangeAgreementTypeFrom
_ExchangeAgreementTypeTo _ExchangeAgreementTypeTo
_MaterialFrom _MaterialFrom
_MaterialTo _MaterialTo
_PlantFrom _PlantFrom
_PlantTo _PlantTo
_UnitOfMeasure _UnitOfMeasure
_ExchangeDocumentStatusVH _ExchangeDocumentStatusVH
_ExchNettingProposalTP _ExchNettingProposalTP

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 R_OIL_ExchangeStatementTP.
-- 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 R_OIL_ExchangeStatementTP 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 I_OIL_ExchangeStatement
LEFT OUTER JOIN R_OIL_ExchNettingProposalTP AS _ExchNettingProposalTP ON /* condition not available in parsed metadata */  -- association [0..*]
;