P_Cmmdtynewactpnlvalue_Top

DDL: P_CMMDTYNEWACTPNLVALUE_TOP SQL: PCMMPNLNATOP Type: view BASIC Package: LOG_CMM_TPL

PnL New Activity - Toppled

P_Cmmdtynewactpnlvalue_Top is a Basic CDS View that provides data about "PnL New Activity - Toppled" in SAP S/4HANA. It reads from 1 data source (P_CmmdtyNewActPnLValue_Sum) and exposes 154 fields with key fields PricingKey, Version, PricingDocumentItem, ConditionType, SubConditionType. Part of development package LOG_CMM_TPL.

Data Sources (1)

SourceAliasJoin Type
P_CmmdtyNewActPnLValue_Sum P_CmmdtyNewActPnLValue_Sum from

Parameters (4)

NameTypeDefault
P_EvaluationDate cmm_eval_keydate
P_ExchRateEvaluationDate cmm_eval_keydate
P_EndOfDaySnapshotFromDate cmm_dend_cutdate
P_EndOfDaySnapshotToDate cmm_dend_cutdate

Annotations (8)

NameValueLevelField
VDM.private true view
VDM.viewType #BASIC view
AccessControl.authorizationCheck #NOT_REQUIRED view
AbapCatalog.sqlViewName PCMMPNLNATOP view
ObjectModel.usageType.serviceQuality #D view
ObjectModel.usageType.sizeCategory #L view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
ClientHandling.algorithm #SESSION_VARIABLE view

Fields (154)

