Deprecated
This CDS view is deprecated in S/4HANA. View all deprecated CDS views →

P_Cpe_T_Value_Rounded

DDL: P_CPE_T_VALUE_ROUNDED SQL: PCPETVALUEROUND Type: view COMPOSITE Package: LOG_CMM_RUNTIME_VALUATION_DEP

Rounded Term Value in Document Currency

P_Cpe_T_Value_Rounded is a Composite CDS View that provides data about "Rounded Term Value in Document Currency" in SAP S/4HANA. It reads from 1 data source (P_Cpe_T_Value) and exposes 127 fields with key fields PricingKey, Version, PricingDocumentItem, ConditionType, SubConditionType. Part of development package LOG_CMM_RUNTIME_VALUATION_DEP.

Data Sources (1)

SourceAliasJoin Type
P_Cpe_T_Value P_Cpe_T_Value from

Parameters (6)

NameTypeDefault
P_consumption_type cmm_vlogp_consumptiontype
P_valuation_date0 cmm_eval_keydate
P_valuation_date1 cmm_eval_keydate
P_FX_valuation_date cmm_eval_keydate
P_snapshot_date0 cmm_dend_cutdate
P_snapshot_date1 cmm_dend_cutdate

Annotations (7)

NameValueLevelField
AbapCatalog.sqlViewName PCPETVALUEROUND view
AbapCatalog.compiler.compareFilter true view
ClientHandling.algorithm #SESSION_VARIABLE view
AccessControl.authorizationCheck #NOT_REQUIRED view
VDM.viewType #COMPOSITE view
VDM.private true view
VDM.lifecycle.status #DEPRECATED view

Fields (127)

