I_CmmdtyHdgCnstltnTaskList

DDL: I_CMMDTYHDGCNSTLTNTASKLIST Type: view_entity BASIC

Commodity Hedge Constellation Task List

I_CmmdtyHdgCnstltnTaskList is a Basic CDS View that provides data about "Commodity Hedge Constellation Task List" in SAP S/4HANA. It reads from 1 data source (cmmt_hc_wl) and exposes 30 fields with key field ConstellationTaskListUUID. It has 4 associations to related views.

Data Sources (1)

SourceAliasJoin Type
cmmt_hc_wl cmmt_hc_wl from

Associations (4)

CardinalityTargetAliasCondition
[0..*] I_CmmdtyHdgConstellationDetail _HedgeConstellation $projection.CmmdtyHedgeConstellationUUID = _HedgeConstellation.CmmdtyHedgeConstellationUUID
[0..*] I_CmmdtyHdgCnstltnVersDetail _HdgConstellationVersion $projection.ConstellationTaskListUUID = _HdgConstellationVersion.ConstellationTaskListUUID
[0..1] I_CmmdtyHdgReqFXHedgeRequest _FXHedgeRequest $projection.CmmdtyHdgCnstltnFrgnExchHdgReq = _FXHedgeRequest.HedgeRequestIdentifier
[0..1] I_CommodityHedgePlanExposure _Exposure $projection.CmmdtyHdgConstellationExposure = _Exposure.CommodityHedgePlanExposureID and $projection.CmmdtyHdgCnstltnExpsrVersion = _Exposure.CmmdtyHedgePlanExposureVersion

Annotations (6)

NameValueLevelField
AccessControl.authorizationCheck #MANDATORY view
EndUserText.label Commodity Hedge Constellation Task List view
ObjectModel.usageType.serviceQuality #B view
ObjectModel.usageType.sizeCategory #S view
ObjectModel.usageType.dataClass #MIXED view
VDM.viewType #BASIC view

Fields (30)

KeyFieldSource TableSource FieldDescription
KEY ConstellationTaskListUUID hc_wl_uuid Worklist UUID
CnstltnTaskListIdentifier hc_worklist_id Worklist ID
CmmdtyHedgeConstellationUUID hc_uuid UUID
CnstltnTskListReprocgReason hc_reproc_reason Reprocessing Reason
CnstltnTskListReprocgStatus hc_reproc_status HC Reproc Status
CnstltnTskListReprocgStsChgRsn hc_reproc_stschng_reason Status Change Reason
CnstltnTaskListRemarkNote hc_wl_remark Remark for Worklist
ConstellationTaskListOrigin origin Task Origin
CnstltnTskListIsProcRequired process Trans.
CnstltnTaskListCompanyCode company_code Company Code
CnstltnTaskListDealIdentifier deal_id Transaction
CompanyCodeendendasCompanyCode
ConstellationTaskListAmount amount Value Amount
ConstellationTaskListCurrency currency Valuation Crcy
CnstltnTaskListCounterparty counterparty Supplier
ConstellationTaskListPortfolio portfolio Portfolio
CnstltnTskListHdggClassfctn hedge_class Hedging Classificatn
CnstltnTskListLateDsgntnDate late_dsgntn_date Lt Dsgntn Date
FinancialTransactionPortfolio portfolio_ori Portfolio
FinTransHedgingClassification hedge_class_ori Hedging Classificatn
ConstellationTaskListLogHandle log_handle Migration Log Handle
CnstltnTaskListCreatedByUser created_by Version Created By
CnstltnTskListCreationDateTime created_at Uploaded On
CnstltnTskListLastChgdByUser changed_by User Name
CnstltnTskListLastChgdDateTime changed_at Timestamp
LocalLastChangeDateTime local_last_change_datetime Time Stamp
_HedgeConstellation _HedgeConstellation
_HdgConstellationVersion _HdgConstellationVersion
_FXHedgeRequest _FXHedgeRequest
_Exposure _Exposure

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_CmmdtyHdgCnstltnTaskList.
-- 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_CmmdtyHdgCnstltnTaskList AS
SELECT
  hc_wl_uuid AS ConstellationTaskListUUID,
  hc_worklist_id AS CnstltnTaskListIdentifier,
  hc_uuid AS CmmdtyHedgeConstellationUUID,
  hc_reproc_reason AS CnstltnTskListReprocgReason,
  hc_reproc_status AS CnstltnTskListReprocgStatus,
  hc_reproc_stschng_reason AS CnstltnTskListReprocgStsChgRsn,
  hc_wl_remark AS CnstltnTaskListRemarkNote,
  origin AS ConstellationTaskListOrigin,
  process AS CnstltnTskListIsProcRequired,
  company_code AS CnstltnTaskListCompanyCode,
  deal_id AS CnstltnTaskListDealIdentifier,
  case when hc_reproc_status <> 'ICHC6' then _HedgeConstellation[ CmmdtyHedgeCnstltnRecordType = '2' ].CompanyCode else case when _HdgConstellationVersion[ CmmdtyHedgeCnstltnRecordType = '2' ].CompanyCode is not null and _HdgConstellationVersion[ CmmdtyHedgeCnstltnRecordType = '2' ].CompanyCode is not initial then _HdgConstellationVersion[ CmmdtyHedgeCnstltnRecordType = '2' ].CompanyCode else _HedgeConstellation[ CmmdtyHedgeCnstltnRecordType = '2' ].CompanyCode end end as CompanyCode AS CompanyCodeendendasCompanyCode,
  amount AS ConstellationTaskListAmount,
  currency AS ConstellationTaskListCurrency,
  counterparty AS CnstltnTaskListCounterparty,
  portfolio AS ConstellationTaskListPortfolio,
  hedge_class AS CnstltnTskListHdggClassfctn,
  late_dsgntn_date AS CnstltnTskListLateDsgntnDate,
  portfolio_ori AS FinancialTransactionPortfolio,
  hedge_class_ori AS FinTransHedgingClassification,
  log_handle AS ConstellationTaskListLogHandle,
  created_by AS CnstltnTaskListCreatedByUser,
  created_at AS CnstltnTskListCreationDateTime,
  changed_by AS CnstltnTskListLastChgdByUser,
  changed_at AS CnstltnTskListLastChgdDateTime,
  local_last_change_datetime AS LocalLastChangeDateTime
FROM cmmt_hc_wl
LEFT OUTER JOIN I_CmmdtyHdgConstellationDetail AS _HedgeConstellation ON CmmdtyHedgeConstellationUUID = _HedgeConstellation.CmmdtyHedgeConstellationUUID  -- association [0..*]
LEFT OUTER JOIN I_CmmdtyHdgCnstltnVersDetail AS _HdgConstellationVersion ON ConstellationTaskListUUID = _HdgConstellationVersion.ConstellationTaskListUUID  -- association [0..*]
LEFT OUTER JOIN I_CmmdtyHdgReqFXHedgeRequest AS _FXHedgeRequest ON CmmdtyHdgCnstltnFrgnExchHdgReq = _FXHedgeRequest.HedgeRequestIdentifier  -- association [0..1]
LEFT OUTER JOIN I_CommodityHedgePlanExposure AS _Exposure ON CmmdtyHdgConstellationExposure = _Exposure.CommodityHedgePlanExposureID AND CmmdtyHdgCnstltnExpsrVersion = _Exposure.CmmdtyHedgePlanExposureVersion  -- association [0..1]
;