P_CmmdtyPositionValueAtRiskDCS

DDL: P_CMMDTYPOSITIONVALUEATRISKDCS SQL: PCMMDTYVARDCS Type: view COMPOSITE

Uom for source and target quantities

P_CmmdtyPositionValueAtRiskDCS is a Composite CDS View that provides data about "Uom for source and target quantities" in SAP S/4HANA. It reads from 1 data source (P_UnionViewPhysFin) and exposes 201 fields with key fields CommodityTransactionType, PricingKey, Version, PricingDocumentItem, ConditionType.

Data Sources (1)

SourceAliasJoin Type
P_UnionViewPhysFin P_UnionViewPhysFin from

Parameters (6)

NameTypeDefault
P_DisplayUnitOfMeasure cds_view_uom
P_EndOfDaySnapshotFromDate cds_evaluation_date
P_EndOfDaySnapshotToDate cds_evaluation_date_comp
P_MTMDataSelectionType cmm_vlogp_consumptiontype
P_OptionDeltaMethod cds_option_delta_method
P_OptionDeltaThreshold cds_option_delta_threshold

Annotations (11)

NameValueLevelField
VDM.private true view
VDM.viewType #COMPOSITE view
AbapCatalog.preserveKey true view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #NOT_REQUIRED view
AbapCatalog.sqlViewName PCMMDTYVARDCS view
ObjectModel.usageType.serviceQuality #D view
ObjectModel.usageType.sizeCategory #L view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
ClientHandling.algorithm #SESSION_VARIABLE view
EndUserText.label Uom for source and target quantities view

Fields (201)

