P_Cmmdtynapnlvalue
Commodity PnL Value New activity
P_Cmmdtynapnlvalue is a Basic CDS View that provides data about "Commodity PnL Value New activity" in SAP S/4HANA. It reads from 1 data source (P_CmmdtyNewActPnLValue_Sum) and exposes 192 fields with key fields PricingKey, Version, SourceDocumentItem, ConditionType, SubConditionType. It has 33 associations to related views. Part of development package LOG_CMM_TPL.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| P_CmmdtyNewActPnLValue_Sum | P_CmmdtyNewActPnLValue_Sum | from |
Parameters (4)
| Name | Type | Default |
|---|---|---|
| P_EvaluationDate | cmm_eval_keydate | |
| P_ExchRateEvaluationDate | cmm_eval_keydate | |
| P_EndOfDaySnapshotFromDate | cmm_dend_cutdate | |
| P_EndOfDaySnapshotToDate | cmm_dend_cutdate |
Associations (33)
| 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_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_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 (4)
| Name | Value | Level | Field |
|---|---|---|---|
| VDM.private | true | view | |
| VDM.viewType | #BASIC | view | |
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| AbapCatalog.sqlViewName | PCMMNAPNLVALUE | view |
Fields (192)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | PricingKey | source | PricingKey | Pricing Key |
| KEY | Version | source | Version | XML Vers. |
| KEY | SourceDocumentItem | source | SourceDocumentItem | |
| KEY | ConditionType | source | ConditionType | Condition type |
| KEY | SubConditionType | source | SubConditionType | |
| ContractConditionType | source | ContractConditionType | ||
| VersStockRecordUUID | ||||
| OverviewPnLValue | ||||
| PnLValue | ||||
| MktPricePnLValue | ||||
| ComparMktConditionTermRate | ||||
| ContrSpreadCndnTermRate | source | ContrSpreadCndnTermRate | ||
| ComparContrSpreadCndnTermRate | ||||
| FixedMktSpreadCndnTermRate | source | FixedMktSpreadCndnTermRate | ||
| FloatingMktSpreadCndnTermRate | source | FloatingMktSpreadCndnTermRate | ||
| SpreadCurrency | source | SpreadCurrency | ||
| MktMarketToDocExchRate | ||||
| MktMarketToStstcExchRate | ||||
| ContractMktToDocExchRate | source | ContractMktToDocExchRate | ||
| ComparContrMktToDocExchRate | source | ComparContrMktToDocExchRate | ||
| ContrDocToStstcExchRate | source | ContrDocToStstcExchRate | ||
| ComparContrDocToStstcExchRate | source | ComparContrDocToStstcExchRate | ||
| ComparCmmdtyQuantityInTermUnit | ||||
| PnLCalculationRelevantQuantity | source | PnLCalculationRelevantQuantity | ||
| PnLCalcRelevantMarketQuantity | ||||
| ComparMktMarketToStstcExchRate | ||||
| EvaluationDate | ||||
| ComparativeEvaluationDate | ||||
| MarketDCS | source | ComparativeMarketDCS | ||
| _MarketDCS | _MarketDCS | |||
| MktMarketIdentifierCode | source | ComparMktMarketIdentifierCode | ||
| _MktMarketIdentifierCode | _MktMarketIdentifierCode | |||
| MktDrvtvContrMaturityCode | source | ComparMktDrvtvContrCode | ||
| MktMaturityKeyDate | source | ComparMktMaturityKeyDate | ||
| MarketBasisType | source | ComparMarketBasisType | ||
| MarketBasisID | source | ComparMarketBasisID | ||
| 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 | |||
| 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 | |
| SourceDocument | source | SourceDocument | Document | |
| SourceDocumentBusObjType | source | SourceDocumentBusObjType | ||
| _SourceDocumentBusObjType | _SourceDocumentBusObjType | |||
| 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 | ||||
| CalcRlvtContrCndnTrmRateCrcy | source | CalcRlvtContrCndnTrmRateCrcy | ||
| CalcRelComparContrCndnTermRate | source | CalcRelComparContrCndnTermRate | ||
| CalcRlvtComparCndnTrmRateCrcy | source | CalcRlvtComparCndnTrmRateCrcy | ||
| MarketConditionTermRate | ||||
| ConditionTermRateCurrency | source | ConditionTermRateCurrency | ||
| ConditionTermRateQuantity | source | ConditionTermRateQuantity | ||
| ConditionTermRateQuantityUnit | source | ConditionTermRateQuantityUnit | ||
| MarketPriceQuantityUnit | source | MarketPriceQuantityUnit | ||
| 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 | |||
| n_2402519_StatisticsCurrency | ||||
| _DocumentCurrency | _DocumentCurrency | |||
| _ConditionTermRateCurrency | _ConditionTermRateCurrency | |||
| _ContrCndnTermRateCurrency | _ContrCndnTermRateCurrency | |||
| _SpreadCurrency | _SpreadCurrency | |||
| n_2416345_CommodityUnit | ||||
| _BasisID | _BasisID | |||
| _PricingStatus | _PricingStatus | |||
| CmmdtyPriceExpsrMassUnit | source | CmmdtyPriceExpsrMassUnit | ||
| CmmdtyPriceExpsrQtyInMassUnit | source | CmmdtyPriceExpsrQtyInMassUnit | ||
| CmmdtyPriceExpsrVolumeUnit | source | CmmdtyPriceExpsrVolumeUnit | ||
| CmmdtyPriceExpsrQtyInVolUnit | source | CmmdtyPriceExpsrQtyInVolUnit | ||
| 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.
-- 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: PCMMNAPNLVALUE
-- Parameters: P_EvaluationDate : cmm_eval_keydate, P_ExchRateEvaluationDate : cmm_eval_keydate, P_EndOfDaySnapshotFromDate : cmm_dend_cutdate, P_EndOfDaySnapshotToDate : cmm_dend_cutdate
CREATE VIEW P_Cmmdtynapnlvalue AS
SELECT
source.PricingKey AS PricingKey,
source.Version AS Version,
source.SourceDocumentItem AS SourceDocumentItem,
source.ConditionType AS ConditionType,
source.SubConditionType AS SubConditionType,
source.ContractConditionType AS ContractConditionType,
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 (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.MktMarketToDocExchRate as cds_mkt_mark_to_doc_exchrate) AS MktMarketToDocExchRate,
cast (source.MktMarketToStstcExchRate as cds_mkt_mkt_to_stat_exchrate) AS MktMarketToStstcExchRate,
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,
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.ComparativeMarketDCS AS MarketDCS,
source.ComparMktMarketIdentifierCode AS MktMarketIdentifierCode,
source.ComparMktDrvtvContrCode AS MktDrvtvContrMaturityCode,
source.ComparMktMaturityKeyDate AS MktMaturityKeyDate,
source.ComparMarketBasisType AS MarketBasisType,
source.ComparMarketBasisID AS MarketBasisID,
source.ComparMktQuotationPriceType AS MktQuotationPriceType,
cast (source.HasError as cmm_error_occured) 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,
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.SourceDocument AS SourceDocument,
source.SourceDocumentBusObjType AS SourceDocumentBusObjType,
source.OriginReferenceDocument AS OriginReferenceDocument,
cast (source.OriginReferenceDocumentItem as cds_origin_document_item) AS OriginReferenceDocumentItem,
source.OriginReferenceDocBusObjType AS OriginReferenceDocBusObjType,
source.ReferenceDocument AS ReferenceDocument,
cast (source.ReferenceDocumentItem as cds_ref_document_item) 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.CalcRlvtContrCndnTrmRateCrcy AS CalcRlvtContrCndnTrmRateCrcy,
source.CalcRelComparContrCndnTermRate AS CalcRelComparContrCndnTermRate,
source.CalcRlvtComparCndnTrmRateCrcy AS CalcRlvtComparCndnTrmRateCrcy,
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.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.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
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_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_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