KeyFieldSource TableSource FieldDescription
KEY PricingKey termvalue PricingKey Pricing Key
KEY Version termvalue Version XML Vers.
KEY PricingDocumentItem termvalue PricingDocumentItem Item
KEY ConditionType termvalue ConditionType Condition type
KEY SubConditionType termvalue SubConditionType
KEY VersStockRecordUUID termvalue VersStockRecordUUID
KEY valuationDate termvalue valuationDate Valuation Date
KEY FXvaluationDate termvalue FXvaluationDate
KEY FXvaluationDateDocToStstc termvalue FXvaluationDateDocToStstc
KEY Scenario termvalue Scenario VAT Scenario
SnapshotDate0 termvalue SnapshotDate0
SnapshotDate1 termvalue SnapshotDate1
DataSelectionType termvalue DataSelectionType
MTMDataSourceType termvalue MTMDataSourceType Type of Data Record
ValidityStartDate termvalue ValidityStartDate Validity Start Date
ValidityStartDateTime termvalue ValidityStartDateTime Valid From Timestamp
ValidityEndDate termvalue ValidityEndDate ValidTo
ValidityEndDateTime termvalue ValidityEndDateTime Valid To Timestamp
SourceTransactionEventDateTime termvalue SourceTransactionEventDateTime
SourceTransacEventEndDateTime termvalue SourceTransacEventEndDateTime
EndOfDayTimestampFrom termvalue EndOfDayTimestampFrom
EndOfDayTimestampTo termvalue EndOfDayTimestampTo
EndOfDaySnapshotDate termvalue EndOfDaySnapshotDate
EndOfDayBusinessEntityKey termvalue EndOfDayBusinessEntityKey
MaximumVersion termvalue MaximumVersion Highest Version
PreviousVersion termvalue PreviousVersion
PreviousSubConditionType termvalue PreviousSubConditionType
CompanyCode
SalesOrganization termvalue SalesOrganization Sales Organization
DistributionChannel termvalue DistributionChannel RefDistCh-Cust/Mat.
Division termvalue Division Internal Division ID
Creditor termvalue Creditor Supplier
SoldToParty termvalue SoldToParty Sold-to Party
Material termvalue Material Vehicle Model
PhysicalCommodity termvalue PhysicalCommodity
Plant termvalue Plant Valuation Area
StorageLocation termvalue StorageLocation StorageLocation
Batch termvalue Batch Lot No.
GoodsMovementType termvalue GoodsMovementType Movement Type
IncotermsClassification
IncotermsTransferLocation termvalue IncotermsTransferLocation Incoterms 2
ConditionApplication termvalue ConditionApplication Application
SourceDocument termvalue SourceDocument Document
SourceDocumentItem termvalue SourceDocumentItem
SourceDocumentBusObjType termvalue SourceDocumentBusObjType
OriginReferenceDocument termvalue OriginReferenceDocument Root Document
OriginReferenceDocumentItem termvalue OriginReferenceDocumentItem Root Document Item
OriginReferenceDocBusObjType termvalue OriginReferenceDocBusObjType Root (BOR) Obj. Type
ReferenceDocument termvalue ReferenceDocument Reference Document
ReferenceDocumentItem termvalue ReferenceDocumentItem Reference item
ReferenceDocBusObjType termvalue ReferenceDocBusObjType Pred(BOR) Object Typ
DeliveryDate termvalue DeliveryDate Delivery Date
ExpectedPaymentDate termvalue ExpectedPaymentDate
StatisticsCurrency termvalue StatisticsCurrency
DocumentCurrency termvalue DocumentCurrency Document Currency
ProfitCenter termvalue ProfitCenter Profit Center
BusinessArea termvalue BusinessArea Business Area
PurchasingOrganization termvalue PurchasingOrganization Purchasing Organization
MaterialGroup termvalue MaterialGroup Product Group
IsIntercompanyTransfer termvalue IsIntercompanyTransfer
ConditionCalculationType
ConditionTermRate
OldConditionTermrate termvalue OldConditionTermrate
MarketToDocExchrate termvalue MarketToDocExchrate
MarketToDocFrozenExchrate termvalue MarketToDocFrozenExchrate
MarketToDocExchrateDate termvalue MarketToDocExchrateDate
ConditionTermRateCurrency termvalue ConditionTermRateCurrency
ConditionTermRateQuantity termvalue ConditionTermRateQuantity
ConditionTermRateQuantityUnit termvalue ConditionTermRateQuantityUnit
dec2411endasConditionTermValue
OldConditionTermValue termvalue OldConditionTermValue
ConditionTermValueInMarketCurr termvalue ConditionTermValueInMarketCurr
ConditionTermValueCurrency
ConditionTermName termvalue ConditionTermName
ConditionTermStatus termvalue ConditionTermStatus
PricingStatus termvalue PricingStatus
ConditionTermRateFixation termvalue ConditionTermRateFixation
RoundingDecimalPlaces termvalue RoundingDecimalPlaces
ConditionTermRateIsRounded termvalue ConditionTermRateIsRounded
ConditionTermExtensionUsage termvalue ConditionTermExtensionUsage
QuotationPeriodReferenceDate termvalue QuotationPeriodReferenceDate
CndnTermRateFixationDate termvalue CndnTermRateFixationDate
CndnTermRateFixationTime termvalue CndnTermRateFixationTime
CndnTermExchRateFixationDate termvalue CndnTermExchRateFixationDate
CndnTermExchRateFixationTime termvalue CndnTermExchRateFixationTime
FixedExchRateDate termvalue FixedExchRateDate
ExchRateMaturityDate termvalue ExchRateMaturityDate
BsMktRefDrvtvContrMaturityCode termvalue BsMktRefDrvtvContrMaturityCode
BasisMarketRefRate termvalue BasisMarketRefRate
BasisMarketRefRateCurrency termvalue BasisMarketRefRateCurrency
BasisMarketRefKeyDate termvalue BasisMarketRefKeyDate
BasisMarketRefAdjustmentSpread termvalue BasisMarketRefAdjustmentSpread
QuotationKeyType
QuotationPeriodStartDate termvalue QuotationPeriodStartDate
QuotationPeriodEndDate termvalue QuotationPeriodEndDate
BasisID termvalue BasisID Basis ID
BasisType termvalue BasisType Basis Type
DerivativeContrSpecification termvalue DerivativeContrSpecification DCS ID
MarketIdentifierCode termvalue MarketIdentifierCode MIC
MaturityKeyDate termvalue MaturityKeyDate Maturity Key Date
CommodityContractMaturityCode termvalue CommodityContractMaturityCode
QuotationPriceType termvalue QuotationPriceType Price Type
QuotationCurrency termvalue QuotationCurrency
QuotationQuantityUnit termvalue QuotationQuantityUnit
QuotationGroup termvalue QuotationGroup
OldestQuotationDate termvalue OldestQuotationDate
SystemMessageNumber termvalue SystemMessageNumber Message Number
CommodityQuantity
CommodityQuantityInBaseUnit termvalue CommodityQuantityInBaseUnit
CommodityQuantityInTermUnit termvalue CommodityQuantityInTermUnit
CommodityUnit
MaterialBaseUnit termvalue MaterialBaseUnit Valuation Unit
QuantitySign termvalue QuantitySign Sign of Quantity
ValueSign termvalue ValueSign
MTMConditionGroupCategory termvalue MTMConditionGroupCategory
MTMConditionGroup termvalue MTMConditionGroup
MTMCalculationGroup termvalue MTMCalculationGroup
MTMAdjustmentType termvalue MTMAdjustmentType
MTMCalcGrpMarketPriceCondition termvalue MTMCalcGrpMarketPriceCondition
ConditionTermRateIsFixed termvalue ConditionTermRateIsFixed
ConditionTermExchRateIsFixed termvalue ConditionTermExchRateIsFixed
PnLDataType
PrevVersionCommodityQuantity termvalue PrevVersionCommodityQuantity
PreviousVersionQuantitySign termvalue PreviousVersionQuantitySign
PrevVersCndnTermRateCurrency termvalue PrevVersCndnTermRateCurrency
PrevVersionConditionTermValue termvalue PrevVersionConditionTermValue
CalcPrecisionTermValue

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_Cpe_T_Value_Rounded.
-- 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: PCPETVALUEROUND
-- Parameters: P_consumption_type : cmm_vlogp_consumptiontype, P_valuation_date0 : cmm_eval_keydate, P_valuation_date1 : cmm_eval_keydate, P_FX_valuation_date : cmm_eval_keydate, P_snapshot_date0 : cmm_dend_cutdate, P_snapshot_date1 : cmm_dend_cutdate

