I_CmmdtyHdgTransFlowDetails

DDL: I_CMMDTYHDGTRANSFLOWDETAILS Type: view COMPOSITE

Constellation Deals flow details

I_CmmdtyHdgTransFlowDetails is a Composite CDS View that provides data about "Constellation Deals flow details" in SAP S/4HANA. It reads from 4 data sources (vtbfha, vtbfha, I_CmmdtyFinTransactionFlow, I_CmmdtyFinTransFlowUnfixed) and exposes 12 fields with key fields CompanyCode, CmmdtyHedgeConstellationDeal, CmmdtyHedgeConstellationDeal. It has 1 association to related views.

Data Sources (4)

SourceAliasJoin Type
vtbfha _Transaction left_outer
vtbfha _Transaction left_outer
I_CmmdtyFinTransactionFlow fhapo inner
I_CmmdtyFinTransFlowUnfixed fhapo_unfixed inner

Associations (1)

CardinalityTargetAliasCondition
[0..1] I_CmmdtyFinTransFlowUnfixed fhapo_unfixed fhapo_unfixed.CompanyCode = fhapo.CompanyCode and fhapo_unfixed.FinancialTransaction = fhapo.FinancialTransaction and fhapo_unfixed.FinancialInstrumentActivity = fhapo.FinancialInstrumentActivity and fhapo_unfixed.FinTransCreationDate = fhapo.FinTransCreationDate and fhapo_unfixed.FinTransFlowCreationTime = fhapo.FinTransFlowCreationTime and ( fhapo_unfixed.FinTransReferenceFlowUUID = fhapo.FinancialTransactionFlowUUID or fhapo_unfixed.FinancialTransactionFlowUUID = fhapo.FinTransReferenceFlowUUID ) and ( fhapo_unfixed.FinTransFlowCategory = '50' or fhapo_unfixed.FinTransFlowCategory = '51' )

Annotations (9)

NameValueLevelField
AbapCatalog.sqlViewName ITRANSFLWDETS view
AbapCatalog.compiler.compareFilter true view
VDM.viewType #COMPOSITE view
AccessControl.authorizationCheck #NOT_REQUIRED view
ClientHandling.algorithm #SESSION_VARIABLE view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #L view
EndUserText.label Constellation Deals flow details view

Fields (12)

KeyFieldSource TableSource FieldDescription
KEY CompanyCode I_CmmdtyFinTransactionFlow CompanyCode Receiver Company Code
KEY CmmdtyHedgeConstellationDeal I_CmmdtyFinTransactionFlow FinancialTransaction Transaction
FinTransCreationDate I_CmmdtyFinTransactionFlow FinTransCreationDate Entry Date
LastChangeDate I_CmmdtyFinTransactionFlow LastChangeDate Time Stamp
FinTransFlowPaytAmt I_CmmdtyFinTransactionFlow FinancialTransactionAmount Payment Amnt in PyC
FinTransFlowPaytAmtCrcy I_CmmdtyFinTransactionFlow FinTransFlowPaytAmtCrcy Payment Currency
UnitOfMeasure I_CmmdtyFinTransactionFlow UnitOfMeasure Unit Protected Qty
CompanyCodeasCompanyCode
KEY CmmdtyHedgeConstellationDeal I_CmmdtyFinTransFlowUnfixed FinancialTransaction Transaction
LastChangeDateendasLastChangeDate
UnitOfMeasureendasUnitOfMeasure
QuantityendasQuantity

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_CmmdtyHdgTransFlowDetails.
-- 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_CmmdtyHdgTransFlowDetails AS
SELECT
  fhapo.CompanyCode AS CompanyCode,
  fhapo.FinancialTransaction AS CmmdtyHedgeConstellationDeal,
  fhapo.FinTransCreationDate AS FinTransCreationDate,
  fhapo.LastChangeDate AS LastChangeDate,
  fhapo.FinancialTransactionAmount AS FinTransFlowPaytAmt,
  fhapo.FinTransFlowPaytAmtCrcy AS FinTransFlowPaytAmtCrcy,
  fhapo.UnitOfMeasure AS UnitOfMeasure,
  fhapo.Quantity as Quantity AS CompanyCodeasCompanyCode,
  case when fhapo.FinancialTransaction is not null then fhapo.LastChangeDate else fhapo_unfixed.LastChangeDate end as LastChangeDate AS LastChangeDateendasLastChangeDate,
  case when fhapo.FinancialTransaction is not null then fhapo.UnitOfMeasure else fhapo_unfixed.UnitOfMeasure end as UnitOfMeasure AS UnitOfMeasureendasUnitOfMeasure,
  case when fhapo.FinancialTransaction is not null then fhapo.Quantity else fhapo_unfixed.Quantity end as Quantity AS QuantityendasQuantity
INNER JOIN I_CmmdtyFinTransactionFlow AS fhapo ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN vtbfha AS _Transaction ON /* join condition not captured in parsed metadata */
INNER JOIN I_CmmdtyFinTransFlowUnfixed AS fhapo_unfixed ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_CmmdtyFinTransFlowUnfixed AS fhapo_unfixed ON fhapo_unfixed.CompanyCode = fhapo.CompanyCode AND fhapo_unfixed.FinancialTransaction = fhapo.FinancialTransaction AND fhapo_unfixed.FinancialInstrumentActivity = fhapo.FinancialInstrumentActivity AND fhapo_unfixed.FinTransCreationDate = fhapo.FinTransCreationDate AND fhapo_unfixed.FinTransFlowCreationTime = fhapo.FinTransFlowCreationTime AND ( fhapo_unfixed.FinTransReferenceFlowUUID = fhapo.FinancialTransactionFlowUUID OR fhapo_unfixed.FinancialTransactionFlowUUID = fhapo.FinTransReferenceFlowUUID ) AND ( fhapo_unfixed.FinTransFlowCategory = '50' OR fhapo_unfixed.FinTransFlowCategory = '51' )  -- association [0..1]
;