KeyFieldSource TableSource FieldDescription
KEY PricingKey source PricingKey Pricing Key
KEY Version source Version XML Vers.
KEY PricingDocumentItem source PricingDocumentItem Item
KEY ConditionType source ConditionType Condition type
KEY SubConditionType source SubConditionType
PriceSetValue source PriceSetValue
PriceRemoveValue source PriceRemoveValue
PriceChangeValue source PriceChangeValue
DocumentToStstcFXSetValue source DocumentToStstcFXSetValue
DocumentToStstcFXRemoveValue source DocumentToStstcFXRemoveValue
DocumentToStstcFXChangeValue source DocumentToStstcFXChangeValue
MarketToStstcFXSetValue source MarketToStstcFXSetValue
MarketToStstcFXRemoveValue source MarketToStstcFXRemoveValue
MarketToStstcFXChangeValue source MarketToStstcFXChangeValue
PriceSetMktAdjmtValue source PriceSetMktAdjmtValue
PriceRemoveMktAdjmtValue source PriceRemoveMktAdjmtValue
PriceChangeMktAdjmtValue source PriceChangeMktAdjmtValue
FxSetMktAdjmtValue source FxSetMktAdjmtValue
FxRemoveMktAdjmtValue
FXChangeMktAdjmtValue source FXChangeMktAdjmtValue
PriceSetMarketSpreadValue
PriceRemoveMarketSpreadValue source PriceRemoveMarketSpreadValue
PriceSetDocumentSpreadValue source PriceSetDocumentSpreadValue
PriceRemoveDocumentSpreadValue source PriceRemoveDocumentSpreadValue
curr152ascmm_cds_pnl_valueasPnLValue
MarketConditionTermRate source MarketConditionTermRate
ContrSpreadCndnTermRate source ContrSpreadCndnTermRate
FloatingMktSpreadCndnTermRate source FloatingMktSpreadCndnTermRate
FixedMktSpreadCndnTermRate source FixedMktSpreadCndnTermRate
SpreadCurrency source SpreadCurrency
MktDocToStstcExchRate
MktMarketToDocExchRate source MktMarketToDocExchRate
ContrMarketToStstcExchRate source ContrMarketToStstcExchRate
MktMarketToStstcExchRate source MktMarketToStstcExchRate
ReduFixedMktSpreadCndnTermRate
PNLEventGroup
EvaluationDate
ComparativeEvaluationDate source ComparativeEvaluationDate
n_2402519endContractConditionType
ContractMktToDocExchRate
ComparContrMktToDocExchRate source ComparContrMktToDocExchRate
ContrDocToStstcExchRate source ContrDocToStstcExchRate
ComparContrDocToStstcExchRate source ComparContrDocToStstcExchRate
ContrCndnTrmRateIsFxd source ContrCndnTrmRateIsFxd
ComparativeCndnTrmRateIsFixed source ComparativeCndnTrmRateIsFixed
ContrTrmExchRateIsFxd source ContrTrmExchRateIsFxd
ComparCndnTrmExchrateIsFxd source ComparCndnTrmExchrateIsFxd
MTMDataSourceType source MTMDataSourceType Type of Data Record
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
SalesOrganization source SalesOrganization Sales Organization
DistributionChannel source DistributionChannel RefDistCh-Cust/Mat.
Division source Division Internal Division ID
Creditor source Creditor Supplier
SoldToParty source SoldToParty Sold-to Party
Material source Material Vehicle Model
PhysicalCommodity source PhysicalCommodity
Plant source Plant Valuation Area
StorageLocation source StorageLocation StorageLocation
Batch source Batch Lot No.
IncotermsClassification source IncotermsClassification Incoterms
IncotermsTransferLocation source IncotermsTransferLocation Incoterms 2
ConditionApplication source ConditionApplication Application
SourceDocument source SourceDocument Document
SourceDocumentItem source SourceDocumentItem
SourceDocumentBusObjType source SourceDocumentBusObjType
OriginReferenceDocument source OriginReferenceDocument Root Document
OriginReferenceDocumentItem source OriginReferenceDocumentItem Root Document Item
OriginReferenceDocBusObjType source OriginReferenceDocBusObjType Root (BOR) Obj. Type
ReferenceDocument source ReferenceDocument Reference Document
ReferenceDocumentItem source ReferenceDocumentItem Reference item
ReferenceDocBusObjType source ReferenceDocBusObjType Pred(BOR) Object Typ
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
QuotationPriceType source QuotationPriceType Price Type
ConditionTermRate source ConditionTermRate
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
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
ComparativeMarketDCS source ComparativeMarketDCS
ComparMktMarketIdentifierCode source ComparMktMarketIdentifierCode
ComparMktMaturityKeyDate source ComparMktMaturityKeyDate
ComparMktDrvtvContrCode source ComparMktDrvtvContrCode
ComparMarketBasisID source ComparMarketBasisID
ComparMarketBasisType source ComparMarketBasisType
ComparMktQuotationPriceType source ComparMktQuotationPriceType
ContractDCS source ContractDCS
ContractMarketIdentifierCode source ContractMarketIdentifierCode
ContractMaturityKeyDate source ContractMaturityKeyDate
ContrDrvtvContrMaturityCode source ContrDrvtvContrMaturityCode
ContractBasisID source ContractBasisID
ContractBasisType source ContractBasisType
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
MTMConditionGroup source MTMConditionGroup
MTMCalculationGroup source MTMCalculationGroup
MTMAdjustmentType source MTMAdjustmentType
MTMCalcGrpMarketPriceCondition source MTMCalcGrpMarketPriceCondition
ConditionTermRateIsFixed source ConditionTermRateIsFixed
ConditionTermExchRateIsFixed source ConditionTermExchRateIsFixed
PriceIsRealized source PriceIsRealized
VersStockRecordUUID source VersStockRecordUUID
PnLEventType source PnLEventType
PnLElementaryEventType source PnLElementaryEventType
MTMDataSourceGroup source MTMDataSourceGroup
HasError source HasError TRUE
SystemMessageNumber source SystemMessageNumber Message Number

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_Cmmdtynewactpnlvalue_Top.
-- 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: PCMMPNLNATOP
-- Parameters: P_EvaluationDate : cmm_eval_keydate, P_ExchRateEvaluationDate : cmm_eval_keydate, P_EndOfDaySnapshotFromDate : cmm_dend_cutdate, P_EndOfDaySnapshotToDate : cmm_dend_cutdate

