I_COMMODITYHEDGEPLANEXPOSURE
Basic for Commodity Hedge Plan Exposure
I_COMMODITYHEDGEPLANEXPOSURE is a CDS View in S/4HANA. Basic for Commodity Hedge Plan Exposure. It contains 38 fields. 14 CDS views read from this table.
CDS Views using this table (14)
| View | Type | Join | VDM | Description |
|---|---|---|---|---|
| I_CmHdgPlnExpsrHdggArReldBfr | view | from | COMPOSITE | Hedging Area Before Exposure |
| I_CmmdtyHdgPlanExpsrComposite | view | from | COMPOSITE | Composite for Plan Exposure |
| I_CmmdtyHdgPlnExpsrIDDimension | view | from | COMPOSITE | Exposure Id Dimension |
| I_CmmdtyHdgTrdOrdCkptExposure | view | inner | COMPOSITE | Exposure for Trader Order Cockpit |
| I_CmmdtyHdgTrdOrdExpsrRqdVers | view | from | COMPOSITE | Active Version of Exposure Details |
| I_CmmdtyHedgeTransFlowActivity | view | inner | COMPOSITE | Financial Transaction Flow |
| P_CmmdtyHdgDealTgtQtaUtilzn | view | inner | COMPOSITE | |
| P_CmmdtyHdgExposureMaxVersion | view | from | COMPOSITE | Active Version of ExposureID |
| P_CmmdtyHdgExpsrDtePosSelect | view | from | COMPOSITE | Number of Plan Exposure Position |
| P_CmmdtyHdgExpsrTgtQuotaHeader | view | inner | COMPOSITE | |
| P_CmmdtyHdgExpsrVersionPeriod | view | inner | COMPOSITE | Exposure Version Period |
| P_CmmdtyHdgFinTransQuantitySum | view | inner | COMPOSITE | |
| P_CmmdtyHedgeExposureVersion | view | from | COMPOSITE | Active Version of ExposureID |
| P_CommodityHedgePlanExposure | view | from | COMPOSITE |
Fields (38)
| Key | Field | CDS Fields | Used in Views |
|---|---|---|---|
| KEY | CmmdtyHdgPlanExpsrMktIDCode | CmmdtyHdgPlanExpsrMktIDCode | 3 |
| KEY | CmmdtyHdgPlnExpsrCompanyCode | CmmdtyHdgPlnExpsrCompanyCode | 5 |
| KEY | CmmdtyHedgePlanExposureVersion | CmmdtyHedgePlanExposureVersion | 4 |
| KEY | CommodityHedgePlanExposureID | CommodityHedgePlanExposureID | 3 |
| KEY | CommodityHedgePlanExposureUUID | CommodityHedgePlanExposureUUID | 3 |
| _CompanyCode | _CompanyCode | 4 | |
| _ControllingArea | _ControllingArea | 1 | |
| _DCSAttributes | _DCSAttributes | 2 | |
| _HedgeBook | _HedgeBook | 3 | |
| CmmdtyHdgBookAuthznGroup | CmmdtyHdgBookAuthznGroup | 1 | |
| CmmdtyHdgIsPrcgInDelivPeriod | CmmdtyHdgIsPrcgInDelivPeriod | 3 | |
| CmmdtyHdgPlanExposureCategory | CmmdtyHdgPlanExposureCategory | 1 | |
| CmmdtyHdgPlanExposureDirection | CmmdtyHdgPlanExposureDirection | 4 | |
| CmmdtyHdgPlanExposureHedgeBook | CmmdtyHdgPlanExposureHedgeBook | 5 | |
| CmmdtyHdgPlanExposureLogHandle | CmmdtyHdgPlanExposureLogHandle | 1 | |
| CmmdtyHdgPlanExposurePortfolio | CmmdtyHdgPlanExposurePortfolio | 1 | |
| CmmdtyHdgPlnExpsrChgDateTime | CmmdtyHdgPlnExpsrChgDateTime | 1 | |
| CmmdtyHdgPlnExpsrCreatedByUser | CmmdtyHdgPlnExpsrCreatedByUser | 1 | |
| CmmdtyHdgPlnExpsrCrtnDateTime | CmmdtyHdgPlnExpsrCrtnDateTime | 1 | |
| CmmdtyHdgPlnExpsrDelivEndDate | CmmdtyHdgPlnExpsrDelivEndDate | 1 | |
| CmmdtyHdgPlnExpsrDelivPerdText | CmmdtyHdgPlnExpsrDelivPerdText | 1 | |
| CmmdtyHdgPlnExpsrDelivPerdType | CmmdtyHdgPlnExpsrDelivPerdType | 2 | |
| CmmdtyHdgPlnExpsrDelivPerdYear | CmmdtyHdgPlnExpsrDelivPerdYear | 2 | |
| CmmdtyHdgPlnExpsrDelivStrtDate | CmmdtyHdgPlnExpsrDelivStrtDate | 1 | |
| CmmdtyHdgPlnExpsrHedgingArea | CmmdtyHdgPlnExpsrHedgingArea | 1 | |
| CmmdtyHdgPlnExpsrLastChgdByUsr | CmmdtyHdgPlnExpsrLastChgdByUsr | 1 | |
| CmmdtyHdgPlnExpsrPerdStartDate | CmmdtyHdgPlnExpsrPerdStartDate | 3 | |
| CmmdtyHdgPlnExpsrPeriodClass | CmmdtyHdgPlnExpsrPeriodClass | 2 | |
| CmmdtyHdgPlnExpsrPrcgEndDate | CmmdtyHdgPlnExpsrPrcgEndDate | 2 | |
| CmmdtyHdgPlnExpsrPrcgStartDate | CmmdtyHdgPlnExpsrPrcgStartDate | 2 | |
| CmmdtyHdgPlnExpsrQuantityUnit | CmmdtyHdgPlnExpsrQuantityUnit | 4 | |
| CmmdtyHdgPlnExpsrStsChgReason | CmmdtyHdgPlnExpsrStsChgReason | 1 | |
| CmmdtyHdgPlnExpsrValidFromDate | CmmdtyHdgPlnExpsrValidFromDate | 2 | |
| CmmdtyHedgePlanExposureDCSID | CmmdtyHedgePlanExposureDCSID | 4 | |
| CmmdtyHedgePlanExposureStatus | CmmdtyHedgePlanExposureStatus | 2 | |
| CmmdtyHedgePlnExposureQuantity | CmmdtyHedgePlnExposureQuantity | 3 | |
| ControllingArea | ControllingArea | 1 | |
| PhysicalCommodity | PhysicalCommodity | 2 |
@AbapCatalog.sqlViewName: 'ICMMDTYHDGPLNEXP'
@AbapCatalog.compiler.compareFilter: true
@AbapCatalog.preserveKey: true
@AccessControl.authorizationCheck: #MANDATORY
@EndUserText.label: 'Basic for Commodity Hedge Plan Exposure'
@ClientHandling.algorithm: #SESSION_VARIABLE
@VDM.viewType: #BASIC
@ObjectModel:{ representativeKey: 'CommodityHedgePlanExposureUUID',
semanticKey: [ 'CmmdtyHdgPlnExpsrCompanyCode', 'CmmdtyHedgePlanExposureDCSID',
'CmmdtyHdgPlanExpsrMktIDCode', 'CmmdtyHdgPlanExposureDirection',
'CmmdtyHdgPlnExpsrHedgingArea', 'CmmdtyHdgPlnExpsrPerdStartDate',
'CmmdtyHdgPlnExpsrPeriodClass' ],
usageType: { dataClass: #MIXED,
serviceQuality: #C,
sizeCategory: #L } }
@Metadata.ignorePropagatedAnnotations: true
define view I_CommodityHedgePlanExposure
as select from cmmt_exposure
association [0..1] to I_CmmdtyDrvtvContrSpecAttrib as _DCSAttributes on $projection.CmmdtyHedgePlanExposureDCSID = _DCSAttributes.DerivativeContrSpecification
association [0..1] to I_CompanyCode as _CompanyCode on $projection.CmmdtyHdgPlnExpsrCompanyCode = _CompanyCode.CompanyCode
association [0..1] to I_CmmdtyHdgBookCompleteDetail as _HedgeBook on $projection.CmmdtyHdgPlanExposureHedgeBook = _HedgeBook.CommodityHedgeBookIdentifier
{
key commodityhedgeplanexposureuuid as CommodityHedgePlanExposureUUID,
cmmdtyhdgplnexposureparentuuid as CmmdtyHdgPlnExposureParentUUID,
cmmdtyhedgeplanexposurehashkey as CmmdtyHedgePlanExposureHashKey,
cmmdtyhdgplnexpsrcompanycode as CmmdtyHdgPlnExpsrCompanyCode,
cmmdtyhedgeplanexposuredcsid as CmmdtyHedgePlanExposureDCSID,
cmmdtyhdgplanexpsrmktidcode as CmmdtyHdgPlanExpsrMktIDCode,
cmmdtyhdgplanexposuredirection as CmmdtyHdgPlanExposureDirection,
cmmdtyhdgplnexpsrhedgingarea as CmmdtyHdgPlnExpsrHedgingArea,
cmmdtyhdgplanexposurehedgebook as CmmdtyHdgPlanExposureHedgeBook,
_HedgeBook.CmmdtyHdgBookAuthznGroup as CmmdtyHdgBookAuthznGroup,
cmmdtyhdgplnexpsrperdstartdate as CmmdtyHdgPlnExpsrPerdStartDate,
cmmdtyhdgplnexpsrperiodclass as CmmdtyHdgPlnExpsrPeriodClass,
cmmdtyhdgplnexpsrbusinessarea as CmmdtyHdgPlnExpsrBusinessArea,
cmmdtyhdgplnexpsrvalidfromdate as CmmdtyHdgPlnExpsrValidFromDate,
cmmdtyhdgplanexposureportfolio as CmmdtyHdgPlanExposurePortfolio,
cmmdtyhdgplnexpsrprofitcenter as CmmdtyHdgPlnExpsrProfitCenter,
cmmdtyhdgplnexposurecostcenter as CmmdtyHdgPlnExposureCostCenter,
cmmdtyhedgeplanexposureplant as CmmdtyHedgePlanExposurePlant,
cmmdtyhedgeplanexposureitemid as CmmdtyHedgePlanExposureItemID,
cmmdtyhdgplnexpsrisacctgrlvt as CmmdtyHdgPlnExpsrIsAcctgRlvt,
cmmdtyhdgplnexposureremarknote as CmmdtyHdgPlnExposureRemarkNote,
commodityhedgeplanexposureid as CommodityHedgePlanExposureID,
cmmdtyhdgplanexposurecategory as CmmdtyHdgPlanExposureCategory,
cmmdtyhdgplnexpsrdelivstrtdate as CmmdtyHdgPlnExpsrDelivStrtDate,
cmmdtyhdgplnexpsrdelivenddate as CmmdtyHdgPlnExpsrDelivEndDate,
cmmdtyhdgplnexpsrdelivperdtext as CmmdtyHdgPlnExpsrDelivPerdText,
cmmdtyhdgplnexpsrdelivperdtype as CmmdtyHdgPlnExpsrDelivPerdType,
cmmdtyhdgplnexpsrdelivperdyear as CmmdtyHdgPlnExpsrDelivPerdYear,
cmmdtyhdgplnexpsrprcgstartdate as CmmdtyHdgPlnExpsrPrcgStartDate,
cmmdtyhdgplnexpsrprcgenddate as CmmdtyHdgPlnExpsrPrcgEndDate,
planningdatauuid as PlanningDataUUID,
@Semantics.quantity.unitOfMeasure: 'CmmdtyHdgPlnExpsrQuantityUnit'
cmmdtyhedgeplnexposurequantity as CmmdtyHedgePlnExposureQuantity,
cmmdtyhdgplnexpsrquantityunit as CmmdtyHdgPlnExpsrQuantityUnit,
cmmdtyhdgplanexposureloghandle as CmmdtyHdgPlanExposureLogHandle,
cmmdtyhedgeplanexposurestatus as CmmdtyHedgePlanExposureStatus,
cmmdtyhedgeplanexposureversion as CmmdtyHedgePlanExposureVersion,
cmmdtyhdgplnexpsrstschgreason as CmmdtyHdgPlnExpsrStsChgReason,
// @Semantics.user.createdBy: true
cmmdtyhdgplnexpsrcreatedbyuser as CmmdtyHdgPlnExpsrCreatedByUser,
cmmdtyhdgplnexpsrcrtndatetime as CmmdtyHdgPlnExpsrCrtnDateTime,
// @Semantics.user.lastChangedBy: true
cmmdtyhdgplnexpsrlastchgdbyusr as CmmdtyHdgPlnExpsrLastChgdByUsr,
cmmdtyhdgplnexpsrchgdatetime as CmmdtyHdgPlnExpsrChgDateTime,
_DCSAttributes.PhysicalCommodity,
case cmmdtyhdgplnexposureparentuuid
when hextobin('00000000000000000000000000000000') then cast( 'X' as xfeld preserving type )
else cast( '' as xfeld preserving type )
end as CmmdtyHdgPlnExpsrIsLtstVersion,
case when cmmdtyhdgplnexpsrprcgstartdate = cmmdtyhdgplnexpsrdelivstrtdate
and cmmdtyhdgplnexpsrprcgenddate = cmmdtyhdgplnexpsrdelivenddate then cast( 'X' as xfeld preserving type )
else cast( '' as xfeld preserving type )
end as CmmdtyHdgIsPrcgInDelivPeriod,
_DCSAttributes,
_CompanyCode,
_CompanyCode._ControllingArea,
_CompanyCode.ControllingArea,
_HedgeBook
}
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"I_CMMDTYDRVTVCONTRSPECATTRIB",
"I_CMMDTYHDGBOOKCOMPLETEDETAIL",
"I_COMPANYCODE",
"CMMT_EXPOSURE"
],
"ASSOCIATED":
[
"I_CMMDTYDRVTVCONTRSPECATTRIB",
"I_CMMDTYHDGBOOKCOMPLETEDETAIL",
"I_COMPANYCODE",
"I_CONTROLLINGAREA"
],
"BASE":
[
"I_COMPANYCODE"
],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/