C_CmmdtyHdgTargetQuotaVersion

DDL: C_CMMDTYHDGTARGETQUOTAVERSION SQL: CMMHDGTQVER Type: view CONSUMPTION

Commodity Hedge Target Quota Versions

C_CmmdtyHdgTargetQuotaVersion is a Consumption CDS View that provides data about "Commodity Hedge Target Quota Versions" in SAP S/4HANA. It reads from 1 data source (I_CmmdtyHedgeTargetQuotaHeader) and exposes 28 fields with key field CmmdtyHedgeTargetQuotaUUID. It has 11 associations to related views. It is exposed through 1 OData service (UI_CMMDTYHDGTARGETQUOTA). It is used in 1 Fiori application: Manage Target Quotas.

Data Sources (1)

SourceAliasJoin Type
I_CmmdtyHedgeTargetQuotaHeader I_CmmdtyHedgeTargetQuotaHeader from

Associations (11)

CardinalityTargetAliasCondition
[0..*] C_CmmdtyHdgTgtQtaPosVersion _TargetQuotaPosYear $projection.CmmdtyHedgeTargetQuotaUUID = _TargetQuotaPosYear.CmmdtyHedgeTargetQuotaUUID and $projection.CmmdtyHdgTgtQuotaPeriodClass = _TargetQuotaPosYear.CmmdtyHdgTgtQuotaPeriodClass
[0..*] C_CmmdtyHedgeTargetQuotaStatus _TQStatus $projection.CmmdtyHedgeTargetQuotaUUID = _TQStatus.CmmdtyHedgeObjectDocumentUUID
[0..1] I_CmmdtyHdgTgtQtaStatusObject _StatusText $projection.CmmdtyHedgeTargetQuotaStatusID = _StatusText.CmmdtyHedgeTargetQuotaStatusID
[0..1] I_CmmdtyHdgTgtQtaPerdClassText _PrdClassText $projection.CmmdtyHdgTgtQuotaPeriodClass = _PrdClassText.CmmdtyHdgTgtQuotaPeriodClass
[0..1] I_CmmdtyHdgBookDescriptionText _HdgBookText $projection.CmmdtyHdgTgtQuotaHedgeBookID = _HdgBookText.CommodityHedgeBookIdentifier and _HdgBookText.Language = $session.system_language
[0..1] I_DerivativeContractSpecText _DCSText $projection.DerivativeContrSpecification = _DCSText.DerivativeContrSpecification and _DCSText.Language = $session.system_language
[0..1] I_CompanyCode _CCText $projection.CompanyCode = _CCText.CompanyCode
[0..1] I_CmmdtyHdgTgtQuotaDirection _DircText $projection.CmmdtyHdgTargetQuotaDirection = _DircText.CmmdtyHdgTargetQuotaDirection
[0..1] I_User _CreatedByUser $projection.CmmdtyHdgTgtQuotaCreatedByUser = _CreatedByUser.UserID
[0..1] I_User _ChangedByUser $projection.CmmdtyHdgTgtQuotaChangedByUser = _ChangedByUser.UserID
[0..*] I_CommodityHedgeFormerMemberT _CommodityHedgeFormerMemberT _CommodityHedgeFormerMemberT.CommodityHedgeFormerMember = 'X' and _CommodityHedgeFormerMemberT.Language = $session.system_language

Annotations (11)

NameValueLevelField
AbapCatalog.sqlViewName CMMHDGTQVER view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
AccessControl.authorizationCheck #CHECK view
ObjectModel.usageType.dataClass #MIXED view
ObjectModel.usageType.sizeCategory #XL view
ObjectModel.usageType.serviceQuality #C view
ClientHandling.algorithm #SESSION_VARIABLE view
VDM.viewType #CONSUMPTION view
Metadata.allowExtensions true view
EndUserText.label Commodity Hedge Target Quota Versions view

OData Services (1)

ServiceBindingVersionContractRelease
UI_CMMDTYHDGTARGETQUOTA UI_CMMDTYHDGTARGETQUOTA V2 C1 NOT_RELEASED

Fiori Apps (1)

