P_CmmdtyHdgExpsrDtePosSelect
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)
| Source | Alias | Join Type |
|---|---|---|
| I_CommodityHedgePlanExposure | exp | from |
| P_CmmdtyHedgeFactoryCalendar | P_CmmdtyHedgeFactoryCalendar | inner |
Parameters (3)
| Name | Type | Default |
|---|---|---|
| P_EvalDate | cds_evaluation_date | |
| P_CompanyCode | bukrs | |
| P_ConsumptionType | cmm_vlogp_consumptiontype |
Annotations (11)
| Name | Value | Level | Field |
|---|---|---|---|
| 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)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| 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 */
;
Learn More
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- CDS View Annotations — A Complete Guide
- What Is a CDS View in SAP S/4HANA?
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- CDS View Field Mapping and Associations
- Understanding the SAP S/4HANA Data Model
- CDS View Extensions and Custom Fields in SAP S/4HANA
- Released APIs and Stability Contracts in SAP S/4HANA
- BSEG to ACDOCA: The Universal Journal Migration
- Business Partner Migration: KNA1/LFA1 to BUT000
- Material Document Migration: MSEG/MKPF to MATDOC
- How to Find the Right CDS View for an SAP Table
- BW Extractor to CDS View Migration Guide
- S/4HANA CDS View Deprecation: What You Need to Know
- ABAP CDS View Tutorial — From Basics to Real-World Examples
- RAP and CDS Views — Building Transactional Apps in SAP S/4HANA
- Sales Document Status Migration: VBUP/VBUK Removal in S/4HANA
- CO Tables in S/4HANA: COEP, COBK, COSS, COSP to ACDOCA