I_CmmdtyHdgTargetQuotaPosition

DDL: I_CMMDTYHDGTARGETQUOTAPOSITION SQL: ICMMHDGTGTQTAPOS Type: view BASIC Package: FIN_CMM_CMDTY_HEDGE_TQ

Commodity Hedge Target Quota Positions

I_CmmdtyHdgTargetQuotaPosition is a Basic CDS View that provides data about "Commodity Hedge Target Quota Positions" in SAP S/4HANA. It reads from 1 data source (cmmt_tq_position) and exposes 15 fields with key field CmmdtyHdgTgtQuotaPositionUUID. It is exposed through 1 OData service (UI_CMMDTYHDGTARGETQUOTA). Part of development package FIN_CMM_CMDTY_HEDGE_TQ.

Data Sources (1)

SourceAliasJoin Type
cmmt_tq_position cmmt_tq_position from

Annotations (10)

NameValueLevelField
AbapCatalog.sqlViewName ICMMHDGTGTQTAPOS view
AbapCatalog.preserveKey true view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #NOT_REQUIRED view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
ObjectModel.usageType.sizeCategory #L view
ObjectModel.usageType.serviceQuality #C view
ClientHandling.algorithm #SESSION_VARIABLE view
VDM.viewType #BASIC view
EndUserText.label Commodity Hedge Target Quota Positions view

OData Services (1)

ServiceBindingVersionContractRelease
UI_CMMDTYHDGTARGETQUOTA UI_CMMDTYHDGTARGETQUOTA V2 C1 NOT_RELEASED

Fields (15)

KeyFieldSource TableSource FieldDescription
KEY CmmdtyHdgTgtQuotaPositionUUID tq_pos_uuid UUID
CmmdtyHedgeTargetQuotaUUID targetquota_uuid UUID
CmmdtyHdgTgtQuotaPositionYear position_year Position Year
CmmdtyHdgTgtQtaPosValdDateTime position_valid_from Valid-From Date of Target Quota Position
CmmdtyHdgTgtQuotaPeriodNumber period_number Period Number
CmmdtyHdgTgtQtaUprLmtInPercent Target Hdg Quota(%)
CmmdtyHdgAcctgUprLmtInPercent Target Hdg Quota(%)
CommodityHedgeRemarkNote remark Status Description
IsActive is_active Truth Value
CmmdtyHdgTgtQuotaPeriodClass period_class Period Class
CmmdtyHdgTgtQtaPosCrtedByUser Version Created By
CmmdtyHdgTgtQtaPosCrtnDateTime created_at Uploaded On
CmmdtyHdgTgtQtaPosChgdByUser User Name
CmmdtyHdgTgtQtaPosChgDateTime changed_at Timestamp
CommodityHedgePercentageUnit %

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_CmmdtyHdgTargetQuotaPosition.
-- 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: ICMMHDGTGTQTAPOS

CREATE VIEW I_CmmdtyHdgTargetQuotaPosition AS
SELECT
  tq_pos_uuid AS CmmdtyHdgTgtQuotaPositionUUID,
  targetquota_uuid AS CmmdtyHedgeTargetQuotaUUID,
  position_year AS CmmdtyHdgTgtQuotaPositionYear,
  position_valid_from AS CmmdtyHdgTgtQtaPosValdDateTime,
  period_number AS CmmdtyHdgTgtQuotaPeriodNumber,
  cast(hedge_management_quota as abap.fltp) AS CmmdtyHdgTgtQtaUprLmtInPercent,
  cast(hedge_accounting_quota as abap.fltp) AS CmmdtyHdgAcctgUprLmtInPercent,
  remark AS CommodityHedgeRemarkNote,
  is_active AS IsActive,
  period_class AS CmmdtyHdgTgtQuotaPeriodClass,
  cast( created_by as cmm_hdg_crtd_by ) AS CmmdtyHdgTgtQtaPosCrtedByUser,
  created_at AS CmmdtyHdgTgtQtaPosCrtnDateTime,
  cast( changed_by as cmm_hdg_crtd_by ) AS CmmdtyHdgTgtQtaPosChgdByUser,
  changed_at AS CmmdtyHdgTgtQtaPosChgDateTime,
  cast( '%' as meins ) AS CommodityHedgePercentageUnit
FROM cmmt_tq_position
;