App IDApp NameTypeDescription
F5795 Manage Target Quotas Transactional

Manage Target Quotas

Business Role: Commodity Risk Manager - Hedge Accounting

With this Fiori app (ID F5795) you define target quotas on the basis of derivative contract specifications (DCS) to support traders in making the right hedging decisions. Target quotas set a limit up to the exposures shall be hedged.

Fields (28)

KeyFieldSource TableSource FieldDescription
KEY CmmdtyHedgeTargetQuotaUUID CmmdtyHedgeTargetQuotaUUID UUID
CmmdtyHedgeTargetQuotaVersion CmmdtyHedgeTargetQuotaVersion XML Vers.
CompanyCode CompanyCode Receiver Company Code
CompanyCodeName _CCText CompanyCodeName Company Name
DerivativeContrSpecification DerivativeContrSpecification DCS ID
DerivativeContrSpecName _DCSText DerivativeContrSpecName
CmmdtyHdgTargetQuotaDirection CmmdtyHdgTargetQuotaDirection Long/Short Position
CmmdtyHdgTgtQuotaDirectionText _DircText CmmdtyHdgTgtQuotaDirectionText
CmmdtyHdgTgtQtaValdFrmDateTime CmmdtyHdgTgtQtaValdFrmDateTime Validity Start Time
CmmdtyHdgTgtQuotaPeriodClass CmmdtyHdgTgtQuotaPeriodClass Period Class
CmmdtyHdgTgtQtaPerdLengthText _PrdClassText CmmdtyHdgTgtQtaPerdLengthText
CmmdtyHdgTgtQuotaHedgeBookID CmmdtyHdgTgtQuotaHedgeBookID Hedge Book
CmmdtyHedgeBookDescription _HdgBookText CmmdtyHedgeBookDescription
CommodityHedgeRemarkNote CommodityHedgeRemarkNote Status Description
CmmdtyHdgTargetQuotaLogHandle CmmdtyHdgTargetQuotaLogHandle Migration Log Handle
IsActive IsActive Object active?
CmmdtyHedgeTargetQuotaStatusID CmmdtyHedgeTargetQuotaStatusID Trans Doc Status
CmmdtyHdgTargetQuotaStatusText _StatusText CmmdtyHdgTargetQuotaStatusText
CmmdtyHdgTgtQuotaCreatedByUser CmmdtyHdgTgtQuotaCreatedByUser
CmmdtyHdgTgtQtaCrtnDateTime CmmdtyHdgTgtQtaCrtnDateTime Uploaded On
CmmdtyHdgTgtQuotaChangedByUser CmmdtyHdgTgtQuotaChangedByUser
CmmdtyHdgTgtQtaChangeDateTime CmmdtyHdgTgtQtaChangeDateTime Timestamp
UserIDendasCmmdtyHdgTgtQtaChgdByUserText
_TargetQuotaPosYear _TargetQuotaPosYear
_TQStatus _TQStatus
_CreatedByUser _CreatedByUser
_ChangedByUser _ChangedByUser
_CommodityHedgeFormerMemberT _CommodityHedgeFormerMemberT

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 C_CmmdtyHdgTargetQuotaVersion.
-- 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.
-- SQL view name: CMMHDGTQVER