KeyFieldSource TableSource FieldDescription
KEY CommodityTransactionType posval CommodityTransactionType
KEY PricingKey posval PricingKey Pricing Key
KEY Version posval Version XML Vers.
KEY PricingDocumentItem posval PricingDocumentItem Item
KEY ConditionType posval ConditionType Condition type
KEY SubConditionType posval SubConditionType
KEY VersStockRecordUUID posval VersStockRecordUUID
KEY EvaluationDate posval EvaluationDate
KEY PriceQuotationDate posval PriceQuotationDate
KEY CompanyCode posval CompanyCode Receiver Company Code
KEY CommodityPriceExposure posval CommodityPriceExposure Exposure ID
KEY CommodityExposureCategory posval CommodityExposureCategory
KEY CommodityPriceSubExposure posval CommodityPriceSubExposure
EndOfDaySnapshotFromDate posval EndOfDaySnapshotFromDate
EndOfDaySnapshotToDate posval EndOfDaySnapshotToDate
MTMDataSourceType posval MTMDataSourceType Type of Data Record
EndOfDaySnapshotDateTimeFrom posval EndOfDaySnapshotDateTimeFrom
EndOfDaySnapshotDateTimeTo posval EndOfDaySnapshotDateTimeTo
MaximumVersion posval MaximumVersion Highest Version
PreviousVersion posval PreviousVersion
SalesOrganization posval SalesOrganization Sales Organization
DistributionChannel posval DistributionChannel RefDistCh-Cust/Mat.
Division posval Division Internal Division ID
Creditor posval Creditor Supplier
SoldToParty posval SoldToParty Sold-to Party
Material posval Material Vehicle Model
Plant posval Plant Valuation Area
StorageLocation posval StorageLocation StorageLocation
Batch posval Batch Lot No.
IncotermsClassification posval IncotermsClassification Incoterms
IncotermsTransferLocation posval IncotermsTransferLocation Incoterms 2
ConditionApplication posval ConditionApplication Application
SourceDocument posval SourceDocument Document
SourceDocumentItem posval SourceDocumentItem
SourceDocumentBusObjType posval SourceDocumentBusObjType
OriginReferenceDocument posval OriginReferenceDocument Root Document
OriginReferenceDocumentItem posval OriginReferenceDocumentItem Root Document Item
OriginReferenceDocBusObjType posval OriginReferenceDocBusObjType Root (BOR) Obj. Type
ReferenceDocument posval ReferenceDocument Reference Document
ReferenceDocumentItem posval ReferenceDocumentItem Reference item
ReferenceDocBusObjType posval ReferenceDocBusObjType Pred(BOR) Object Typ
ExpectedPaymentDate posval ExpectedPaymentDate
StatisticsCurrency posval StatisticsCurrency
DocumentCurrency posval DocumentCurrency Document Currency
ProfitCenter posval ProfitCenter Profit Center
CommodityPriceFixationStatus posval CommodityPriceFixationStatus
BusinessArea posval BusinessArea Business Area
PurchasingOrganization posval PurchasingOrganization Purchasing Organization
MaterialGroup posval MaterialGroup Product Group
IsIntercompanyTransfer posval IsIntercompanyTransfer
ConditionTermRate posval ConditionTermRate
ConditionTermRateCurrency posval ConditionTermRateCurrency
ConditionTermRateQuantity posval ConditionTermRateQuantity
ConditionTermRateQuantityUnit posval ConditionTermRateQuantityUnit
ConditionTermValue posval ConditionTermValue
ConditionTermValueCurrency posval ConditionTermValueCurrency
ConditionTermRateMktCurrency posval ConditionTermRateMktCurrency
ConditionTermName posval ConditionTermName
ConditionTermStatus posval ConditionTermStatus
RoundingDecimalPlaces posval RoundingDecimalPlaces
ConditionTermRateIsRounded posval ConditionTermRateIsRounded
ConditionTermRateNmrtr posval ConditionTermRateNmrtr
ConditionTermRateDnmntr posval ConditionTermRateDnmntr
ConditionTermExtensionUsage posval ConditionTermExtensionUsage
MaturitySelectionType posval MaturitySelectionType
QuotationPeriodReferenceDate posval QuotationPeriodReferenceDate
CommodityCurve posval CommodityCurve
QuotationKeyType posval QuotationKeyType
QuotationPriceType posval QuotationPriceType Price Type
QuotationDateList posval QuotationDateList
QuotationPeriodStartDate posval QuotationPeriodStartDate
QuotationPeriodEndDate posval QuotationPeriodEndDate
BasisType posval BasisType Basis Type
BasisID posval BasisID Basis ID
QuotationGroup posval QuotationGroup
QuotationGroupCalculationRule posval QuotationGroupCalculationRule
PricingStatus posval PricingStatus
ConditionTermRateFixation posval ConditionTermRateFixation
CndnTermRateFixationDate posval CndnTermRateFixationDate
CndnTermRateFixationTime posval CndnTermRateFixationTime
CndnTermExchRateFixationDate posval CndnTermExchRateFixationDate
CndnTermExchRateFixationTime posval CndnTermExchRateFixationTime
FixedExchRateDate posval FixedExchRateDate
ExchRateMaturityDate posval ExchRateMaturityDate
MaturitySelectionRoutine posval MaturitySelectionRoutine
DCSPeriodType posval DCSPeriodType
CommodityQuantityInTermUnit posval CommodityQuantityInTermUnit
QuantitySign posval QuantitySign Sign of Quantity
MTMConditionGroupCategory posval MTMConditionGroupCategory
MTMConditionGroup posval MTMConditionGroup
MTMCalculationGroup posval MTMCalculationGroup
MTMAdjustmentType posval MTMAdjustmentType
MTMCalcGrpMarketPriceCondition posval MTMCalcGrpMarketPriceCondition
PriceIsRealized posval PriceIsRealized
ContrPriceExposureIsExecuted posval ContrPriceExposureIsExecuted
ImplicitFixationIsRelevant posval ImplicitFixationIsRelevant
MinimumConditionTermLimitRate posval MinimumConditionTermLimitRate
MaximumConditionTermLimitRate posval MaximumConditionTermLimitRate
ConditionTermLimitRateCurrency posval ConditionTermLimitRateCurrency
ConditionTermLimitRateQuantity posval ConditionTermLimitRateQuantity
CndnTermLimitRateQuantityUnit posval CndnTermLimitRateQuantityUnit
ConditionTermLimitRateStatus posval ConditionTermLimitRateStatus
AdjustedReportingDate posval AdjustedReportingDate
AdjustedReportingYear posval AdjustedReportingYear
AdjustedReportingMonth posval AdjustedReportingMonth
GoodsMovement posval GoodsMovement
MaterialStockPriceExposureUnit posval MaterialStockPriceExposureUnit
ExposureDueDate posval ExposureDueDate
SubstitutePriceQuotationDate posval SubstitutePriceQuotationDate
CashFlowDirection posval CashFlowDirection
TreasuryPositionLongShortCode posval TreasuryPositionLongShortCode
TimeToMaturity posval TimeToMaturity Time to Maturity
CmmdtyForwardIndexTiming posval CmmdtyForwardIndexTiming
DerivativeContractMaturityCode posval DerivativeContractMaturityCode Contr. Maturity Code
FinancialInstrProductCategory posval FinancialInstrProductCategory
FinancialAssetsMgmtProductType posval FinancialAssetsMgmtProductType
FinInstrTransactionCategory posval FinInstrTransactionCategory
FinancialInstrumentProductType posval FinancialInstrumentProductType
FinancialInstrActivityCategory posval FinancialInstrActivityCategory
FinancialObject posval FinancialObject
TermStartDate posval TermStartDate
TermEndDate posval TermEndDate
NumberOfCommodityContracts posval NumberOfCommodityContracts
TreasuryPositionAccount posval TreasuryPositionAccount
DerivativeContract posval DerivativeContract
QuotationCurrency posval QuotationCurrency
PaymentCurrency posval PaymentCurrency Payment Currency
OptionStrikePrice posval OptionStrikePrice
OptionStrikeCurrency posval OptionStrikeCurrency
OptionPutCallCode posval OptionPutCallCode
ExternalKeyFigureValue posval ExternalKeyFigureValue
OptionDeltaFactor posval OptionDeltaFactor
OptionDeltaFactorKeyFigure posval OptionDeltaFactorKeyFigure
EndOfDaySnapshotDateTime posval EndOfDaySnapshotDateTime
MTMDataSelectionType posval MTMDataSelectionType
EndOfDaySnapshotDate posval EndOfDaySnapshotDate
ValidityStartDate posval ValidityStartDate Validity Start Date
ValidityStartTime posval ValidityStartTime Valid From Time
ValidityEndDate posval ValidityEndDate ValidTo
ValidityEndTime posval ValidityEndTime Valid To Time
ValidityStartDateTime posval ValidityStartDateTime Valid From Timestamp
ValidityEndDateTime posval ValidityEndDateTime Valid To Timestamp
PhysicalCommodity posval PhysicalCommodity
DeliveryDate posval DeliveryDate Delivery Date
DerivativeContrSpecification posval DerivativeContrSpecification DCS ID
MarketIdentifierCode posval MarketIdentifierCode MIC
MaturityKeyDate posval MaturityKeyDate Maturity Key Date
DisplayView posval DisplayView
ConditionTermRateIsFixed posval ConditionTermRateIsFixed
ReportingDate posval ReportingDate
ReportingYear posval ReportingYear
ReportingMonth posval ReportingMonth
CommodityPriceExposureQuantity
HasError posval HasError TRUE
SystemMessageNumber posval SystemMessageNumber Message Number
CommodityUnit posval CommodityUnit Order Unit
FinInstrExternalReference posval FinInstrExternalReference
PricedUndeliveredContrExpsrQty posval PricedUndeliveredContrExpsrQty
UnpricedUndeliveredCtrExpsrQty posval UnpricedUndeliveredCtrExpsrQty
UndeliveredMarketPrExposureQty posval UndeliveredMarketPrExposureQty
UnpricedDeliveredCtrExpsrQty posval UnpricedDeliveredCtrExpsrQty
PricedDeliveredContrExpsrQty posval PricedDeliveredContrExpsrQty
DeliveredMarketPrExposureQty posval DeliveredMarketPrExposureQty
UnpricedContrPriceExposureQty posval UnpricedContrPriceExposureQty
UnrlzdMarketPriceExposureQty posval UnrlzdMarketPriceExposureQty
OutrightPriceExposureQty
PricedContractsExposureQty posval PricedContractsExposureQty
MaterialStockExposureQty posval MaterialStockExposureQty
UnrealizedGoodsRcptPrcExpsrQty posval UnrealizedGoodsRcptPrcExpsrQty
UnrealizedGoodsIssPrcExpsrQty posval UnrealizedGoodsIssPrcExpsrQty
RealizedMaterialStkPrcExpsrQty posval RealizedMaterialStkPrcExpsrQty
TodayPricedUndeliveredExpsrQty posval TodayPricedUndeliveredExpsrQty
UnrealizedPriceExposureQty posval UnrealizedPriceExposureQty
UnpricedUnrealizedPrcExpsrQty posval UnpricedUnrealizedPrcExpsrQty
TodayUnpricedUnrlzdCtrExpsrQty posval TodayUnpricedUnrlzdCtrExpsrQty
ReducnNoPrcEstablishedExpsrQty posval ReducnNoPrcEstablishedExpsrQty
NoFutureEstabPurchaseContrQty posval NoFutureEstabPurchaseContrQty
NoFutureEstabSalesContrQty posval NoFutureEstabSalesContrQty
FlatPricedContractsQty posval FlatPricedContractsQty
NoFutrEstablishedContrExpsrQty posval NoFutrEstablishedContrExpsrQty
NoBsEstablishedContrExpsrQty posval NoBsEstablishedContrExpsrQty
NoPrcEstablishedContrExpsrQty posval NoPrcEstablishedContrExpsrQty
FixPricedDelivsPriceExpsrQty posval FixPricedDelivsPriceExpsrQty
UndeliveredFixPrCtrPrExpsrQty posval UndeliveredFixPrCtrPrExpsrQty
UnpricedUnrlzdGdsIssExpsrQty posval UnpricedUnrlzdGdsIssExpsrQty
UnpricedUnrlzdGdsRcptExpsrQty posval UnpricedUnrlzdGdsRcptExpsrQty
FixPricedContrPriceExpsrQty posval FixPricedContrPriceExpsrQty
TodayPricedContractsExpsrQty posval TodayPricedContractsExpsrQty
InventoryAndContractsQty posval InventoryAndContractsQty
TotalPhysicalPositionQty posval TotalPhysicalPositionQty
ImpliedFuturesPositionQty posval ImpliedFuturesPositionQty
BasisPositionQty posval BasisPositionQty
NmbrOfPrcdQuotationPeriodDays posval PricedDays
NmbrOfUnpricedQtanPeriodDays posval UnPricedDays
NmbrOfValnDtePrcdQtanPerdDays posval TodayDays
CmmdtyPriceExpsrQtyInMassUnit
CmmdtyPriceExpsrMassUnit vlogp CmmdtyPriceExpsrMassUnit
CmmdtyPriceExpsrQtyInVolUnit
CmmdtyPriceExpsrVolumeUnit vlogp CmmdtyPriceExpsrVolumeUnit
SourceUom posval CommodityUnit Order Unit
TargetUom _DcsUom QuotationUnitOfMeasureChar

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_CmmdtyPositionValueAtRiskDCS.
-- 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: PCMMDTYVARDCS
-- Parameters: P_DisplayUnitOfMeasure : cds_view_uom, P_EndOfDaySnapshotFromDate : cds_evaluation_date, P_EndOfDaySnapshotToDate : cds_evaluation_date_comp, P_MTMDataSelectionType : cmm_vlogp_consumptiontype, P_OptionDeltaMethod : cds_option_delta_method, P_OptionDeltaThreshold : cds_option_delta_threshold

