I_CmmdtyHdgPlanExpsrComposite
Composite for Plan Exposure
I_CmmdtyHdgPlanExpsrComposite is a Composite CDS View that provides data about "Composite for Plan Exposure" in SAP S/4HANA. It reads from 1 data source (I_CommodityHedgePlanExposure) and exposes 66 fields with key field CommodityHedgePlanExposureUUID. It has 15 associations to related views. Part of development package FIN_CMM_CMDTY_PLAN_EXPOSURE.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_CommodityHedgePlanExposure | I_CommodityHedgePlanExposure | from |
Associations (15)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..1] | I_CmmdtyHdgPlanExposureStatus | _CmmdtyHdgPlanExpsrStatus | $projection.CmmdtyHedgePlanExposureStatus = _CmmdtyHdgPlanExpsrStatus.SystemStatus |
| [0..1] | I_CmmdtyHdgPlngDataDirection | _CmmdtyHdgPlngDataDirection | $projection.CmmdtyHdgPlanExposureDirection = _CmmdtyHdgPlngDataDirection.PlanningDataDirection |
| [0..1] | I_CompanyCodeStdVH | _CompanyCodeText | $projection.CmmdtyHdgPlnExpsrCompanyCode = _CompanyCodeText.CompanyCode |
| [0..1] | I_MarketIdentCode | _MarketIdentCode | $projection.CmmdtyHdgPlanExpsrMktIDCode = _MarketIdentCode.MarketIdentifierCode |
| [0..1] | I_DerivativeContrSpec | _DrvtvContrSpec | $projection.CmmdtyHedgePlanExposureDCSID = _DrvtvContrSpec.DerivativeContrSpecification |
| [0..1] | I_BusinessArea | _BusinessArea | $projection.CmmdtyHdgPlnExpsrBusinessArea = _BusinessArea.BusinessArea |
| [0..1] | I_TreasuryPortfolio | _Portfolio | $projection.CmmdtyHdgPlanExposurePortfolio = _Portfolio.Portfolio and $projection.CmmdtyHdgPlnExpsrCompanyCode = _Portfolio.CompanyCode |
| [0..1] | I_ProfitCenter | _ProfitCenter | $projection.CmmdtyHdgPlnExpsrProfitCenter = _ProfitCenter.ProfitCenter and $projection.ControllingArea = _ProfitCenter.ControllingArea and _ProfitCenter.ValidityEndDate = '99991231' |
| [0..1] | I_CostCenter | _CostCenter | $projection.CmmdtyHdgPlnExposureCostCenter = _CostCenter.CostCenter and $projection.ControllingArea = _CostCenter.ControllingArea and _CostCenter.ValidityEndDate = '99991231' |
| [0..1] | I_Plant | _PlantText | $projection.CmmdtyHedgePlanExposurePlant = _PlantText.Plant |
| [0..*] | I_CmmdtyHdgPlnExpsrHedgeBookT | _HedgeBookText | $projection.CmmdtyHdgPlanExposureHedgeBook = _HedgeBookText.CmmdtyHdgPlanExposureHedgeBook |
| [1..1] | I_CmmdtyHdgPlnExposureUserText | _CmmdtyHdgPlanExpsrUserText | $projection.CommodityHedgePlanExposureUUID = _CmmdtyHdgPlanExpsrUserText.CommodityHedgePlanExposureUUID and _CmmdtyHdgPlanExpsrUserText.Language = $session.system_language |
| [0..1] | I_CmmdtyHdgPlngDataComposite | _CmmdtyHdgPlnExpsrPlngDtaText | $projection.PlanningDataUUID = _CmmdtyHdgPlnExpsrPlngDtaText.PlanningDataUUID |
| [0..1] | I_CmmdtyHdgPlngDtaDelivCat | _DeliveryCategory | $projection.CmmdtyHdgPlnExpsrDelivPerdType = _DeliveryCategory.PlanningDataDeliveryCategory |
| [1..1] | I_CmHdgPlnExpsrHdggArLastRel | _CmHdgPlnExpsrHdggArLastRel | $projection.CommodityHedgePlanExposureUUID = _CmHdgPlnExpsrHdggArLastRel.CommodityHedgePlanExposureUUID |
Annotations (12)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | ICMMHDGPLNEXPSR | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AbapCatalog.preserveKey | true | view | |
| AccessControl.authorizationCheck | #MANDATORY | view | |
| AccessControl.personalData.blocking | #BLOCKED_DATA_EXCLUDED | view | |
| ObjectModel.usageType.dataClass | #MIXED | view | |
| ObjectModel.usageType.sizeCategory | #L | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| EndUserText.label | Composite for Plan Exposure | view | |
| VDM.viewType | #COMPOSITE | view | |
| ObjectModel.representativeKey | CommodityHedgePlanExposureUUID | view |
Fields (66)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | CommodityHedgePlanExposureUUID | CommodityHedgePlanExposureUUID | UUID | |
| CmmdtyHdgPlnExposureParentUUID | CmmdtyHdgPlnExposureParentUUID | UUID | ||
| CmmdtyHedgePlanExposureHashKey | CmmdtyHedgePlanExposureHashKey | Semantic Hash Key | ||
| CmmdtyHdgPlnExpsrCompanyCode | CmmdtyHdgPlnExpsrCompanyCode | Company Code | ||
| CmmdtyHedgePlanExposureDCSID | CmmdtyHedgePlanExposureDCSID | DCS ID | ||
| CmmdtyHdgPlanExpsrMktIDCode | CmmdtyHdgPlanExpsrMktIDCode | MIC | ||
| CmmdtyHdgPlanExposureDirection | CmmdtyHdgPlanExposureDirection | Buy or Sell | ||
| CmmdtyHdgPlnExpsrHedgingArea | CmmdtyHdgPlnExpsrHedgingArea | Hedging Area | ||
| CmmdtyHdgPlanExposureHedgeBook | CmmdtyHdgPlanExposureHedgeBook | Hedge Book | ||
| CmmdtyHdgBookAuthznGroup | CmmdtyHdgBookAuthznGroup | |||
| CmmdtyHdgPlnExpsrPerdStartDate | CmmdtyHdgPlnExpsrPerdStartDate | Period Start | ||
| CmmdtyHdgPlnExpsrPeriodClass | CmmdtyHdgPlnExpsrPeriodClass | Period Class | ||
| CmmdtyHdgPlnExpsrBusinessArea | CmmdtyHdgPlnExpsrBusinessArea | Business Area | ||
| CmmdtyHdgPlnExpsrValidFromDate | CmmdtyHdgPlnExpsrValidFromDate | Valid-From Date | ||
| CmmdtyHdgPlanExposurePortfolio | CmmdtyHdgPlanExposurePortfolio | Portfolio | ||
| CmmdtyHdgPlnExpsrProfitCenter | CmmdtyHdgPlnExpsrProfitCenter | Profit Center | ||
| CmmdtyHdgPlnExposureCostCenter | CmmdtyHdgPlnExposureCostCenter | Cost Center | ||
| CmmdtyHedgePlanExposurePlant | CmmdtyHedgePlanExposurePlant | Plant | ||
| CmmdtyHedgePlanExposureItemID | CmmdtyHedgePlanExposureItemID | Exposure Item ID | ||
| CmmdtyHdgPlnExpsrIsAcctgRlvt | CmmdtyHdgPlnExpsrIsAcctgRlvt | Hedge Accounting Relevance | ||
| CmmdtyHdgPlnExposureRemarkNote | CmmdtyHdgPlnExposureRemarkNote | Remark | ||
| CommodityHedgePlanExposureID | CommodityHedgePlanExposureID | Plan Exposure ID | ||
| CmmdtyHdgPlanExposureCategory | CmmdtyHdgPlanExposureCategory | Exposure Category | ||
| CmmdtyHdgPlnExpsrDelivStrtDate | CmmdtyHdgPlnExpsrDelivStrtDate | Delivery Start Date | ||
| CmmdtyHdgPlnExpsrDelivEndDate | CmmdtyHdgPlnExpsrDelivEndDate | Delivery End Date | ||
| CmmdtyHdgPlnExpsrDelivPerdText | CmmdtyHdgPlnExpsrDelivPerdText | Del. Period Descr. | ||
| CmmdtyHdgPlnExpsrDelivPerdType | CmmdtyHdgPlnExpsrDelivPerdType | Delivery Period Cat. | ||
| CmmdtyHdgPlnExpsrDelivPerdYear | CmmdtyHdgPlnExpsrDelivPerdYear | Exposure Deliv. Year | ||
| CmmdtyHdgPlnExpsrPrcgStartDate | CmmdtyHdgPlnExpsrPrcgStartDate | Pricing Start Date | ||
| CmmdtyHdgPlnExpsrPrcgEndDate | CmmdtyHdgPlnExpsrPrcgEndDate | Pricing End Date | ||
| PlanningDataUUID | PlanningDataUUID | UUID | ||
| CmmdtyHedgePlnExposureQuantity | CmmdtyHedgePlnExposureQuantity | Qty | ||
| CmmdtyHdgPlnExpsrQuantityUnit | CmmdtyHdgPlnExpsrQuantityUnit | Unit of Measure | ||
| CmmdtyHdgPlanExposureLogHandle | CmmdtyHdgPlanExposureLogHandle | Log Handle | ||
| CmmdtyHedgePlanExposureStatus | CmmdtyHedgePlanExposureStatus | Status | ||
| CmmdtyHedgePlanExposureVersion | CmmdtyHedgePlanExposureVersion | Exposure Version No. | ||
| CmmdtyHdgPlnExpsrStsChgReason | CmmdtyHdgPlnExpsrStsChgReason | Status Change Reason | ||
| CmmdtyHdgPlnExpsrCreatedByUser | CmmdtyHdgPlnExpsrCreatedByUser | User Name | ||
| CmmdtyHdgPlnExpsrCrtnDateTime | CmmdtyHdgPlnExpsrCrtnDateTime | Time Stamp | ||
| CmmdtyHdgPlnExpsrLastChgdByUsr | CmmdtyHdgPlnExpsrLastChgdByUsr | User Name | ||
| CmmdtyHdgPlnExpsrChgDateTime | CmmdtyHdgPlnExpsrChgDateTime | Time Stamp | ||
| ControllingArea | ControllingArea | Controlling Area | ||
| PhysicalCommodity | PhysicalCommodity | |||
| CmmdtyHdgPlnExpsrIsLtstVersion | CmmdtyHdgPlnExpsrIsLtstVersion | |||
| CmmdtyHdgPlnExpsrPlanningData | ||||
| CmmdtyHdgPlnExpsrChgDocumentID | ||||
| CmmdtyHdgPlnExpsrPrevVersion | Exposure Version No. | |||
| CurrentDate | ||||
| CmmdtyHdgIsPrcgInDelivPeriod | CmmdtyHdgIsPrcgInDelivPeriod | |||
| _CmmdtyHdgPlanExpsrStatus | _CmmdtyHdgPlanExpsrStatus | |||
| _CmmdtyHdgPlngDataDirection | _CmmdtyHdgPlngDataDirection | |||
| _MarketIdentCode | _MarketIdentCode | |||
| _DrvtvContrSpec | _DrvtvContrSpec | |||
| _BusinessArea | _BusinessArea | |||
| _Portfolio | _Portfolio | |||
| _ProfitCenter | _ProfitCenter | |||
| _CostCenter | _CostCenter | |||
| _DeliveryCategory | _DeliveryCategory | |||
| _CmHdgPlnExpsrHdggArLastRel | _CmHdgPlnExpsrHdggArLastRel | |||
| _CmmdtyHdgPlanExpsrUserText | _CmmdtyHdgPlanExpsrUserText | |||
| _CmmdtyHdgPlnExpsrPlngDtaText | _CmmdtyHdgPlnExpsrPlngDtaText | |||
| _CompanyCodeText | _CompanyCodeText | |||
| _PlantText | _PlantText | |||
| _HedgeBookText | _HedgeBookText | |||
| _ControllingArea | _ControllingArea | |||
| _HedgeBook | _HedgeBook |
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_CmmdtyHdgPlanExpsrComposite.
-- 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: ICMMHDGPLNEXPSR
CREATE VIEW I_CmmdtyHdgPlanExpsrComposite AS
SELECT
CommodityHedgePlanExposureUUID,
CmmdtyHdgPlnExposureParentUUID,
CmmdtyHedgePlanExposureHashKey,
CmmdtyHdgPlnExpsrCompanyCode,
CmmdtyHedgePlanExposureDCSID,
CmmdtyHdgPlanExpsrMktIDCode,
CmmdtyHdgPlanExposureDirection,
CmmdtyHdgPlnExpsrHedgingArea,
CmmdtyHdgPlanExposureHedgeBook,
CmmdtyHdgBookAuthznGroup,
CmmdtyHdgPlnExpsrPerdStartDate,
CmmdtyHdgPlnExpsrPeriodClass,
CmmdtyHdgPlnExpsrBusinessArea,
CmmdtyHdgPlnExpsrValidFromDate,
CmmdtyHdgPlanExposurePortfolio,
CmmdtyHdgPlnExpsrProfitCenter,
CmmdtyHdgPlnExposureCostCenter,
CmmdtyHedgePlanExposurePlant,
CmmdtyHedgePlanExposureItemID,
CmmdtyHdgPlnExpsrIsAcctgRlvt,
CmmdtyHdgPlnExposureRemarkNote,
CommodityHedgePlanExposureID,
CmmdtyHdgPlanExposureCategory,
CmmdtyHdgPlnExpsrDelivStrtDate,
CmmdtyHdgPlnExpsrDelivEndDate,
CmmdtyHdgPlnExpsrDelivPerdText,
CmmdtyHdgPlnExpsrDelivPerdType,
CmmdtyHdgPlnExpsrDelivPerdYear,
CmmdtyHdgPlnExpsrPrcgStartDate,
CmmdtyHdgPlnExpsrPrcgEndDate,
PlanningDataUUID,
CmmdtyHedgePlnExposureQuantity,
CmmdtyHdgPlnExpsrQuantityUnit,
CmmdtyHdgPlanExposureLogHandle,
CmmdtyHedgePlanExposureStatus,
CmmdtyHedgePlanExposureVersion,
CmmdtyHdgPlnExpsrStsChgReason,
CmmdtyHdgPlnExpsrCreatedByUser,
CmmdtyHdgPlnExpsrCrtnDateTime,
CmmdtyHdgPlnExpsrLastChgdByUsr,
CmmdtyHdgPlnExpsrChgDateTime,
ControllingArea,
PhysicalCommodity,
CmmdtyHdgPlnExpsrIsLtstVersion,
bintohex( PlanningDataUUID ) AS CmmdtyHdgPlnExpsrPlanningData,
bintohex( CommodityHedgePlanExposureUUID ) AS CmmdtyHdgPlnExpsrChgDocumentID,
substring( cast( cast( CmmdtyHedgePlanExposureVersion as abap.int4 ) - 1 as abap.char( 11 ) ) , 1, 6 ) AS CmmdtyHdgPlnExpsrPrevVersion,
$session.system_date AS CurrentDate,
CmmdtyHdgIsPrcgInDelivPeriod
FROM I_CommodityHedgePlanExposure
LEFT OUTER JOIN I_CmmdtyHdgPlanExposureStatus AS _CmmdtyHdgPlanExpsrStatus ON CmmdtyHedgePlanExposureStatus = _CmmdtyHdgPlanExpsrStatus.SystemStatus -- association [0..1]
LEFT OUTER JOIN I_CmmdtyHdgPlngDataDirection AS _CmmdtyHdgPlngDataDirection ON CmmdtyHdgPlanExposureDirection = _CmmdtyHdgPlngDataDirection.PlanningDataDirection -- association [0..1]
LEFT OUTER JOIN I_CompanyCodeStdVH AS _CompanyCodeText ON CmmdtyHdgPlnExpsrCompanyCode = _CompanyCodeText.CompanyCode -- association [0..1]
LEFT OUTER JOIN I_MarketIdentCode AS _MarketIdentCode ON CmmdtyHdgPlanExpsrMktIDCode = _MarketIdentCode.MarketIdentifierCode -- association [0..1]
LEFT OUTER JOIN I_DerivativeContrSpec AS _DrvtvContrSpec ON CmmdtyHedgePlanExposureDCSID = _DrvtvContrSpec.DerivativeContrSpecification -- association [0..1]
LEFT OUTER JOIN I_BusinessArea AS _BusinessArea ON CmmdtyHdgPlnExpsrBusinessArea = _BusinessArea.BusinessArea -- association [0..1]
LEFT OUTER JOIN I_TreasuryPortfolio AS _Portfolio ON CmmdtyHdgPlanExposurePortfolio = _Portfolio.Portfolio AND CmmdtyHdgPlnExpsrCompanyCode = _Portfolio.CompanyCode -- association [0..1]
LEFT OUTER JOIN I_ProfitCenter AS _ProfitCenter ON CmmdtyHdgPlnExpsrProfitCenter = _ProfitCenter.ProfitCenter AND ControllingArea = _ProfitCenter.ControllingArea AND _ProfitCenter.ValidityEndDate = '99991231' -- association [0..1]
LEFT OUTER JOIN I_CostCenter AS _CostCenter ON CmmdtyHdgPlnExposureCostCenter = _CostCenter.CostCenter AND ControllingArea = _CostCenter.ControllingArea AND _CostCenter.ValidityEndDate = '99991231' -- association [0..1]
LEFT OUTER JOIN I_Plant AS _PlantText ON CmmdtyHedgePlanExposurePlant = _PlantText.Plant -- association [0..1]
LEFT OUTER JOIN I_CmmdtyHdgPlnExpsrHedgeBookT AS _HedgeBookText ON CmmdtyHdgPlanExposureHedgeBook = _HedgeBookText.CmmdtyHdgPlanExposureHedgeBook -- association [0..*]
LEFT OUTER JOIN I_CmmdtyHdgPlnExposureUserText AS _CmmdtyHdgPlanExpsrUserText ON CommodityHedgePlanExposureUUID = _CmmdtyHdgPlanExpsrUserText.CommodityHedgePlanExposureUUID AND _CmmdtyHdgPlanExpsrUserText.Language = $session.system_language -- association [1..1]
LEFT OUTER JOIN I_CmmdtyHdgPlngDataComposite AS _CmmdtyHdgPlnExpsrPlngDtaText ON PlanningDataUUID = _CmmdtyHdgPlnExpsrPlngDtaText.PlanningDataUUID -- association [0..1]
LEFT OUTER JOIN I_CmmdtyHdgPlngDtaDelivCat AS _DeliveryCategory ON CmmdtyHdgPlnExpsrDelivPerdType = _DeliveryCategory.PlanningDataDeliveryCategory -- association [0..1]
LEFT OUTER JOIN I_CmHdgPlnExpsrHdggArLastRel AS _CmHdgPlnExpsrHdggArLastRel ON CommodityHedgePlanExposureUUID = _CmHdgPlnExpsrHdggArLastRel.CommodityHedgePlanExposureUUID -- association [1..1]
;
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