C_CmmdtyHdgAcctgPosCurQuery

DDL: C_CMMDTYHDGACCTGPOSCURQUERY SQL: CMHAPOSCURQ Type: view CONSUMPTION Package: FIN_CMM_CMDTY_VDM

Cmmdty Hdg Acc Position Current - Query

C_CmmdtyHdgAcctgPosCurQuery is a Consumption CDS View that provides data about "Cmmdty Hdg Acc Position Current - Query" in SAP S/4HANA. It reads from 1 data source (I_CmmdtyHdgDrvtvExpsrPosCube) and exposes 59 fields with key fields CompanyCode, CommodityHedgePlanExposureID, CommodityPriceExposure, CommodityPriceSubExposure, CommodityPriceExposureVersion. Part of development package FIN_CMM_CMDTY_VDM.

Data Sources (1)

SourceAliasJoin Type
I_CmmdtyHdgDrvtvExpsrPosCube I_CmmdtyHdgDrvtvExpsrPosCube from

Parameters (4)

NameTypeDefault
P_DisplayView cds_view_uom
P_CompanyCode bukrs
P_EvaluationDate cds_evaluation_date
P_CommodityViewSelectionType cmm_view_type

Annotations (12)

NameValueLevelField
AbapCatalog.sqlViewName CMHAPOSCURQ view
AbapCatalog.preserveKey true view
ClientHandling.algorithm #SESSION_VARIABLE view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #PRIVILEGED_ONLY view
ObjectModel.usageType.serviceQuality #D view
ObjectModel.usageType.sizeCategory #L view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
VDM.viewType #CONSUMPTION view
Analytics.query true view
Metadata.ignorePropagatedAnnotations true view
EndUserText.label Cmmdty Hdg Acc Position Current - Query view

Fields (59)

KeyFieldSource TableSource FieldDescription
KEY CompanyCode CompanyCode Receiver Company Code
KEY CommodityHedgePlanExposureID CommodityHedgePlanExposureID Plan Exposure ID
KEY CommodityPriceExposure CommodityPriceExposure Exposure ID
KEY CommodityPriceSubExposure CommodityPriceSubExposure
KEY CommodityPriceExposureVersion CommodityPriceExposureVersion Exposure Version
KEY CommodityExposureCategory CommodityExposureCategory
CmmdtyHdgPlanExposureHedgeBook CmmdtyHdgPlanExposureHedgeBook Hedge Book
MarketIdentifierCode MarketIdentifierCode MIC
CommodityViewTypeText CommodityViewTypeText View Type
TreasuryPositionLongShortCode TreasuryPositionLongShortCode Long/Short Position
ValidityStartDateTime ValidityStartDateTime Valid From Timestamp
ValidityEndDateTime ValidityEndDateTime Valid To Timestamp
ValidityStartDate ValidityStartDate Validity Start Date
ValidityStartTime ValidityStartTime Valid From Time
ValidityEndDate ValidityEndDate ValidTo
ValidityEndTime ValidityEndTime Valid To Time
DerivativeContrSpecification DerivativeContrSpecification DCS ID
TradedDrvtvContrSpecification TradedDrvtvContrSpecification Traded DCS
ParDrvtvContractSpecification ParDrvtvContractSpecification Parent DCS ID
Commodity Commodity Commodity Code
ExposureDueDate ExposureDueDate
ReportingDate ReportingDate
CashFlowDirection CashFlowDirection
HasError HasError TRUE
CmmdtyForwardIndexTiming CmmdtyForwardIndexTiming
MaturityKeyDate MaturityKeyDate Maturity Key Date
TimeToMaturity TimeToMaturity Time to Maturity
DerivativeContractMaturityCode DerivativeContractMaturityCode Contr. Maturity Code
FinancialInstrProductCategory FinancialInstrProductCategory
FinancialAssetsMgmtProductType FinancialAssetsMgmtProductType
FinancialInstrumentProductType FinancialInstrumentProductType
FinancialInstrActivityCategory FinancialInstrActivityCategory
FinancialObject FinancialObject
TermStartDate TermStartDate
TermEndDate TermEndDate
DeliveryDate DeliveryDate Delivery Date
CommodityPriceFixationStatus CommodityPriceFixationStatus
TreasuryPositionAccount TreasuryPositionAccount
DerivativeContract DerivativeContract
OptionStrikeCurrency OptionStrikeCurrency
OptionPutCallCode OptionPutCallCode
EvaluationDate EvaluationDate
EndOfDaySnapshotDate EndOfDaySnapshotDate
EndOfDaySnapshotDateTime EndOfDaySnapshotDateTime
MTMDataSelectionType MTMDataSelectionType
FinInstrExternalReference FinInstrExternalReference
DisplayView DisplayView
CommodityPriceExposureUnit CommodityPriceExposureUnit
ReportingYear ReportingYear Reporting Year
ReportingMonth ReportingMonth Reporting Period
PricedFinancialPositionQty PricedFinancialPositionQty Priced Quantity
UnpricedFinancialPositionQty UnpricedFinancialPositionQty Unpriced Quantity
DueInPastUnpricedFinPosQty DueInPastUnpricedFinPosQty Due in Past Unpriced Quantity
DueMktOnClsUnpricedFinPosQty DueMktOnClsUnpricedFinPosQty Due Today Unpriced Quantity
DueInFutureUnpricedFinPosQty DueInFutureUnpricedFinPosQty Due in Future Unpriced Quantity
UnpricedContrPriceExposureQty UnpricedContrPriceExposureQty Contract Price Exposure Quantity
UndeliveredMarketPrExposureQty UndeliveredMarketPrExposureQty Market Price Exposure Quantity
OutrightPriceExposureQty OutrightPriceExposureQty Total Price Exposure Quantity
FinancialPositionQty FinancialPositionQty Total Quantity

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_CmmdtyHdgAcctgPosCurQuery.
-- 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: CMHAPOSCURQ
-- Parameters: P_DisplayView : cds_view_uom, P_CompanyCode : bukrs, P_EvaluationDate : cds_evaluation_date, P_CommodityViewSelectionType : cmm_view_type