CREATE VIEW P_Cpe_T_Value_Rounded AS
SELECT
  termvalue.PricingKey AS PricingKey,
  termvalue.Version AS Version,
  termvalue.PricingDocumentItem AS PricingDocumentItem,
  termvalue.ConditionType AS ConditionType,
  termvalue.SubConditionType AS SubConditionType,
  termvalue.VersStockRecordUUID AS VersStockRecordUUID,
  termvalue.valuationDate AS valuationDate,
  termvalue.FXvaluationDate AS FXvaluationDate,
  termvalue.FXvaluationDateDocToStstc AS FXvaluationDateDocToStstc,
  termvalue.Scenario AS Scenario,
  termvalue.SnapshotDate0 AS SnapshotDate0,
  termvalue.SnapshotDate1 AS SnapshotDate1,
  termvalue.DataSelectionType AS DataSelectionType,
  termvalue.MTMDataSourceType AS MTMDataSourceType,
  termvalue.ValidityStartDate AS ValidityStartDate,
  termvalue.ValidityStartDateTime AS ValidityStartDateTime,
  termvalue.ValidityEndDate AS ValidityEndDate,
  termvalue.ValidityEndDateTime AS ValidityEndDateTime,
  termvalue.SourceTransactionEventDateTime AS SourceTransactionEventDateTime,
  termvalue.SourceTransacEventEndDateTime AS SourceTransacEventEndDateTime,
  termvalue.EndOfDayTimestampFrom AS EndOfDayTimestampFrom,
  termvalue.EndOfDayTimestampTo AS EndOfDayTimestampTo,
  termvalue.EndOfDaySnapshotDate AS EndOfDaySnapshotDate,
  termvalue.EndOfDayBusinessEntityKey AS EndOfDayBusinessEntityKey,
  termvalue.MaximumVersion AS MaximumVersion,
  termvalue.PreviousVersion AS PreviousVersion,
  termvalue.PreviousSubConditionType AS PreviousSubConditionType,
  termvalue.SalesOrganization AS SalesOrganization,
  termvalue.DistributionChannel AS DistributionChannel,
  termvalue.Division AS Division,
  termvalue.Creditor AS Creditor,
  termvalue.SoldToParty AS SoldToParty,
  termvalue.Material AS Material,
  termvalue.PhysicalCommodity AS PhysicalCommodity,
  termvalue.Plant AS Plant,
  termvalue.StorageLocation AS StorageLocation,
  termvalue.Batch AS Batch,
  termvalue.GoodsMovementType AS GoodsMovementType,
  termvalue.IncotermsTransferLocation AS IncotermsTransferLocation,
  termvalue.ConditionApplication AS ConditionApplication,
  termvalue.SourceDocument AS SourceDocument,
  termvalue.SourceDocumentItem AS SourceDocumentItem,
  termvalue.SourceDocumentBusObjType AS SourceDocumentBusObjType,
  termvalue.OriginReferenceDocument AS OriginReferenceDocument,
  termvalue.OriginReferenceDocumentItem AS OriginReferenceDocumentItem,
  termvalue.OriginReferenceDocBusObjType AS OriginReferenceDocBusObjType,
  termvalue.ReferenceDocument AS ReferenceDocument,
  termvalue.ReferenceDocumentItem AS ReferenceDocumentItem,
  termvalue.ReferenceDocBusObjType AS ReferenceDocBusObjType,
  termvalue.DeliveryDate AS DeliveryDate,
  termvalue.ExpectedPaymentDate AS ExpectedPaymentDate,
  termvalue.StatisticsCurrency AS StatisticsCurrency,
  termvalue.DocumentCurrency AS DocumentCurrency,
  termvalue.ProfitCenter AS ProfitCenter,
  termvalue.BusinessArea AS BusinessArea,
  termvalue.PurchasingOrganization AS PurchasingOrganization,
  termvalue.MaterialGroup AS MaterialGroup,
  termvalue.IsIntercompanyTransfer AS IsIntercompanyTransfer,
  termvalue.OldConditionTermrate AS OldConditionTermrate,
  termvalue.MarketToDocExchrate AS MarketToDocExchrate,
  termvalue.MarketToDocFrozenExchrate AS MarketToDocFrozenExchrate,
  termvalue.MarketToDocExchrateDate AS MarketToDocExchrateDate,
  termvalue.ConditionTermRateCurrency AS ConditionTermRateCurrency,
  termvalue.ConditionTermRateQuantity AS ConditionTermRateQuantity,
  termvalue.ConditionTermRateQuantityUnit AS ConditionTermRateQuantityUnit,
  case when termvalue.ConditionTermRateIsRounded = 'X' then cast(round(termvalue.ConditionTermValue, termvalue.RoundingDecimalPlaces) as abap.dec(24,11)) else cast (termvalue.ConditionTermValue as abap.dec(24,11)) end as ConditionTermValue AS dec2411endasConditionTermValue,
  termvalue.OldConditionTermValue AS OldConditionTermValue,
  termvalue.ConditionTermValueInMarketCurr AS ConditionTermValueInMarketCurr,
  termvalue.ConditionTermName AS ConditionTermName,
  termvalue.ConditionTermStatus AS ConditionTermStatus,
  termvalue.PricingStatus AS PricingStatus,
  termvalue.ConditionTermRateFixation AS ConditionTermRateFixation,
  termvalue.RoundingDecimalPlaces AS RoundingDecimalPlaces,
  termvalue.ConditionTermRateIsRounded AS ConditionTermRateIsRounded,
  termvalue.ConditionTermExtensionUsage AS ConditionTermExtensionUsage,
  termvalue.QuotationPeriodReferenceDate AS QuotationPeriodReferenceDate,
  termvalue.CndnTermRateFixationDate AS CndnTermRateFixationDate,
  termvalue.CndnTermRateFixationTime AS CndnTermRateFixationTime,
  termvalue.CndnTermExchRateFixationDate AS CndnTermExchRateFixationDate,
  termvalue.CndnTermExchRateFixationTime AS CndnTermExchRateFixationTime,
  termvalue.FixedExchRateDate AS FixedExchRateDate,
  termvalue.ExchRateMaturityDate AS ExchRateMaturityDate,
  termvalue.BsMktRefDrvtvContrMaturityCode AS BsMktRefDrvtvContrMaturityCode,
  termvalue.BasisMarketRefRate AS BasisMarketRefRate,
  termvalue.BasisMarketRefRateCurrency AS BasisMarketRefRateCurrency,
  termvalue.BasisMarketRefKeyDate AS BasisMarketRefKeyDate,
  termvalue.BasisMarketRefAdjustmentSpread AS BasisMarketRefAdjustmentSpread,
  termvalue.QuotationPeriodStartDate AS QuotationPeriodStartDate,
  termvalue.QuotationPeriodEndDate AS QuotationPeriodEndDate,
  termvalue.BasisID AS BasisID,
  termvalue.BasisType AS BasisType,
  termvalue.DerivativeContrSpecification AS DerivativeContrSpecification,
  termvalue.MarketIdentifierCode AS MarketIdentifierCode,
  termvalue.MaturityKeyDate AS MaturityKeyDate,
  termvalue.CommodityContractMaturityCode AS CommodityContractMaturityCode,
  termvalue.QuotationPriceType AS QuotationPriceType,
  termvalue.QuotationCurrency AS QuotationCurrency,
  termvalue.QuotationQuantityUnit AS QuotationQuantityUnit,
  termvalue.QuotationGroup AS QuotationGroup,
  termvalue.OldestQuotationDate AS OldestQuotationDate,
  termvalue.SystemMessageNumber AS SystemMessageNumber,
  termvalue.CommodityQuantityInBaseUnit AS CommodityQuantityInBaseUnit,
  termvalue.CommodityQuantityInTermUnit AS CommodityQuantityInTermUnit,
  termvalue.MaterialBaseUnit AS MaterialBaseUnit,
  termvalue.QuantitySign AS QuantitySign,
  termvalue.ValueSign AS ValueSign,
  termvalue.MTMConditionGroupCategory AS MTMConditionGroupCategory,
  termvalue.MTMConditionGroup AS MTMConditionGroup,
  termvalue.MTMCalculationGroup AS MTMCalculationGroup,
  termvalue.MTMAdjustmentType AS MTMAdjustmentType,
  termvalue.MTMCalcGrpMarketPriceCondition AS MTMCalcGrpMarketPriceCondition,
  termvalue.ConditionTermRateIsFixed AS ConditionTermRateIsFixed,
  termvalue.ConditionTermExchRateIsFixed AS ConditionTermExchRateIsFixed,
  termvalue.PrevVersionCommodityQuantity AS PrevVersionCommodityQuantity,
  termvalue.PreviousVersionQuantitySign AS PreviousVersionQuantitySign,
  termvalue.PrevVersCndnTermRateCurrency AS PrevVersCndnTermRateCurrency,
  termvalue.PrevVersionConditionTermValue AS PrevVersionConditionTermValue,
  termvalue.ConditionTermValue - termvalue.OldConditionTermValue AS CalcPrecisionTermValue
FROM P_Cpe_T_Value
;