CREATE VIEW C_CmmdtyHdgTargetQuotaVersion AS
SELECT
  CmmdtyHedgeTargetQuotaUUID,
  CmmdtyHedgeTargetQuotaVersion,
  CompanyCode,
  _CCText.CompanyCodeName AS CompanyCodeName,
  DerivativeContrSpecification,
  _DCSText.DerivativeContrSpecName AS DerivativeContrSpecName,
  CmmdtyHdgTargetQuotaDirection,
  _DircText.CmmdtyHdgTgtQuotaDirectionText AS CmmdtyHdgTgtQuotaDirectionText,
  CmmdtyHdgTgtQtaValdFrmDateTime,
  CmmdtyHdgTgtQuotaPeriodClass,
  _PrdClassText.CmmdtyHdgTgtQtaPerdLengthText AS CmmdtyHdgTgtQtaPerdLengthText,
  CmmdtyHdgTgtQuotaHedgeBookID,
  _HdgBookText.CmmdtyHedgeBookDescription AS CmmdtyHedgeBookDescription,
  CommodityHedgeRemarkNote,
  CmmdtyHdgTargetQuotaLogHandle,
  IsActive,
  CmmdtyHedgeTargetQuotaStatusID,
  _StatusText.CmmdtyHdgTargetQuotaStatusText AS CmmdtyHdgTargetQuotaStatusText,
  CmmdtyHdgTgtQuotaCreatedByUser,
  CmmdtyHdgTgtQtaCrtnDateTime,
  CmmdtyHdgTgtQuotaChangedByUser,
  CmmdtyHdgTgtQtaChangeDateTime,
  case when _ChangedByUser.UserID is null or _ChangedByUser.UserID = '' then _CommodityHedgeFormerMemberT.CommodityHedgeFormerMemberText else concat( concat( concat(_ChangedByUser.UserDescription,' (' ) , _ChangedByUser.UserID ), ')') end as CmmdtyHdgTgtQtaChgdByUserText AS UserIDendasCmmdtyHdgTgtQtaChgdByUserText
FROM I_CmmdtyHedgeTargetQuotaHeader
LEFT OUTER JOIN C_CmmdtyHdgTgtQtaPosVersion AS _TargetQuotaPosYear ON CmmdtyHedgeTargetQuotaUUID = _TargetQuotaPosYear.CmmdtyHedgeTargetQuotaUUID AND CmmdtyHdgTgtQuotaPeriodClass = _TargetQuotaPosYear.CmmdtyHdgTgtQuotaPeriodClass  -- association [0..*]
LEFT OUTER JOIN C_CmmdtyHedgeTargetQuotaStatus AS _TQStatus ON CmmdtyHedgeTargetQuotaUUID = _TQStatus.CmmdtyHedgeObjectDocumentUUID  -- association [0..*]
LEFT OUTER JOIN I_CmmdtyHdgTgtQtaStatusObject AS _StatusText ON CmmdtyHedgeTargetQuotaStatusID = _StatusText.CmmdtyHedgeTargetQuotaStatusID  -- association [0..1]
LEFT OUTER JOIN I_CmmdtyHdgTgtQtaPerdClassText AS _PrdClassText ON CmmdtyHdgTgtQuotaPeriodClass = _PrdClassText.CmmdtyHdgTgtQuotaPeriodClass  -- association [0..1]
LEFT OUTER JOIN I_CmmdtyHdgBookDescriptionText AS _HdgBookText ON CmmdtyHdgTgtQuotaHedgeBookID = _HdgBookText.CommodityHedgeBookIdentifier AND _HdgBookText.Language = $session.system_language  -- association [0..1]
LEFT OUTER JOIN I_DerivativeContractSpecText AS _DCSText ON DerivativeContrSpecification = _DCSText.DerivativeContrSpecification AND _DCSText.Language = $session.system_language  -- association [0..1]
LEFT OUTER JOIN I_CompanyCode AS _CCText ON CompanyCode = _CCText.CompanyCode  -- association [0..1]
LEFT OUTER JOIN I_CmmdtyHdgTgtQuotaDirection AS _DircText ON CmmdtyHdgTargetQuotaDirection = _DircText.CmmdtyHdgTargetQuotaDirection  -- association [0..1]
LEFT OUTER JOIN I_User AS _CreatedByUser ON CmmdtyHdgTgtQuotaCreatedByUser = _CreatedByUser.UserID  -- association [0..1]
LEFT OUTER JOIN I_User AS _ChangedByUser ON CmmdtyHdgTgtQuotaChangedByUser = _ChangedByUser.UserID  -- association [0..1]
LEFT OUTER JOIN I_CommodityHedgeFormerMemberT AS _CommodityHedgeFormerMemberT ON _CommodityHedgeFormerMemberT.CommodityHedgeFormerMember = 'X' AND _CommodityHedgeFormerMemberT.Language = $session.system_language  -- association [0..*]
;