CREATE VIEW C_CmmdtyHdgAcctgPosCurQuery AS
SELECT
  CompanyCode,
  CommodityHedgePlanExposureID,
  CommodityPriceExposure,
  CommodityPriceSubExposure,
  CommodityPriceExposureVersion,
  CommodityExposureCategory,
  CmmdtyHdgPlanExposureHedgeBook,
  MarketIdentifierCode,
  CommodityViewTypeText,
  TreasuryPositionLongShortCode,
  ValidityStartDateTime,
  ValidityEndDateTime,
  ValidityStartDate,
  ValidityStartTime,
  ValidityEndDate,
  ValidityEndTime,
  DerivativeContrSpecification,
  TradedDrvtvContrSpecification,
  ParDrvtvContractSpecification,
  Commodity,
  ExposureDueDate,
  ReportingDate,
  CashFlowDirection,
  HasError,
  CmmdtyForwardIndexTiming,
  MaturityKeyDate,
  TimeToMaturity,
  DerivativeContractMaturityCode,
  FinancialInstrProductCategory,
  FinancialAssetsMgmtProductType,
  FinancialInstrumentProductType,
  FinancialInstrActivityCategory,
  FinancialObject,
  TermStartDate,
  TermEndDate,
  DeliveryDate,
  CommodityPriceFixationStatus,
  TreasuryPositionAccount,
  DerivativeContract,
  OptionStrikeCurrency,
  OptionPutCallCode,
  EvaluationDate,
  EndOfDaySnapshotDate,
  EndOfDaySnapshotDateTime,
  MTMDataSelectionType,
  FinInstrExternalReference,
  DisplayView,
  CommodityPriceExposureUnit,
  ReportingYear,
  ReportingMonth,
  PricedFinancialPositionQty,
  UnpricedFinancialPositionQty,
  DueInPastUnpricedFinPosQty,
  DueMktOnClsUnpricedFinPosQty,
  DueInFutureUnpricedFinPosQty,
  UnpricedContrPriceExposureQty,
  UndeliveredMarketPrExposureQty,
  OutrightPriceExposureQty,
  FinancialPositionQty
FROM I_CmmdtyHdgDrvtvExpsrPosCube
;