P_CmmdtyHdgExpsrDtePosSelect

DDL: P_CMMDTYHDGEXPSRDTEPOSSELECT SQL: PEXPPOSSEL Type: view COMPOSITE

Number of Plan Exposure Position

P_CmmdtyHdgExpsrDtePosSelect is a Composite CDS View that provides data about "Number of Plan Exposure Position" in SAP S/4HANA. It reads from 2 data sources (I_CommodityHedgePlanExposure, P_CmmdtyHedgeFactoryCalendar) and exposes 20 fields with key fields CmmdtyHdgPlnExpsrCompanyCode, CommodityHedgePlanExposureID, CmmdtyHdgPlanExpsrMktIDCode, CmmdtyHedgePlanExposureVersion.

Data Sources (2)

SourceAliasJoin Type
I_CommodityHedgePlanExposure exp from
P_CmmdtyHedgeFactoryCalendar P_CmmdtyHedgeFactoryCalendar inner

Parameters (3)

NameTypeDefault
P_EvalDate cds_evaluation_date
P_CompanyCode bukrs
P_ConsumptionType cmm_vlogp_consumptiontype

Annotations (11)

NameValueLevelField
AbapCatalog.sqlViewName PEXPPOSSEL view
ObjectModel.usageType.sizeCategory #L view
ObjectModel.usageType.dataClass #MIXED view
ObjectModel.usageType.serviceQuality #C view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
VDM.viewType #COMPOSITE view
VDM.private true view
ClientHandling.algorithm #SESSION_VARIABLE view
AccessControl.authorizationCheck #MANDATORY view
EndUserText.label Number of Plan Exposure Position view

Fields (20)

KeyFieldSource TableSource FieldDescription
KEY CmmdtyHdgPlnExpsrCompanyCode I_CommodityHedgePlanExposure CmmdtyHdgPlnExpsrCompanyCode Company Code
KEY CommodityHedgePlanExposureID I_CommodityHedgePlanExposure CommodityHedgePlanExposureID Plan Exposure ID
KEY CmmdtyHdgPlanExpsrMktIDCode I_CommodityHedgePlanExposure CmmdtyHdgPlanExpsrMktIDCode MIC
KEY CmmdtyHedgePlanExposureVersion I_CommodityHedgePlanExposure CmmdtyHedgePlanExposureVersion Exposure Version No.
CmmdtyHdgPlnExpsrPrcgStartDate I_CommodityHedgePlanExposure CmmdtyHdgPlnExpsrPrcgStartDate Pricing Start Date
CmmdtyHdgPlnExpsrPrcgEndDate I_CommodityHedgePlanExposure CmmdtyHdgPlnExpsrPrcgEndDate Pricing End Date
FactoryCalendar expVrsn FactoryCalendar Factory Calendar
CmmdtyHdgNmbrOfWrkDayPrcgPerd expVrsn CmmdtyHdgNmbrOfWrkDayPrcgPerd
CmmdtyHdgPlnExpsrValidFromDate I_CommodityHedgePlanExposure CmmdtyHdgPlnExpsrValidFromDate Valid-From Date
PhysicalCommodity I_CommodityHedgePlanExposure PhysicalCommodity
CmmdtyHdgPlanExposureDirection I_CommodityHedgePlanExposure CmmdtyHdgPlanExposureDirection Buy or Sell
CmmdtyHedgePlanExposureDCSID I_CommodityHedgePlanExposure CmmdtyHedgePlanExposureDCSID DCS ID
CmmdtyHdgPlnExpsrQuantityUnit I_CommodityHedgePlanExposure CmmdtyHdgPlnExpsrQuantityUnit Unit of Measure
CmmdtyHedgePlnExposureQuantity I_CommodityHedgePlanExposure CmmdtyHedgePlnExposureQuantity Qty
CmmdtyHdgPlanExposureHedgeBook I_CommodityHedgePlanExposure CmmdtyHdgPlanExposureHedgeBook Hedge Book
CmmdtyHdgPlanExposurePortfolio I_CommodityHedgePlanExposure CmmdtyHdgPlanExposurePortfolio Portfolio
CmmdtyHdgExpsrPrcgPerdEndDate expVrsn CmmdtyHdgExpsrPrcgPerdEndDate
_CompanyCode I_CommodityHedgePlanExposure _CompanyCode
ConsumptionType
EvaluationDate

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 P_CmmdtyHdgExpsrDtePosSelect.
-- 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: PEXPPOSSEL
-- Parameters: P_EvalDate : cds_evaluation_date, P_CompanyCode : bukrs, P_ConsumptionType : cmm_vlogp_consumptiontype

CREATE VIEW P_CmmdtyHdgExpsrDtePosSelect AS
SELECT
  exp.CmmdtyHdgPlnExpsrCompanyCode AS CmmdtyHdgPlnExpsrCompanyCode,
  exp.CommodityHedgePlanExposureID AS CommodityHedgePlanExposureID,
  exp.CmmdtyHdgPlanExpsrMktIDCode AS CmmdtyHdgPlanExpsrMktIDCode,
  exp.CmmdtyHedgePlanExposureVersion AS CmmdtyHedgePlanExposureVersion,
  exp.CmmdtyHdgPlnExpsrPrcgStartDate AS CmmdtyHdgPlnExpsrPrcgStartDate,
  exp.CmmdtyHdgPlnExpsrPrcgEndDate AS CmmdtyHdgPlnExpsrPrcgEndDate,
  expVrsn.FactoryCalendar AS FactoryCalendar,
  expVrsn.CmmdtyHdgNmbrOfWrkDayPrcgPerd AS CmmdtyHdgNmbrOfWrkDayPrcgPerd,
  exp.CmmdtyHdgPlnExpsrValidFromDate AS CmmdtyHdgPlnExpsrValidFromDate,
  exp.PhysicalCommodity AS PhysicalCommodity,
  exp.CmmdtyHdgPlanExposureDirection AS CmmdtyHdgPlanExposureDirection,
  exp.CmmdtyHedgePlanExposureDCSID AS CmmdtyHedgePlanExposureDCSID,
  exp.CmmdtyHdgPlnExpsrQuantityUnit AS CmmdtyHdgPlnExpsrQuantityUnit,
  exp.CmmdtyHedgePlnExposureQuantity AS CmmdtyHedgePlnExposureQuantity,
  exp.CmmdtyHdgPlanExposureHedgeBook AS CmmdtyHdgPlanExposureHedgeBook,
  exp.CmmdtyHdgPlanExposurePortfolio AS CmmdtyHdgPlanExposurePortfolio,
  expVrsn.CmmdtyHdgExpsrPrcgPerdEndDate AS CmmdtyHdgExpsrPrcgPerdEndDate,
  exp._CompanyCode AS _CompanyCode,
  $parameters.P_ConsumptionType AS ConsumptionType,
  $parameters.P_EvalDate AS EvaluationDate
FROM I_CommodityHedgePlanExposure AS exp
INNER JOIN P_CmmdtyHedgeFactoryCalendar ON /* join condition not captured in parsed metadata */
;