CREATE VIEW P_CmmdtyPositionValueAtRiskDCS AS
SELECT
  posval.CommodityTransactionType AS CommodityTransactionType,
  posval.PricingKey AS PricingKey,
  posval.Version AS Version,
  posval.PricingDocumentItem AS PricingDocumentItem,
  posval.ConditionType AS ConditionType,
  posval.SubConditionType AS SubConditionType,
  posval.VersStockRecordUUID AS VersStockRecordUUID,
  posval.EvaluationDate AS EvaluationDate,
  posval.PriceQuotationDate AS PriceQuotationDate,
  posval.CompanyCode AS CompanyCode,
  posval.CommodityPriceExposure AS CommodityPriceExposure,
  posval.CommodityExposureCategory AS CommodityExposureCategory,
  posval.CommodityPriceSubExposure AS CommodityPriceSubExposure,
  posval.EndOfDaySnapshotFromDate AS EndOfDaySnapshotFromDate,
  posval.EndOfDaySnapshotToDate AS EndOfDaySnapshotToDate,
  posval.MTMDataSourceType AS MTMDataSourceType,
  posval.EndOfDaySnapshotDateTimeFrom AS EndOfDaySnapshotDateTimeFrom,
  posval.EndOfDaySnapshotDateTimeTo AS EndOfDaySnapshotDateTimeTo,
  posval.MaximumVersion AS MaximumVersion,
  posval.PreviousVersion AS PreviousVersion,
  posval.SalesOrganization AS SalesOrganization,
  posval.DistributionChannel AS DistributionChannel,
  posval.Division AS Division,
  posval.Creditor AS Creditor,
  posval.SoldToParty AS SoldToParty,
  posval.Material AS Material,
  posval.Plant AS Plant,
  posval.StorageLocation AS StorageLocation,
  posval.Batch AS Batch,
  posval.IncotermsClassification AS IncotermsClassification,
  posval.IncotermsTransferLocation AS IncotermsTransferLocation,
  posval.ConditionApplication AS ConditionApplication,
  posval.SourceDocument AS SourceDocument,
  posval.SourceDocumentItem AS SourceDocumentItem,
  posval.SourceDocumentBusObjType AS SourceDocumentBusObjType,
  posval.OriginReferenceDocument AS OriginReferenceDocument,
  posval.OriginReferenceDocumentItem AS OriginReferenceDocumentItem,
  posval.OriginReferenceDocBusObjType AS OriginReferenceDocBusObjType,
  posval.ReferenceDocument AS ReferenceDocument,
  posval.ReferenceDocumentItem AS ReferenceDocumentItem,
  posval.ReferenceDocBusObjType AS ReferenceDocBusObjType,
  posval.ExpectedPaymentDate AS ExpectedPaymentDate,
  posval.StatisticsCurrency AS StatisticsCurrency,
  posval.DocumentCurrency AS DocumentCurrency,
  posval.ProfitCenter AS ProfitCenter,
  posval.CommodityPriceFixationStatus AS CommodityPriceFixationStatus,
  posval.BusinessArea AS BusinessArea,
  posval.PurchasingOrganization AS PurchasingOrganization,
  posval.MaterialGroup AS MaterialGroup,
  posval.IsIntercompanyTransfer AS IsIntercompanyTransfer,
  posval.ConditionTermRate AS ConditionTermRate,
  posval.ConditionTermRateCurrency AS ConditionTermRateCurrency,
  posval.ConditionTermRateQuantity AS ConditionTermRateQuantity,
  posval.ConditionTermRateQuantityUnit AS ConditionTermRateQuantityUnit,
  posval.ConditionTermValue AS ConditionTermValue,
  posval.ConditionTermValueCurrency AS ConditionTermValueCurrency,
  posval.ConditionTermRateMktCurrency AS ConditionTermRateMktCurrency,
  posval.ConditionTermName AS ConditionTermName,
  posval.ConditionTermStatus AS ConditionTermStatus,
  posval.RoundingDecimalPlaces AS RoundingDecimalPlaces,
  posval.ConditionTermRateIsRounded AS ConditionTermRateIsRounded,
  posval.ConditionTermRateNmrtr AS ConditionTermRateNmrtr,
  posval.ConditionTermRateDnmntr AS ConditionTermRateDnmntr,
  posval.ConditionTermExtensionUsage AS ConditionTermExtensionUsage,
  posval.MaturitySelectionType AS MaturitySelectionType,
  posval.QuotationPeriodReferenceDate AS QuotationPeriodReferenceDate,
  posval.CommodityCurve AS CommodityCurve,
  posval.QuotationKeyType AS QuotationKeyType,
  posval.QuotationPriceType AS QuotationPriceType,
  posval.QuotationDateList AS QuotationDateList,
  posval.QuotationPeriodStartDate AS QuotationPeriodStartDate,
  posval.QuotationPeriodEndDate AS QuotationPeriodEndDate,
  posval.BasisType AS BasisType,
  posval.BasisID AS BasisID,
  posval.QuotationGroup AS QuotationGroup,
  posval.QuotationGroupCalculationRule AS QuotationGroupCalculationRule,
  posval.PricingStatus AS PricingStatus,
  posval.ConditionTermRateFixation AS ConditionTermRateFixation,
  posval.CndnTermRateFixationDate AS CndnTermRateFixationDate,
  posval.CndnTermRateFixationTime AS CndnTermRateFixationTime,
  posval.CndnTermExchRateFixationDate AS CndnTermExchRateFixationDate,
  posval.CndnTermExchRateFixationTime AS CndnTermExchRateFixationTime,
  posval.FixedExchRateDate AS FixedExchRateDate,
  posval.ExchRateMaturityDate AS ExchRateMaturityDate,
  posval.MaturitySelectionRoutine AS MaturitySelectionRoutine,
  posval.DCSPeriodType AS DCSPeriodType,
  posval.CommodityQuantityInTermUnit AS CommodityQuantityInTermUnit,
  posval.QuantitySign AS QuantitySign,
  posval.MTMConditionGroupCategory AS MTMConditionGroupCategory,
  posval.MTMConditionGroup AS MTMConditionGroup,
  posval.MTMCalculationGroup AS MTMCalculationGroup,
  posval.MTMAdjustmentType AS MTMAdjustmentType,
  posval.MTMCalcGrpMarketPriceCondition AS MTMCalcGrpMarketPriceCondition,
  posval.PriceIsRealized AS PriceIsRealized,
  posval.ContrPriceExposureIsExecuted AS ContrPriceExposureIsExecuted,
  posval.ImplicitFixationIsRelevant AS ImplicitFixationIsRelevant,
  posval.MinimumConditionTermLimitRate AS MinimumConditionTermLimitRate,
  posval.MaximumConditionTermLimitRate AS MaximumConditionTermLimitRate,
  posval.ConditionTermLimitRateCurrency AS ConditionTermLimitRateCurrency,
  posval.ConditionTermLimitRateQuantity AS ConditionTermLimitRateQuantity,
  posval.CndnTermLimitRateQuantityUnit AS CndnTermLimitRateQuantityUnit,
  posval.ConditionTermLimitRateStatus AS ConditionTermLimitRateStatus,
  posval.AdjustedReportingDate AS AdjustedReportingDate,
  posval.AdjustedReportingYear AS AdjustedReportingYear,
  posval.AdjustedReportingMonth AS AdjustedReportingMonth,
  posval.GoodsMovement AS GoodsMovement,
  posval.MaterialStockPriceExposureUnit AS MaterialStockPriceExposureUnit,
  posval.ExposureDueDate AS ExposureDueDate,
  posval.SubstitutePriceQuotationDate AS SubstitutePriceQuotationDate,
  posval.CashFlowDirection AS CashFlowDirection,
  posval.TreasuryPositionLongShortCode AS TreasuryPositionLongShortCode,
  posval.TimeToMaturity AS TimeToMaturity,
  posval.CmmdtyForwardIndexTiming AS CmmdtyForwardIndexTiming,
  posval.DerivativeContractMaturityCode AS DerivativeContractMaturityCode,
  posval.FinancialInstrProductCategory AS FinancialInstrProductCategory,
  posval.FinancialAssetsMgmtProductType AS FinancialAssetsMgmtProductType,
  posval.FinInstrTransactionCategory AS FinInstrTransactionCategory,
  posval.FinancialInstrumentProductType AS FinancialInstrumentProductType,
  posval.FinancialInstrActivityCategory AS FinancialInstrActivityCategory,
  posval.FinancialObject AS FinancialObject,
  posval.TermStartDate AS TermStartDate,
  posval.TermEndDate AS TermEndDate,
  posval.NumberOfCommodityContracts AS NumberOfCommodityContracts,
  posval.TreasuryPositionAccount AS TreasuryPositionAccount,
  posval.DerivativeContract AS DerivativeContract,
  posval.QuotationCurrency AS QuotationCurrency,
  posval.PaymentCurrency AS PaymentCurrency,
  posval.OptionStrikePrice AS OptionStrikePrice,
  posval.OptionStrikeCurrency AS OptionStrikeCurrency,
  posval.OptionPutCallCode AS OptionPutCallCode,
  posval.ExternalKeyFigureValue AS ExternalKeyFigureValue,
  posval.OptionDeltaFactor AS OptionDeltaFactor,
  posval.OptionDeltaFactorKeyFigure AS OptionDeltaFactorKeyFigure,
  posval.EndOfDaySnapshotDateTime AS EndOfDaySnapshotDateTime,
  posval.MTMDataSelectionType AS MTMDataSelectionType,
  posval.EndOfDaySnapshotDate AS EndOfDaySnapshotDate,
  posval.ValidityStartDate AS ValidityStartDate,
  posval.ValidityStartTime AS ValidityStartTime,
  posval.ValidityEndDate AS ValidityEndDate,
  posval.ValidityEndTime AS ValidityEndTime,
  posval.ValidityStartDateTime AS ValidityStartDateTime,
  posval.ValidityEndDateTime AS ValidityEndDateTime,
  posval.PhysicalCommodity AS PhysicalCommodity,
  posval.DeliveryDate AS DeliveryDate,
  posval.DerivativeContrSpecification AS DerivativeContrSpecification,
  posval.MarketIdentifierCode AS MarketIdentifierCode,
  posval.MaturityKeyDate AS MaturityKeyDate,
  posval.DisplayView AS DisplayView,
  posval.ConditionTermRateIsFixed AS ConditionTermRateIsFixed,
  posval.ReportingDate AS ReportingDate,
  posval.ReportingYear AS ReportingYear,
  posval.ReportingMonth AS ReportingMonth,
  cast (posval.CommodityPriceExposureQuantity as abap.fltp(16,16)) AS CommodityPriceExposureQuantity,
  posval.HasError AS HasError,
  posval.SystemMessageNumber AS SystemMessageNumber,
  posval.CommodityUnit AS CommodityUnit,
  posval.FinInstrExternalReference AS FinInstrExternalReference,
  posval.PricedUndeliveredContrExpsrQty AS PricedUndeliveredContrExpsrQty,
  posval.UnpricedUndeliveredCtrExpsrQty AS UnpricedUndeliveredCtrExpsrQty,
  posval.UndeliveredMarketPrExposureQty AS UndeliveredMarketPrExposureQty,
  posval.UnpricedDeliveredCtrExpsrQty AS UnpricedDeliveredCtrExpsrQty,
  posval.PricedDeliveredContrExpsrQty AS PricedDeliveredContrExpsrQty,
  posval.DeliveredMarketPrExposureQty AS DeliveredMarketPrExposureQty,
  posval.UnpricedContrPriceExposureQty AS UnpricedContrPriceExposureQty,
  posval.UnrlzdMarketPriceExposureQty AS UnrlzdMarketPriceExposureQty,
  cast(posval.OutrightPriceExposureQty as abap.fltp(16,16)) AS OutrightPriceExposureQty,
  posval.PricedContractsExposureQty AS PricedContractsExposureQty,
  posval.MaterialStockExposureQty AS MaterialStockExposureQty,
  posval.UnrealizedGoodsRcptPrcExpsrQty AS UnrealizedGoodsRcptPrcExpsrQty,
  posval.UnrealizedGoodsIssPrcExpsrQty AS UnrealizedGoodsIssPrcExpsrQty,
  posval.RealizedMaterialStkPrcExpsrQty AS RealizedMaterialStkPrcExpsrQty,
  posval.TodayPricedUndeliveredExpsrQty AS TodayPricedUndeliveredExpsrQty,
  posval.UnrealizedPriceExposureQty AS UnrealizedPriceExposureQty,
  posval.UnpricedUnrealizedPrcExpsrQty AS UnpricedUnrealizedPrcExpsrQty,
  posval.TodayUnpricedUnrlzdCtrExpsrQty AS TodayUnpricedUnrlzdCtrExpsrQty,
  posval.ReducnNoPrcEstablishedExpsrQty AS ReducnNoPrcEstablishedExpsrQty,
  posval.NoFutureEstabPurchaseContrQty AS NoFutureEstabPurchaseContrQty,
  posval.NoFutureEstabSalesContrQty AS NoFutureEstabSalesContrQty,
  posval.FlatPricedContractsQty AS FlatPricedContractsQty,
  posval.NoFutrEstablishedContrExpsrQty AS NoFutrEstablishedContrExpsrQty,
  posval.NoBsEstablishedContrExpsrQty AS NoBsEstablishedContrExpsrQty,
  posval.NoPrcEstablishedContrExpsrQty AS NoPrcEstablishedContrExpsrQty,
  posval.FixPricedDelivsPriceExpsrQty AS FixPricedDelivsPriceExpsrQty,
  posval.UndeliveredFixPrCtrPrExpsrQty AS UndeliveredFixPrCtrPrExpsrQty,
  posval.UnpricedUnrlzdGdsIssExpsrQty AS UnpricedUnrlzdGdsIssExpsrQty,
  posval.UnpricedUnrlzdGdsRcptExpsrQty AS UnpricedUnrlzdGdsRcptExpsrQty,
  posval.FixPricedContrPriceExpsrQty AS FixPricedContrPriceExpsrQty,
  posval.TodayPricedContractsExpsrQty AS TodayPricedContractsExpsrQty,
  posval.InventoryAndContractsQty AS InventoryAndContractsQty,
  posval.TotalPhysicalPositionQty AS TotalPhysicalPositionQty,
  posval.ImpliedFuturesPositionQty AS ImpliedFuturesPositionQty,
  posval.BasisPositionQty AS BasisPositionQty,
  posval.PricedDays AS NmbrOfPrcdQuotationPeriodDays,
  posval.UnPricedDays AS NmbrOfUnpricedQtanPeriodDays,
  posval.TodayDays AS NmbrOfValnDtePrcdQtanPerdDays,
  cast(vlogp.CmmdtyPriceExpsrQtyInMassUnit as abap.fltp( 16, 16 )) AS CmmdtyPriceExpsrQtyInMassUnit,
  vlogp.CmmdtyPriceExpsrMassUnit AS CmmdtyPriceExpsrMassUnit,
  cast(vlogp.CmmdtyPriceExpsrQtyInVolUnit as abap.fltp( 16, 16 )) AS CmmdtyPriceExpsrQtyInVolUnit,
  vlogp.CmmdtyPriceExpsrVolumeUnit AS CmmdtyPriceExpsrVolumeUnit,
  posval.CommodityUnit AS SourceUom,
  _DcsUom.QuotationUnitOfMeasureChar AS TargetUom
FROM P_UnionViewPhysFin
;