P_CMMDTYNAPNLVALUE_2
P_CMMDTYNAPNLVALUE_2 is a Composite CDS View in SAP S/4HANA. It reads from 1 data source (P_CMMDTYNEWACTPNLVALUE_SUM_2) and exposes 207 fields with key fields PricingKey, Version, SourceDocumentItem, ConditionType, SubConditionType. It has 35 associations to related views.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| P_CMMDTYNEWACTPNLVALUE_SUM_2 | P_CMMDTYNEWACTPNLVALUE_SUM_2 | from |
Parameters (14)
| Name | Type | Default |
|---|---|---|
| P_EvaluationDate | cmm_eval_keydate | |
| P_ExchRateEvaluationDate | cmm_eval_keydate | |
| P_EndOfDaySnapshotFromDate | cmm_dend_cutdate | |
| P_EndOfDaySnapshotToDate | cmm_dend_cutdate | |
| P_MinEndOfDayFromDateTime | cmm_min_eod_from_datetime | |
| P_MaxEndOfDayToDateTime | cmm_max_eod_to_datetime | |
| P_MinPriceQuotationDate | cmm_min_price_quotation_date | |
| P_MaxPriceQuotationDate | cmm_max_price_quotation_date | |
| P_MinSubstnPrcQtanDate | cmm_min_sub_price_quote_date | |
| P_MaxSubstnPrcQtanDate | cmm_max_sub_price_quote_date | |
| P_MinExchRateMttyDate | cmm_min_ex_rate_maturity_date | |
| P_MaxExchRateMttyDate | cmm_max_ex_rate_maturity_date | |
| P_MinFwdQuotationDate | cmm_min_fwd_quotation_date | |
| P_MaxFwdQuotationDate | cmm_max_fwd_quotation_date |
Associations (35)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [1..1] | I_PnLEventType | _PnLEventType | $projection.PnLEventType = _PnLEventType.PnLEventType |
| [1..1] | I_PnLEventGroup | _PnLEventGroup | $projection.PnLEventGroup = _PnLEventGroup.PnLEventGroup |
| [1..1] | I_PnLEventCategory | _PnLEventCategory | $projection.PnLEventCategory = _PnLEventCategory.PnLEventCategory |
| [1..1] | I_PnLEventType | _PnLElementaryEventType | $projection.PnLElementaryEventType = _PnLElementaryEventType.PnLEventType |
| [0..*] | I_CmmdtyMtmMessage | _CmmdtyMTMMessage | $projection.SystemMessageNumber = _CmmdtyMTMMessage.SystemMessageNumber |
| [0..1] | I_UnitOfMeasure | _ConditionTermRateQuantityUnit | $projection.ConditionTermRateQuantityUnit = _ConditionTermRateQuantityUnit.UnitOfMeasure |
| [0..1] | I_UnitOfMeasure | _MktCndnTermRateQuantityUnit | $projection.MarketPriceQuantityUnit = _MktCndnTermRateQuantityUnit.UnitOfMeasure |
| [0..1] | I_Currency | _StatisticsCurrency | $projection.StatisticsCurrency = _StatisticsCurrency.Currency |
| [0..1] | I_Currency | _DocumentCurrency | $projection.DocumentCurrency = _DocumentCurrency.Currency |
| [0..1] | I_Currency | _ConditionTermRateCurrency | $projection.ConditionTermRateCurrency = _ConditionTermRateCurrency.Currency |
| [0..1] | I_Currency | _ContrCndnTermRateCurrency | $projection.ContrConditionTermRateCurrency = _ContrCndnTermRateCurrency.Currency |
| [0..1] | I_Currency | _SpreadCurrency | $projection.SpreadCurrency = _SpreadCurrency.Currency |
| [0..1] | I_UnitOfMeasure | _CommodityUnit | $projection.CommodityUnit = _CommodityUnit.UnitOfMeasure |
| [0..1] | I_MtmDataSourceType | _MTMDataSourceType | $projection.MTMDataSourceType = _MTMDataSourceType.MTMDataSourceType |
| [0..1] | I_MtmConditionGroup | _MTMConditionGroup | $projection.MTMConditionGroup = _MTMConditionGroup.MTMConditionGroup |
| [0..1] | I_Mtmconditiongroupcategory | _MTMConditionGroupCategory | $projection.MTMConditionGroupCategory = _MTMConditionGroupCategory.MTMConditionGroupCategory |
| [0..1] | I_MtmAdjustmentType | _MTMAdjustmentType | $projection.MTMAdjustmentType = _MTMAdjustmentType.MTMAdjustmentType |
| [0..1] | I_MtmCalculationGroup | _MTMCalculationGroup | $projection.MTMCalculationGroup = _MTMCalculationGroup.MTMCalculationGroup |
| [0..1] | I_Cmmdty | _Commodity | $projection.Commodity = _Commodity.Commodity |
| [0..1] | I_BasisID | _BasisID | $projection.MarketBasisID = _BasisID.BasisID |
| [0..1] | I_BusinessObjType | _SourceDocumentBusObjType | $projection.SourceDocumentBusObjType = _SourceDocumentBusObjType.BusinessObjectType |
| [0..1] | I_BusinessObjType | _ReferenceDocBusObjType | $projection.ReferenceDocBusObjType = _ReferenceDocBusObjType.BusinessObjectType |
| [0..1] | I_BusinessObjType | _OriginReferenceDocBusObjType | $projection.OriginReferenceDocBusObjType = _OriginReferenceDocBusObjType.BusinessObjectType |
| [0..1] | I_PricingStatus | _PricingStatus | $projection.PricingStatus = _PricingStatus.PricingStatus |
| [0..1] | I_Supplier | _Creditor | $projection.Creditor = _Creditor.Supplier |
| [0..1] | I_Customer | _SoldToParty | $projection.SoldToParty = _SoldToParty.Customer |
| [0..1] | I_Plant | _Plant | $projection.Plant = _Plant.Plant |
| [0..1] | I_StorageLocation | _StorageLocation | $projection.Plant = _StorageLocation.Plant and $projection.StorageLocation = _StorageLocation.StorageLocation |
| [0..1] | I_CompanyCode | _CompanyCode | $projection.CompanyCode = _CompanyCode.CompanyCode |
| [0..1] | I_Material | _Material | $projection.Material = _Material.Material |
| [0..1] | I_DerivativeContrSpec | _MarketDCS | $projection.MarketDCS = _MarketDCS.DerivativeContrSpecification |
| [0..1] | I_MarketIdentCode | _MktMarketIdentifierCode | $projection.MktMarketIdentifierCode = _MktMarketIdentifierCode.MarketIdentifierCode |
| [0..1] | I_IncotermsClassification | _IncotermsClassification | $projection.IncotermsClassification = _IncotermsClassification.IncotermsClassification |
| [0..1] | I_DerivativeContrSpec | _ContractDCS | $projection.ContractDCS = _ContractDCS.DerivativeContrSpecification |
| [0..1] | I_MarketIdentCode | _ContractMarketIdentifierCode | $projection.ContractMarketIdentifierCode = _ContractMarketIdentifierCode.MarketIdentifierCode |
Annotations (6)
| Name | Value | Level | Field |
|---|---|---|---|
| VDM.private | true | view | |
| VDM.viewType | #COMPOSITE | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| AbapCatalog.sqlViewName | PCMMNAPNLVALUE2 | view | |
| AbapCatalog.compiler.compareFilter | true | view |
Fields (207)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | PricingKey | source | PricingKey | Pricing Key |
| KEY | Version | source | Version | XML Vers. |
| KEY | SourceDocumentItem | SourceDocumentItem | ||
| KEY | ConditionType | source | ConditionType | Condition type |
| KEY | SubConditionType | source | SubConditionType | |
| ContractConditionType | source | ContractConditionType | ||
| VersStockRecordUUID | source | VersStockRecordUUID | ||
| OverviewPnLValue | ||||
| PnLValue | ||||
| MktPricePnLValue | ||||
| SpreadPnLValue | ||||
| DocToStstcFXPnLValue | ||||
| MktToStstcFXPnLValue | ||||
| CommodityQuantityInTermUnit | ||||
| ComparMktConditionTermRate | ||||
| ContrSpreadCndnTermRate | source | ContrSpreadCndnTermRate | ||
| ComparContrSpreadCndnTermRate | ||||
| FixedMktSpreadCndnTermRate | source | FixedMktSpreadCndnTermRate | ||
| FloatingMktSpreadCndnTermRate | source | FloatingMktSpreadCndnTermRate | ||
| SpreadCurrency | source | SpreadCurrency | ||
| MktDocToStstcExchRate | ||||
| MktMarketToDocExchRate | ||||
| MktMarketToStstcExchRate | ||||
| ContrMarketToStstcExchRate | ||||
| ContractMktToDocExchRate | source | ContractMktToDocExchRate | ||
| ComparContrMktToDocExchRate | source | ComparContrMktToDocExchRate | ||
| ContrDocToStstcExchRate | source | ContrDocToStstcExchRate | ||
| ComparContrDocToStstcExchRate | source | ComparContrDocToStstcExchRate | ||
| ComparCmmdtyQuantityInTermUnit | ||||
| PnLCalculationRelevantQuantity | source | PnLCalculationRelevantQuantity | ||
| PnLCalcRelevantMarketQuantity | source | PnLCalcRelevantMarketQuantity | ||
| PnLCalculationRelevantValue | ||||
| ComparMktMarketToStstcExchRate | ||||
| EvaluationDate | ||||
| ComparativeEvaluationDate | ||||
| MarketDCS | source | MarketDCS | ||
| _MarketDCS | _MarketDCS | |||
| MktMarketIdentifierCode | source | MktMarketIdentifierCode | ||
| _MktMarketIdentifierCode | _MktMarketIdentifierCode | |||
| MktDrvtvContrMaturityCode | source | ComparMktDrvtvContrCode | ||
| MktMaturityKeyDate | source | ComparMktMaturityKeyDate | ||
| MarketBasisType | source | ComparMarketBasisType | ||
| MarketBasisID | source | MarketBasisID | ||
| MktQuotationPriceType | source | ComparMktQuotationPriceType | ||
| HasError | ||||
| SystemMessageNumber | ||||
| PricingDocumentItem | source | PricingDocumentItem | Item | |
| MTMDataSourceType | source | MTMDataSourceType | Type of Data Record | |
| _MTMDataSourceType | _MTMDataSourceType | |||
| ValidityStartDate | source | ValidityStartDate | Validity Start Date | |
| ValidityStartDateTime | source | ValidityStartDateTime | Valid From Timestamp | |
| ValidityEndDate | source | ValidityEndDate | ValidTo | |
| ValidityEndDateTime | source | ValidityEndDateTime | Valid To Timestamp | |
| SourceTransactionEventDateTime | source | SourceTransactionEventDateTime | ||
| SourceTransacEventEndDateTime | source | SourceTransacEventEndDateTime | ||
| EndOfDayBusinessEntityKey | source | EndOfDayBusinessEntityKey | ||
| CompanyCode | source | CompanyCode | Receiver Company Code | |
| _CompanyCode | _CompanyCode | |||
| ControllingArea | _CompanyCode | ControllingArea | Controlling Area | |
| SalesOrganization | source | SalesOrganization | Sales Organization | |
| DistributionChannel | source | DistributionChannel | RefDistCh-Cust/Mat. | |
| Division | source | Division | Internal Division ID | |
| Creditor | source | Creditor | Supplier | |
| _Creditor | _Creditor | |||
| SoldToParty | source | SoldToParty | Sold-to Party | |
| _SoldToParty | _SoldToParty | |||
| Material | source | Material | Vehicle Model | |
| _Material | _Material | |||
| Commodity | source | PhysicalCommodity | ||
| _Commodity | _Commodity | |||
| Plant | source | Plant | Valuation Area | |
| _Plant | _Plant | |||
| StorageLocation | source | StorageLocation | StorageLocation | |
| _StorageLocation | _StorageLocation | |||
| Batch | source | Batch | Lot No. | |
| IncotermsClassification | source | IncotermsClassification | Incoterms | |
| _IncotermsClassification | _IncotermsClassification | |||
| IncotermsTransferLocation | source | IncotermsTransferLocation | Incoterms 2 | |
| ConditionApplication | source | ConditionApplication | Application | |
| SourceDocumentShortNumber | source | SourceDocumentShortNumber | ||
| SourceDocument | source | SourceDocument | Document | |
| SourceDocumentBusObjType | source | SourceDocumentBusObjType | ||
| _SourceDocumentBusObjType | _SourceDocumentBusObjType | |||
| OrignRefDocumentShortNumber | source | OrignRefDocumentShortNumber | ||
| OriginReferenceDocument | source | OriginReferenceDocument | Root Document | |
| OriginReferenceDocumentItem | ||||
| OriginReferenceDocBusObjType | source | OriginReferenceDocBusObjType | Root (BOR) Obj. Type | |
| _OriginReferenceDocBusObjType | _OriginReferenceDocBusObjType | |||
| ReferenceDocument | source | ReferenceDocument | Reference Document | |
| ReferenceDocumentItem | ||||
| ReferenceDocBusObjType | source | ReferenceDocBusObjType | Pred(BOR) Object Typ | |
| _ReferenceDocBusObjType | _ReferenceDocBusObjType | |||
| DeliveryDate | source | DeliveryDate | Delivery Date | |
| ExpectedPaymentDate | source | ExpectedPaymentDate | ||
| StatisticsCurrency | source | StatisticsCurrency | ||
| DocumentCurrency | source | DocumentCurrency | Document Currency | |
| ProfitCenter | source | ProfitCenter | Profit Center | |
| BusinessArea | source | BusinessArea | Business Area | |
| PurchasingOrganization | source | PurchasingOrganization | Purchasing Organization | |
| MaterialGroup | source | MaterialGroup | Product Group | |
| IsIntercompanyTransfer | source | IsIntercompanyTransfer | ||
| ConditionCalculationType | source | ConditionCalculationType | Calculat.Type | |
| ConditionRate | source | ConditionRate | ||
| ConditionCurrency | source | ConditionCurrency | Currency | |
| ConditionQuantity | source | ConditionQuantity | Pricing Unit | |
| ConditionQuantityUnit | source | ConditionQuantityUnit | Unit of Measure | |
| ContractConditionTermRate | source | ContractConditionTermRate | ||
| ContrConditionTermRateCurrency | source | ContrConditionTermRateCurrency | ||
| ComparContrCndnTermRate | source | ComparContrCndnTermRate | ||
| ComparContrCndnTrmRateCurrency | source | ComparContrCndnTrmRateCurrency | ||
| CalcRelContrConditionTermRate | source | CalcRelContrConditionTermRate | ||
| CalcRlvtContrCndnTrmRateCrcy | source | CalcRlvtContrCndnTrmRateCrcy | ||
| CalcRelComparContrCndnTermRate | source | CalcRelComparContrCndnTermRate | ||
| CalcRlvtComparCndnTrmRateCrcy | source | CalcRlvtComparCndnTrmRateCrcy | ||
| ConditionTermRate | ||||
| MarketConditionTermRate | ||||
| ConditionTermRateCurrency | source | ConditionTermRateCurrency | ||
| ConditionTermRateQuantity | source | ConditionTermRateQuantity | ||
| ConditionTermRateQuantityUnit | source | ConditionTermRateQuantityUnit | ||
| MarketPriceQuantityUnit | source | MarketPriceQuantityUnit | ||
| ConditionTermValue | source | ConditionTermValue | ||
| ConditionTermValueCurrency | source | ConditionTermValueCurrency | ||
| ConditionTermName | source | ConditionTermName | ||
| ConditionTermStatus | source | ConditionTermStatus | ||
| RoundingDecimalPlaces | source | RoundingDecimalPlaces | ||
| ConditionTermRateIsRounded | source | ConditionTermRateIsRounded | ||
| ConditionTermRateNmrtr | source | ConditionTermRateNmrtr | ||
| ConditionTermRateDnmntr | source | ConditionTermRateDnmntr | ||
| ConditionTermFactor | source | ConditionTermFactor | ||
| ComparConditionTermFactor | source | ComparConditionTermFactor | ||
| ConditionTermExtensionUsage | source | ConditionTermExtensionUsage | ||
| MaturitySelectionType | source | MaturitySelectionType | ||
| ExchRateMaturityDate | source | ExchRateMaturityDate | ||
| FixedExchRateDate | source | FixedExchRateDate | ||
| QuotationPeriodReferenceDate | source | QuotationPeriodReferenceDate | ||
| QuotationKeyType | source | QuotationKeyType | ||
| QuotationDateList | source | QuotationDateList | ||
| QuotationPeriodStartDate | source | QuotationPeriodStartDate | ||
| QuotationPeriodEndDate | source | QuotationPeriodEndDate | ||
| ComparMktDocToStstcExchRate | 0 | |||
| ComparMktMarketToDocExchRate | 0 | |||
| ContractDCS | source | ContractDCS | ||
| _ContractDCS | _ContractDCS | |||
| ContractMarketIdentifierCode | source | ContractMarketIdentifierCode | ||
| _ContractMarketIdentifierCode | _ContractMarketIdentifierCode | |||
| ContrDrvtvContrMaturityCode | source | ContrDrvtvContrMaturityCode | ||
| ContractMaturityKeyDate | source | ContractMaturityKeyDate | ||
| ContractBasisType | source | ContractBasisType | ||
| ContractBasisID | source | ContractBasisID | ||
| ContractQuotationPriceType | source | ContractQuotationPriceType | ||
| QuotationGroup | source | QuotationGroup | ||
| QuotationGroupCalculationRule | source | QuotationGroupCalculationRule | ||
| ConditionTermRateFixation | source | ConditionTermRateFixation | ||
| PricingStatus | source | PricingStatus | ||
| CndnTermRateFixationDate | source | CndnTermRateFixationDate | ||
| CndnTermRateFixationTime | source | CndnTermRateFixationTime | ||
| CndnTermExchRateFixationDate | source | CndnTermExchRateFixationDate | ||
| CndnTermExchRateFixationTime | source | CndnTermExchRateFixationTime | ||
| CommodityQuantity | source | CommodityQuantity | Commodity Quantity | |
| CommodityUnit | source | CommodityUnit | Order Unit | |
| QuantitySign | source | QuantitySign | Sign of Quantity | |
| MTMConditionGroupCategory | source | MTMConditionGroupCategory | ||
| _MTMConditionGroupCategory | _MTMConditionGroupCategory | |||
| MTMConditionGroup | source | MTMConditionGroup | ||
| _MTMConditionGroup | _MTMConditionGroup | |||
| MTMCalculationGroup | source | MTMCalculationGroup | ||
| _MTMCalculationGroup | _MTMCalculationGroup | |||
| MTMAdjustmentType | source | MTMAdjustmentType | ||
| _MTMAdjustmentType | _MTMAdjustmentType | |||
| MTMCalcGrpMarketPriceCondition | source | MTMCalcGrpMarketPriceCondition | ||
| ConditionTermRateIsFixed | source | ConditionTermRateIsFixed | ||
| ConditionTermExchRateIsFixed | source | ConditionTermExchRateIsFixed | ||
| PriceIsRealized | source | PriceIsRealized | ||
| PnLEventGroup | ||||
| _PnLEventGroup | _PnLEventGroup | |||
| PnLEventCategory | pnleventtype | PnLEventCategory | ||
| _PnLEventCategory | _PnLEventCategory | |||
| PnLElementaryEventType | source | PnLElementaryEventType | ||
| _PnLElementaryEventType | _PnLElementaryEventType | |||
| PnLEventType | source | PnLEventType | ||
| _PnLEventType | _PnLEventType | |||
| _CmmdtyMTMMessage | _CmmdtyMTMMessage | |||
| _ConditionTermRateQuantityUnit | _ConditionTermRateQuantityUnit | |||
| _MktCndnTermRateQuantityUnit | _MktCndnTermRateQuantityUnit | |||
| _StatisticsCurrency | _StatisticsCurrency | |||
| _DocumentCurrency | _DocumentCurrency | |||
| _ConditionTermRateCurrency | _ConditionTermRateCurrency | |||
| _ContrCndnTermRateCurrency | _ContrCndnTermRateCurrency | |||
| _SpreadCurrency | _SpreadCurrency | |||
| _CommodityUnit | _CommodityUnit | |||
| _BasisID | _BasisID | |||
| _PricingStatus | _PricingStatus | |||
| CmmdtyPriceExpsrMassUnit | source | CmmdtyPriceExpsrMassUnit | ||
| CmmdtyPriceExpsrQtyInMassUnit | source | CmmdtyPriceExpsrQtyInMassUnit | ||
| CmmdtyPriceExpsrVolumeUnit | source | CmmdtyPriceExpsrVolumeUnit | ||
| CmmdtyPriceExpsrQtyInVolUnit | source | CmmdtyPriceExpsrQtyInVolUnit | ||
| MarketToTermExchangeRateType | source | MarketToTermExchangeRateType | ||
| CndnToStstcExchangeRateType | source | CndnToStstcExchangeRateType | ||
| ConditionToDocExchangeRateType | source | ConditionToDocExchangeRateType | ||
| DocToStstcExchangeRateType | source | DocToStstcExchangeRateType | ||
| PriceSettingMethod | source | PriceSettingMethod | ||
| PriceSettingMethodStatus | source | PriceSettingMethodStatus | ||
| ValidToDateTime | source | ValidToDateTime | Time Stamp | |
| PricingProcedure | source | PricingProcedure | Procedure | |
| PricingConditionTerm | source | PricingConditionTerm | Term Number | |
| CmmdtyRootDocExternalNumber | source | CmmdtyRootDocExternalNumber | ||
| CmmdtyDocumentExternalNumber | source | CmmdtyDocumentExternalNumber |
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_CMMDTYNAPNLVALUE_2.
-- 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: PCMMNAPNLVALUE2
-- Parameters: P_EvaluationDate : cmm_eval_keydate, P_ExchRateEvaluationDate : cmm_eval_keydate, P_EndOfDaySnapshotFromDate : cmm_dend_cutdate, P_EndOfDaySnapshotToDate : cmm_dend_cutdate, P_MinEndOfDayFromDateTime : cmm_min_eod_from_datetime, P_MaxEndOfDayToDateTime : cmm_max_eod_to_datetime, P_MinPriceQuotationDate : cmm_min_price_quotation_date, P_MaxPriceQuotationDate : cmm_max_price_quotation_date, P_MinSubstnPrcQtanDate : cmm_min_sub_price_quote_date, P_MaxSubstnPrcQtanDate : cmm_max_sub_price_quote_date, P_MinExchRateMttyDate : cmm_min_ex_rate_maturity_date, P_MaxExchRateMttyDate : cmm_max_ex_rate_maturity_date, P_MinFwdQuotationDate : cmm_min_fwd_quotation_date, P_MaxFwdQuotationDate : cmm_max_fwd_quotation_date
CREATE VIEW P_CMMDTYNAPNLVALUE_2 AS
SELECT
source.PricingKey AS PricingKey,
source.Version AS Version,
SourceDocumentItem,
source.ConditionType AS ConditionType,
source.SubConditionType AS SubConditionType,
source.ContractConditionType AS ContractConditionType,
source.VersStockRecordUUID AS VersStockRecordUUID,
cast (source.PnLValue as cmm_cds_pnl_value) AS OverviewPnLValue,
cast (source.PnLValue as cmm_cds_pnl_value) AS PnLValue,
cast (source.MktPricePnLValue as cmm_cds_prc_pnl_value) AS MktPricePnLValue,
cast (source.SpreadPnLValue as cmm_cds_spread_pnl_value) AS SpreadPnLValue,
cast (source.DocToStstcFXPnLValue as cmm_cds_doc_ststc_fx_pnl_val) AS DocToStstcFXPnLValue,
cast (source.MktToStstcFXPnLValue as cmm_cds_mkt_ststc_fx_pnl_val) AS MktToStstcFXPnLValue,
cast (source.CommodityQuantityInTermUnit as cds_cmmdtyqty_in_termuom) AS CommodityQuantityInTermUnit,
cast (cast (0 as abap.dec (31, 8)) as cds_calcrelval_df34) AS ComparMktConditionTermRate,
source.ContrSpreadCndnTermRate AS ContrSpreadCndnTermRate,
cast (cast (0 as abap.dec (31, 8)) as cds_calcrelval_df34) AS ComparContrSpreadCndnTermRate,
source.FixedMktSpreadCndnTermRate AS FixedMktSpreadCndnTermRate,
source.FloatingMktSpreadCndnTermRate AS FloatingMktSpreadCndnTermRate,
source.SpreadCurrency AS SpreadCurrency,
cast (source.MktDocToStstcExchRate as cds_mkt_doc_to_stat_exchrate) AS MktDocToStstcExchRate,
cast (source.MktMarketToDocExchRate as cds_mkt_mark_to_doc_exchrate) AS MktMarketToDocExchRate,
cast (source.MktMarketToStstcExchRate as cds_mkt_mkt_to_stat_exchrate) AS MktMarketToStstcExchRate,
cast (source.ContrMarketToStstcExchRate as cds_mkt_mark_to_doc_exchrate) AS ContrMarketToStstcExchRate,
source.ContractMktToDocExchRate AS ContractMktToDocExchRate,
source.ComparContrMktToDocExchRate AS ComparContrMktToDocExchRate,
source.ContrDocToStstcExchRate AS ContrDocToStstcExchRate,
source.ComparContrDocToStstcExchRate AS ComparContrDocToStstcExchRate,
cast (source.ComparativeCmmdtyQtyInTermUnit as cds_comp_ctr_quan_comm) AS ComparCmmdtyQuantityInTermUnit,
source.PnLCalculationRelevantQuantity AS PnLCalculationRelevantQuantity,
source.PnLCalcRelevantMarketQuantity AS PnLCalcRelevantMarketQuantity,
cast (cast (0 as abap.dec (31, 8)) as cds_calcrelval_df34) AS PnLCalculationRelevantValue,
cast (cast (0 as abap.dec (31, 8)) as cds_calcrelval_df34) AS ComparMktMarketToStstcExchRate,
cast ( source.EvaluationDate as cmm_snapshot_end) AS EvaluationDate,
cast ( source.ComparativeEvaluationDate as cmm_snapshot_start) AS ComparativeEvaluationDate,
source.MarketDCS AS MarketDCS,
source.MktMarketIdentifierCode AS MktMarketIdentifierCode,
source.ComparMktDrvtvContrCode AS MktDrvtvContrMaturityCode,
source.ComparMktMaturityKeyDate AS MktMaturityKeyDate,
source.ComparMarketBasisType AS MarketBasisType,
source.MarketBasisID AS MarketBasisID,
source.ComparMktQuotationPriceType AS MktQuotationPriceType,
cast (source.HasError as cmm_error_occured preserving type) AS HasError,
cast (source.SystemMessageNumber as cds_systemmessagenumber) AS SystemMessageNumber,
source.PricingDocumentItem AS PricingDocumentItem,
source.MTMDataSourceType AS MTMDataSourceType,
source.ValidityStartDate AS ValidityStartDate,
source.ValidityStartDateTime AS ValidityStartDateTime,
source.ValidityEndDate AS ValidityEndDate,
source.ValidityEndDateTime AS ValidityEndDateTime,
source.SourceTransactionEventDateTime AS SourceTransactionEventDateTime,
source.SourceTransacEventEndDateTime AS SourceTransacEventEndDateTime,
source.EndOfDayBusinessEntityKey AS EndOfDayBusinessEntityKey,
source.CompanyCode AS CompanyCode,
_CompanyCode.ControllingArea AS ControllingArea,
source.SalesOrganization AS SalesOrganization,
source.DistributionChannel AS DistributionChannel,
source.Division AS Division,
source.Creditor AS Creditor,
source.SoldToParty AS SoldToParty,
source.Material AS Material,
source.PhysicalCommodity AS Commodity,
source.Plant AS Plant,
source.StorageLocation AS StorageLocation,
source.Batch AS Batch,
source.IncotermsClassification AS IncotermsClassification,
source.IncotermsTransferLocation AS IncotermsTransferLocation,
source.ConditionApplication AS ConditionApplication,
source.SourceDocumentShortNumber AS SourceDocumentShortNumber,
source.SourceDocument AS SourceDocument,
source.SourceDocumentBusObjType AS SourceDocumentBusObjType,
source.OrignRefDocumentShortNumber AS OrignRefDocumentShortNumber,
source.OriginReferenceDocument AS OriginReferenceDocument,
cast (source.OriginReferenceDocumentItem as cds_origin_document_item preserving type) AS OriginReferenceDocumentItem,
source.OriginReferenceDocBusObjType AS OriginReferenceDocBusObjType,
source.ReferenceDocument AS ReferenceDocument,
cast (source.ReferenceDocumentItem as cds_ref_document_item preserving type) AS ReferenceDocumentItem,
source.ReferenceDocBusObjType AS ReferenceDocBusObjType,
source.DeliveryDate AS DeliveryDate,
source.ExpectedPaymentDate AS ExpectedPaymentDate,
source.StatisticsCurrency AS StatisticsCurrency,
source.DocumentCurrency AS DocumentCurrency,
source.ProfitCenter AS ProfitCenter,
source.BusinessArea AS BusinessArea,
source.PurchasingOrganization AS PurchasingOrganization,
source.MaterialGroup AS MaterialGroup,
source.IsIntercompanyTransfer AS IsIntercompanyTransfer,
source.ConditionCalculationType AS ConditionCalculationType,
source.ConditionRate AS ConditionRate,
source.ConditionCurrency AS ConditionCurrency,
source.ConditionQuantity AS ConditionQuantity,
source.ConditionQuantityUnit AS ConditionQuantityUnit,
source.ContractConditionTermRate AS ContractConditionTermRate,
source.ContrConditionTermRateCurrency AS ContrConditionTermRateCurrency,
source.ComparContrCndnTermRate AS ComparContrCndnTermRate,
source.ComparContrCndnTrmRateCurrency AS ComparContrCndnTrmRateCurrency,
source.CalcRelContrConditionTermRate AS CalcRelContrConditionTermRate,
source.CalcRlvtContrCndnTrmRateCrcy AS CalcRlvtContrCndnTrmRateCrcy,
source.CalcRelComparContrCndnTermRate AS CalcRelComparContrCndnTermRate,
source.CalcRlvtComparCndnTrmRateCrcy AS CalcRlvtComparCndnTrmRateCrcy,
cast (cast (source.ConditionTermRate as abap.dec(31,8)) as cds_market_termrate ) AS ConditionTermRate,
cast (cast (source.MarketConditionTermRate as abap.dec(31,8)) as cds_market_termrate ) AS MarketConditionTermRate,
source.ConditionTermRateCurrency AS ConditionTermRateCurrency,
source.ConditionTermRateQuantity AS ConditionTermRateQuantity,
source.ConditionTermRateQuantityUnit AS ConditionTermRateQuantityUnit,
source.MarketPriceQuantityUnit AS MarketPriceQuantityUnit,
source.ConditionTermValue AS ConditionTermValue,
source.ConditionTermValueCurrency AS ConditionTermValueCurrency,
source.ConditionTermName AS ConditionTermName,
source.ConditionTermStatus AS ConditionTermStatus,
source.RoundingDecimalPlaces AS RoundingDecimalPlaces,
source.ConditionTermRateIsRounded AS ConditionTermRateIsRounded,
source.ConditionTermRateNmrtr AS ConditionTermRateNmrtr,
source.ConditionTermRateDnmntr AS ConditionTermRateDnmntr,
source.ConditionTermFactor AS ConditionTermFactor,
source.ComparConditionTermFactor AS ComparConditionTermFactor,
source.ConditionTermExtensionUsage AS ConditionTermExtensionUsage,
source.MaturitySelectionType AS MaturitySelectionType,
source.ExchRateMaturityDate AS ExchRateMaturityDate,
source.FixedExchRateDate AS FixedExchRateDate,
source.QuotationPeriodReferenceDate AS QuotationPeriodReferenceDate,
source.QuotationKeyType AS QuotationKeyType,
source.QuotationDateList AS QuotationDateList,
source.QuotationPeriodStartDate AS QuotationPeriodStartDate,
source.QuotationPeriodEndDate AS QuotationPeriodEndDate,
0 AS ComparMktDocToStstcExchRate,
0 AS ComparMktMarketToDocExchRate,
source.ContractDCS AS ContractDCS,
source.ContractMarketIdentifierCode AS ContractMarketIdentifierCode,
source.ContrDrvtvContrMaturityCode AS ContrDrvtvContrMaturityCode,
source.ContractMaturityKeyDate AS ContractMaturityKeyDate,
source.ContractBasisType AS ContractBasisType,
source.ContractBasisID AS ContractBasisID,
source.ContractQuotationPriceType AS ContractQuotationPriceType,
source.QuotationGroup AS QuotationGroup,
source.QuotationGroupCalculationRule AS QuotationGroupCalculationRule,
source.ConditionTermRateFixation AS ConditionTermRateFixation,
source.PricingStatus AS PricingStatus,
source.CndnTermRateFixationDate AS CndnTermRateFixationDate,
source.CndnTermRateFixationTime AS CndnTermRateFixationTime,
source.CndnTermExchRateFixationDate AS CndnTermExchRateFixationDate,
source.CndnTermExchRateFixationTime AS CndnTermExchRateFixationTime,
source.CommodityQuantity AS CommodityQuantity,
source.CommodityUnit AS CommodityUnit,
source.QuantitySign AS QuantitySign,
source.MTMConditionGroupCategory AS MTMConditionGroupCategory,
source.MTMConditionGroup AS MTMConditionGroup,
source.MTMCalculationGroup AS MTMCalculationGroup,
source.MTMAdjustmentType AS MTMAdjustmentType,
source.MTMCalcGrpMarketPriceCondition AS MTMCalcGrpMarketPriceCondition,
source.ConditionTermRateIsFixed AS ConditionTermRateIsFixed,
source.ConditionTermExchRateIsFixed AS ConditionTermExchRateIsFixed,
source.PriceIsRealized AS PriceIsRealized,
cast ( source.PNLEventGroup as cmm_event_group ) AS PnLEventGroup,
pnleventtype.PnLEventCategory AS PnLEventCategory,
source.PnLElementaryEventType AS PnLElementaryEventType,
source.PnLEventType AS PnLEventType,
source.CmmdtyPriceExpsrMassUnit AS CmmdtyPriceExpsrMassUnit,
source.CmmdtyPriceExpsrQtyInMassUnit AS CmmdtyPriceExpsrQtyInMassUnit,
source.CmmdtyPriceExpsrVolumeUnit AS CmmdtyPriceExpsrVolumeUnit,
source.CmmdtyPriceExpsrQtyInVolUnit AS CmmdtyPriceExpsrQtyInVolUnit,
source.MarketToTermExchangeRateType AS MarketToTermExchangeRateType,
source.CndnToStstcExchangeRateType AS CndnToStstcExchangeRateType,
source.ConditionToDocExchangeRateType AS ConditionToDocExchangeRateType,
source.DocToStstcExchangeRateType AS DocToStstcExchangeRateType,
source.PriceSettingMethod AS PriceSettingMethod,
source.PriceSettingMethodStatus AS PriceSettingMethodStatus,
source.ValidToDateTime AS ValidToDateTime,
source.PricingProcedure AS PricingProcedure,
source.PricingConditionTerm AS PricingConditionTerm,
source.CmmdtyRootDocExternalNumber AS CmmdtyRootDocExternalNumber,
source.CmmdtyDocumentExternalNumber AS CmmdtyDocumentExternalNumber
FROM P_CMMDTYNEWACTPNLVALUE_SUM_2
LEFT OUTER JOIN I_PnLEventType AS _PnLEventType ON PnLEventType = _PnLEventType.PnLEventType -- association [1..1]
LEFT OUTER JOIN I_PnLEventGroup AS _PnLEventGroup ON PnLEventGroup = _PnLEventGroup.PnLEventGroup -- association [1..1]
LEFT OUTER JOIN I_PnLEventCategory AS _PnLEventCategory ON PnLEventCategory = _PnLEventCategory.PnLEventCategory -- association [1..1]
LEFT OUTER JOIN I_PnLEventType AS _PnLElementaryEventType ON PnLElementaryEventType = _PnLElementaryEventType.PnLEventType -- association [1..1]
LEFT OUTER JOIN I_CmmdtyMtmMessage AS _CmmdtyMTMMessage ON SystemMessageNumber = _CmmdtyMTMMessage.SystemMessageNumber -- association [0..*]
LEFT OUTER JOIN I_UnitOfMeasure AS _ConditionTermRateQuantityUnit ON ConditionTermRateQuantityUnit = _ConditionTermRateQuantityUnit.UnitOfMeasure -- association [0..1]
LEFT OUTER JOIN I_UnitOfMeasure AS _MktCndnTermRateQuantityUnit ON MarketPriceQuantityUnit = _MktCndnTermRateQuantityUnit.UnitOfMeasure -- association [0..1]
LEFT OUTER JOIN I_Currency AS _StatisticsCurrency ON StatisticsCurrency = _StatisticsCurrency.Currency -- association [0..1]
LEFT OUTER JOIN I_Currency AS _DocumentCurrency ON DocumentCurrency = _DocumentCurrency.Currency -- association [0..1]
LEFT OUTER JOIN I_Currency AS _ConditionTermRateCurrency ON ConditionTermRateCurrency = _ConditionTermRateCurrency.Currency -- association [0..1]
LEFT OUTER JOIN I_Currency AS _ContrCndnTermRateCurrency ON ContrConditionTermRateCurrency = _ContrCndnTermRateCurrency.Currency -- association [0..1]
LEFT OUTER JOIN I_Currency AS _SpreadCurrency ON SpreadCurrency = _SpreadCurrency.Currency -- association [0..1]
LEFT OUTER JOIN I_UnitOfMeasure AS _CommodityUnit ON CommodityUnit = _CommodityUnit.UnitOfMeasure -- association [0..1]
LEFT OUTER JOIN I_MtmDataSourceType AS _MTMDataSourceType ON MTMDataSourceType = _MTMDataSourceType.MTMDataSourceType -- association [0..1]
LEFT OUTER JOIN I_MtmConditionGroup AS _MTMConditionGroup ON MTMConditionGroup = _MTMConditionGroup.MTMConditionGroup -- association [0..1]
LEFT OUTER JOIN I_Mtmconditiongroupcategory AS _MTMConditionGroupCategory ON MTMConditionGroupCategory = _MTMConditionGroupCategory.MTMConditionGroupCategory -- association [0..1]
LEFT OUTER JOIN I_MtmAdjustmentType AS _MTMAdjustmentType ON MTMAdjustmentType = _MTMAdjustmentType.MTMAdjustmentType -- association [0..1]
LEFT OUTER JOIN I_MtmCalculationGroup AS _MTMCalculationGroup ON MTMCalculationGroup = _MTMCalculationGroup.MTMCalculationGroup -- association [0..1]
LEFT OUTER JOIN I_Cmmdty AS _Commodity ON Commodity = _Commodity.Commodity -- association [0..1]
LEFT OUTER JOIN I_BasisID AS _BasisID ON MarketBasisID = _BasisID.BasisID -- association [0..1]
LEFT OUTER JOIN I_BusinessObjType AS _SourceDocumentBusObjType ON SourceDocumentBusObjType = _SourceDocumentBusObjType.BusinessObjectType -- association [0..1]
LEFT OUTER JOIN I_BusinessObjType AS _ReferenceDocBusObjType ON ReferenceDocBusObjType = _ReferenceDocBusObjType.BusinessObjectType -- association [0..1]
LEFT OUTER JOIN I_BusinessObjType AS _OriginReferenceDocBusObjType ON OriginReferenceDocBusObjType = _OriginReferenceDocBusObjType.BusinessObjectType -- association [0..1]
LEFT OUTER JOIN I_PricingStatus AS _PricingStatus ON PricingStatus = _PricingStatus.PricingStatus -- association [0..1]
LEFT OUTER JOIN I_Supplier AS _Creditor ON Creditor = _Creditor.Supplier -- association [0..1]
LEFT OUTER JOIN I_Customer AS _SoldToParty ON SoldToParty = _SoldToParty.Customer -- association [0..1]
LEFT OUTER JOIN I_Plant AS _Plant ON Plant = _Plant.Plant -- association [0..1]
LEFT OUTER JOIN I_StorageLocation AS _StorageLocation ON Plant = _StorageLocation.Plant AND StorageLocation = _StorageLocation.StorageLocation -- association [0..1]
LEFT OUTER JOIN I_CompanyCode AS _CompanyCode ON CompanyCode = _CompanyCode.CompanyCode -- association [0..1]
LEFT OUTER JOIN I_Material AS _Material ON Material = _Material.Material -- association [0..1]
LEFT OUTER JOIN I_DerivativeContrSpec AS _MarketDCS ON MarketDCS = _MarketDCS.DerivativeContrSpecification -- association [0..1]
LEFT OUTER JOIN I_MarketIdentCode AS _MktMarketIdentifierCode ON MktMarketIdentifierCode = _MktMarketIdentifierCode.MarketIdentifierCode -- association [0..1]
LEFT OUTER JOIN I_IncotermsClassification AS _IncotermsClassification ON IncotermsClassification = _IncotermsClassification.IncotermsClassification -- association [0..1]
LEFT OUTER JOIN I_DerivativeContrSpec AS _ContractDCS ON ContractDCS = _ContractDCS.DerivativeContrSpecification -- association [0..1]
LEFT OUTER JOIN I_MarketIdentCode AS _ContractMarketIdentifierCode ON ContractMarketIdentifierCode = _ContractMarketIdentifierCode.MarketIdentifierCode -- association [0..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