I_CmmdtyHdgOffstgFXHdgRequest

DDL: I_CMMDTYHDGOFFSTGFXHDGREQUEST Type: view_entity BASIC Package: FIN_CMM_CMDTY_HEDGE_REQUESTS

Basic for Offsetting FX Hedge Requests

I_CmmdtyHdgOffstgFXHdgRequest is a Basic CDS View that provides data about "Basic for Offsetting FX Hedge Requests" in SAP S/4HANA. It reads from 1 data source (cmmt_fcp_hreq) and exposes 17 fields with key fields CmmdtyHdgOffstgFXHdgReqGrpUUID, HedgeRequestIdentifier. It has 2 associations to related views. Part of development package FIN_CMM_CMDTY_HEDGE_REQUESTS.

Data Sources (1)

SourceAliasJoin Type
cmmt_fcp_hreq OffsettingFXHdgReq from

Associations (2)

CardinalityTargetAliasCondition
[1..1] I_CmmdtyHdgReqFXHedgeRequest _FXHedgeRequest OffsettingFXHdgReq.hedge_request_id = _FXHedgeRequest.HedgeRequestIdentifier
[0..1] I_CmmdtyHdgBookCompleteDetail _HedgeBook $projection.CmmdtyHdgOffstgFXHdgReqHdgBook = _HedgeBook.CommodityHedgeBookIdentifier

Annotations (7)

NameValueLevelField
AccessControl.authorizationCheck #NOT_REQUIRED view
EndUserText.label Basic for Offsetting FX Hedge Requests view
Metadata.ignorePropagatedAnnotations true view
VDM.viewType #BASIC view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #S view
ObjectModel.usageType.dataClass #MIXED view

Fields (17)

KeyFieldSource TableSource FieldDescription
KEY CmmdtyHdgOffstgFXHdgReqGrpUUID hreq_group_uuid HReq Group UUID
KEY HedgeRequestIdentifier hedge_request_id Hedge Request ID
CmmdtyHdgOffstgFXHdgReqDCSID dcsid DCSID
CmmdtyHdgOffstgFXHdgReqHdgBook hedge_book Hedge Book
CmmdtyHdgOffstgFXHdgReqCoCode on_behalf_of_company On Behalf of CoCode
CmmdtyHdgFXHdgRequestValueDate value_date Value date
CmmdtyHdgFXHdgRequestAmount _FXHedgeRequest CmmdtyHdgFXHdgRequestAmount
CmmdtyHdgFXHdgRequestCurrency _FXHedgeRequest CmmdtyHdgFXHdgRequestCurrency
CmmdtyHdgFXHdgReqInstrCategory _FXHedgeRequest CmmdtyHdgFXHdgReqInstrCategory
CmmdtyHdgFXHdgRequestStatus _FXHedgeRequest CmmdtyHdgFXHdgRequestStatus
CmmdtyHdgFXHdgReqInstrCatText _FXHedgeRequest CmmdtyHdgFXHdgReqInstrCatText
CmmdtyHdgFXHdgReqCompanyCode _FXHedgeRequest CmmdtyHdgFXHdgReqCompanyCode
CmmdtyHdgFXHdgReqCreatedByUser _FXHedgeRequest CmmdtyHdgFXHdgReqCreatedByUser
CmmdtyHdgFXHdgReqCrtnDateTime _FXHedgeRequest CmmdtyHdgFXHdgReqCrtnDateTime
CmmdtyHdgFXHdgReqLastChgdByUsr _FXHedgeRequest CmmdtyHdgFXHdgReqLastChgdByUsr
CmHdgFXHdgReqLastChgdDateTime _FXHedgeRequest CmHdgFXHdgReqLastChgdDateTime
_HedgeBook _HedgeBook

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_CmmdtyHdgOffstgFXHdgRequest.
-- 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_CmmdtyHdgOffstgFXHdgRequest AS
SELECT
  hreq_group_uuid AS CmmdtyHdgOffstgFXHdgReqGrpUUID,
  hedge_request_id AS HedgeRequestIdentifier,
  dcsid AS CmmdtyHdgOffstgFXHdgReqDCSID,
  hedge_book AS CmmdtyHdgOffstgFXHdgReqHdgBook,
  on_behalf_of_company AS CmmdtyHdgOffstgFXHdgReqCoCode,
  value_date AS CmmdtyHdgFXHdgRequestValueDate,
  _FXHedgeRequest.CmmdtyHdgFXHdgRequestAmount AS CmmdtyHdgFXHdgRequestAmount,
  _FXHedgeRequest.CmmdtyHdgFXHdgRequestCurrency AS CmmdtyHdgFXHdgRequestCurrency,
  _FXHedgeRequest.CmmdtyHdgFXHdgReqInstrCategory AS CmmdtyHdgFXHdgReqInstrCategory,
  _FXHedgeRequest.CmmdtyHdgFXHdgRequestStatus AS CmmdtyHdgFXHdgRequestStatus,
  _FXHedgeRequest.CmmdtyHdgFXHdgReqInstrCatText AS CmmdtyHdgFXHdgReqInstrCatText,
  _FXHedgeRequest.CmmdtyHdgFXHdgReqCompanyCode AS CmmdtyHdgFXHdgReqCompanyCode,
  _FXHedgeRequest.CmmdtyHdgFXHdgReqCreatedByUser AS CmmdtyHdgFXHdgReqCreatedByUser,
  _FXHedgeRequest.CmmdtyHdgFXHdgReqCrtnDateTime AS CmmdtyHdgFXHdgReqCrtnDateTime,
  _FXHedgeRequest.CmmdtyHdgFXHdgReqLastChgdByUsr AS CmmdtyHdgFXHdgReqLastChgdByUsr,
  _FXHedgeRequest.CmHdgFXHdgReqLastChgdDateTime AS CmHdgFXHdgReqLastChgdDateTime
FROM cmmt_fcp_hreq AS OffsettingFXHdgReq
LEFT OUTER JOIN I_CmmdtyHdgReqFXHedgeRequest AS _FXHedgeRequest ON OffsettingFXHdgReq.hedge_request_id = _FXHedgeRequest.HedgeRequestIdentifier  -- association [1..1]
LEFT OUTER JOIN I_CmmdtyHdgBookCompleteDetail AS _HedgeBook ON CmmdtyHdgOffstgFXHdgReqHdgBook = _HedgeBook.CommodityHedgeBookIdentifier  -- association [0..1]
;