CREATE VIEW P_Cmmdtynewactpnlvalue_Top AS
SELECT
  source.PricingKey AS PricingKey,
  source.Version AS Version,
  source.PricingDocumentItem AS PricingDocumentItem,
  source.ConditionType AS ConditionType,
  source.SubConditionType AS SubConditionType,
  source.PriceSetValue AS PriceSetValue,
  source.PriceRemoveValue AS PriceRemoveValue,
  source.PriceChangeValue AS PriceChangeValue,
  source.DocumentToStstcFXSetValue AS DocumentToStstcFXSetValue,
  source.DocumentToStstcFXRemoveValue AS DocumentToStstcFXRemoveValue,
  source.DocumentToStstcFXChangeValue AS DocumentToStstcFXChangeValue,
  source.MarketToStstcFXSetValue AS MarketToStstcFXSetValue,
  source.MarketToStstcFXRemoveValue AS MarketToStstcFXRemoveValue,
  source.MarketToStstcFXChangeValue AS MarketToStstcFXChangeValue,
  source.PriceSetMktAdjmtValue AS PriceSetMktAdjmtValue,
  source.PriceRemoveMktAdjmtValue AS PriceRemoveMktAdjmtValue,
  source.PriceChangeMktAdjmtValue AS PriceChangeMktAdjmtValue,
  source.FxSetMktAdjmtValue AS FxSetMktAdjmtValue,
  source.FXChangeMktAdjmtValue AS FXChangeMktAdjmtValue,
  source.PriceRemoveMarketSpreadValue AS PriceRemoveMarketSpreadValue,
  source.PriceSetDocumentSpreadValue AS PriceSetDocumentSpreadValue,
  source.PriceRemoveDocumentSpreadValue AS PriceRemoveDocumentSpreadValue,
  source.MarketConditionTermRate AS MarketConditionTermRate,
  source.ContrSpreadCndnTermRate AS ContrSpreadCndnTermRate,
  source.FloatingMktSpreadCndnTermRate AS FloatingMktSpreadCndnTermRate,
  source.FixedMktSpreadCndnTermRate AS FixedMktSpreadCndnTermRate,
  source.SpreadCurrency AS SpreadCurrency,
  source.MktMarketToDocExchRate AS MktMarketToDocExchRate,
  source.ContrMarketToStstcExchRate AS ContrMarketToStstcExchRate,
  source.MktMarketToStstcExchRate AS MktMarketToStstcExchRate,
  source.ComparativeEvaluationDate AS ComparativeEvaluationDate,
  source.ComparContrMktToDocExchRate AS ComparContrMktToDocExchRate,
  source.ContrDocToStstcExchRate AS ContrDocToStstcExchRate,
  source.ComparContrDocToStstcExchRate AS ComparContrDocToStstcExchRate,
  source.ContrCndnTrmRateIsFxd AS ContrCndnTrmRateIsFxd,
  source.ComparativeCndnTrmRateIsFixed AS ComparativeCndnTrmRateIsFixed,
  source.ContrTrmExchRateIsFxd AS ContrTrmExchRateIsFxd,
  source.ComparCndnTrmExchrateIsFxd AS ComparCndnTrmExchrateIsFxd,
  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 PhysicalCommodity,
  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.SourceDocumentItem AS SourceDocumentItem,
  source.SourceDocumentBusObjType AS SourceDocumentBusObjType,
  source.OriginReferenceDocument AS OriginReferenceDocument,
  source.OriginReferenceDocumentItem AS OriginReferenceDocumentItem,
  source.OriginReferenceDocBusObjType AS OriginReferenceDocBusObjType,
  source.ReferenceDocument AS ReferenceDocument,
  source.ReferenceDocumentItem 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.QuotationPriceType AS QuotationPriceType,
  source.ConditionTermRate AS ConditionTermRate,
  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.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,
  source.ComparativeMarketDCS AS ComparativeMarketDCS,
  source.ComparMktMarketIdentifierCode AS ComparMktMarketIdentifierCode,
  source.ComparMktMaturityKeyDate AS ComparMktMaturityKeyDate,
  source.ComparMktDrvtvContrCode AS ComparMktDrvtvContrCode,
  source.ComparMarketBasisID AS ComparMarketBasisID,
  source.ComparMarketBasisType AS ComparMarketBasisType,
  source.ComparMktQuotationPriceType AS ComparMktQuotationPriceType,
  source.ContractDCS AS ContractDCS,
  source.ContractMarketIdentifierCode AS ContractMarketIdentifierCode,
  source.ContractMaturityKeyDate AS ContractMaturityKeyDate,
  source.ContrDrvtvContrMaturityCode AS ContrDrvtvContrMaturityCode,
  source.ContractBasisID AS ContractBasisID,
  source.ContractBasisType AS ContractBasisType,
  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,
  source.VersStockRecordUUID AS VersStockRecordUUID,
  source.PnLEventType AS PnLEventType,
  source.PnLElementaryEventType AS PnLElementaryEventType,
  source.MTMDataSourceGroup AS MTMDataSourceGroup,
  source.HasError AS HasError,
  source.SystemMessageNumber AS SystemMessageNumber
FROM P_CmmdtyNewActPnLValue_Sum
;