P_DerivativePosDODTechLayer

DDL: P_DERIVATIVEPOSDODTECHLAYER SQL: PVFINDDODTL Type: view COMPOSITE Package: FTR_COMMODITY_CDS

Technical Layer for Day over Day

P_DerivativePosDODTechLayer is a Composite CDS View that provides data about "Technical Layer for Day over Day" in SAP S/4HANA. It reads from 2 data sources (P_DrvtvPosEndOfDayTechLayer, P_DrvtvPosEndOfDayTechLayer) and exposes 152 fields with key fields CompanyCode, CommodityPriceExposure, CommodityExposureCategory, CommodityPriceSubExposure, CommodityPriceExposureVersion. Part of development package FTR_COMMODITY_CDS.

Data Sources (2)

SourceAliasJoin Type
P_DrvtvPosEndOfDayTechLayer P_DrvtvPosEndOfDayTechLayer from
P_DrvtvPosEndOfDayTechLayer P_DrvtvPosEndOfDayTechLayer union

Parameters (3)

NameTypeDefault
P_SNAPSHOT0 cds_evaluation_date
P_SNAPSHOT1 cds_evaluation_date
P_DisplayView cds_view_uom

Annotations (9)

NameValueLevelField
VDM.private true view
VDM.viewType #COMPOSITE view
AccessControl.authorizationCheck #NOT_REQUIRED view
AbapCatalog.sqlViewName PVFINDDODTL view
ObjectModel.usageType.serviceQuality #D view
ObjectModel.usageType.sizeCategory #XL view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
ClientHandling.algorithm #SESSION_VARIABLE view
AbapCatalog.preserveKey true view

Fields (152)

KeyFieldSource TableSource FieldDescription
KEY CompanyCode EODSnapshot0 CompanyCode Receiver Company Code
KEY CommodityPriceExposure EODSnapshot0 CommodityPriceExposure Exposure ID
KEY CommodityExposureCategory EODSnapshot0 CommodityExposureCategory
KEY CommodityPriceSubExposure EODSnapshot0 CommodityPriceSubExposure
KEY CommodityPriceExposureVersion EODSnapshot0 CommodityPriceExposureVersion Exposure Version
ValidityStartDateTime EODSnapshot0 ValidityStartDateTime Valid From Timestamp
ValidityEndDateTime EODSnapshot0 ValidityEndDateTime Valid To Timestamp
ValidityStartDate EODSnapshot0 ValidityStartDate Validity Start Date
ValidityStartTime EODSnapshot0 ValidityStartTime Valid From Time
ValidityEndDate EODSnapshot0 ValidityEndDate ValidTo
ValidityEndTime EODSnapshot0 ValidityEndTime Valid To Time
ValidityStartCharTimestamp EODSnapshot0 ValidityStartCharTimestamp
ValidityEndCharTimestamp EODSnapshot0 ValidityEndCharTimestamp
MaximumVersion EODSnapshot0 MaximumVersion Highest Version
RiskAnalyzerVersionUUID EODSnapshot0 RiskAnalyzerVersionUUID Version GUID
ExposureDueDate EODSnapshot0 ExposureDueDate
ReportingDate EODSnapshot0 ReportingDate
Commodity EODSnapshot0 Commodity Commodity Code
CashFlowDirection EODSnapshot0 CashFlowDirection
TreasuryPositionLongShortCode EODSnapshot0 TreasuryPositionLongShortCode
DerivativeContrSpecification EODSnapshot0 DerivativeContrSpecification DCS ID
MarketIdentifierCode EODSnapshot0 MarketIdentifierCode MIC
QuotationPriceType EODSnapshot0 QuotationPriceType Price Type
TimeToMaturity EODSnapshot0 TimeToMaturity Time to Maturity
CmmdtyForwardIndexTiming EODSnapshot0 CmmdtyForwardIndexTiming
MaturityKeyDate EODSnapshot0 MaturityKeyDate Maturity Key Date
DerivativeContractMaturityCode EODSnapshot0 DerivativeContractMaturityCode Contr. Maturity Code
FinancialInstrProductCategory EODSnapshot0 FinancialInstrProductCategory
FinancialAssetsMgmtProductType EODSnapshot0 FinancialAssetsMgmtProductType
FinInstrTransactionCategory EODSnapshot0 FinInstrTransactionCategory
FinancialInstrumentProductType EODSnapshot0 FinancialInstrumentProductType
FinancialInstrActivityCategory EODSnapshot0 FinancialInstrActivityCategory
FinancialObject EODSnapshot0 FinancialObject
HasError EODSnapshot0 HasError TRUE
TermStartDate EODSnapshot0 TermStartDate
TermEndDate EODSnapshot0 TermEndDate
DeliveryDate EODSnapshot0 DeliveryDate Delivery Date
NumberOfCommodityContracts EODSnapshot0 NumberOfCommodityContracts
CommodityPriceExposureUnit EODSnapshot0 CommodityPriceExposureUnit
CommodityPriceExposureBaseUnit EODSnapshot0 CommodityPriceExposureBaseUnit
CmmdtyPriceExpsrMassUnit EODSnapshot0 CmmdtyPriceExpsrMassUnit
CmmdtyPriceExpsrVolumeUnit EODSnapshot0 CmmdtyPriceExpsrVolumeUnit
CommodityPriceExposureQuantity EODSnapshot0 CommodityPriceExposureQuantity
CommodityPriceExposureBaseQty EODSnapshot0 CommodityPriceExposureBaseQty
CmmdtyPriceExpsrQtyInMassUnit EODSnapshot0 CmmdtyPriceExpsrQtyInMassUnit
CmmdtyPriceExpsrQtyInVolUnit EODSnapshot0 CmmdtyPriceExpsrQtyInVolUnit
CommodityPriceFixationStatus EODSnapshot0 CommodityPriceFixationStatus
TreasuryPositionAccount EODSnapshot0 TreasuryPositionAccount
DerivativeContract EODSnapshot0 DerivativeContract
QuotationCurrency EODSnapshot0 QuotationCurrency
PaymentCurrency EODSnapshot0 PaymentCurrency Payment Currency
OptionStrikePrice EODSnapshot0 OptionStrikePrice
OptionStrikeCurrency EODSnapshot0 OptionStrikeCurrency
OptionPutCallCode EODSnapshot0 OptionPutCallCode
OptionExerciseType EODSnapshot0 OptionExerciseType
EndOfDayBusinessEntityKey EODSnapshot0 EndOfDayBusinessEntityKey
ReportingMonth EODSnapshot0 ReportingMonth
ReportingYear EODSnapshot0 ReportingYear
EvaluationDate EODSnapshot0 EvaluationDate
EndOfDaySnapshotDate EODSnapshot0 EndOfDaySnapshotDate
EndOfDaySnapshotDateTime EODSnapshot0 EndOfDaySnapshotDateTime
ConsumptionType
DisplayView EODSnapshot0 DisplayView
FinInstrExternalReference EODSnapshot0 FinInstrExternalReference
TradedDrvtvContrSpecification EODSnapshot0 TradedDrvtvContrSpecification
ParDrvtvContractSpecification EODSnapshot0 ParDrvtvContractSpecification
RiskViewIsNotRelevant EODSnapshot0 RiskViewIsNotRelevant
FinancialTransactionPortfolio EODSnapshot0 FinancialTransactionPortfolio
CmmdtyHdgPlanExposureHedgeBook EODSnapshot0 CmmdtyHdgPlanExposureHedgeBook Hedge Book
CommodityHedgePlanExposureID EODSnapshot0 CommodityHedgePlanExposureID Plan Exposure ID
_CompanyCode EODSnapshot0 _CompanyCode
_DerivativeContrSpecification EODSnapshot0 _DerivativeContrSpecification
_FinAssetsMgmtProductType EODSnapshot0 _FinAssetsMgmtProductType
_MarketIdentifierCode EODSnapshot0 _MarketIdentifierCode
_PhysicalCommodity EODSnapshot0 _PhysicalCommodity
P_SNAPSHOT1
CompanyCode Receiver Company Code
KEY CommodityPriceExposure EODSnapshot1 CommodityPriceExposure Exposure ID
KEY CommodityExposureCategory EODSnapshot1 CommodityExposureCategory
KEY CommodityPriceSubExposure EODSnapshot1 CommodityPriceSubExposure
KEY CommodityPriceExposureVersion EODSnapshot1 CommodityPriceExposureVersion Exposure Version
ValidityStartDateTime EODSnapshot1 ValidityStartDateTime Valid From Timestamp
ValidityEndDateTime EODSnapshot1 ValidityEndDateTime Valid To Timestamp
ValidityStartDate EODSnapshot1 ValidityStartDate Validity Start Date
ValidityStartTime EODSnapshot1 ValidityStartTime Valid From Time
ValidityEndDate EODSnapshot1 ValidityEndDate ValidTo
ValidityEndTime EODSnapshot1 ValidityEndTime Valid To Time
ValidityStartCharTimestamp EODSnapshot1 ValidityStartCharTimestamp
ValidityEndCharTimestamp EODSnapshot1 ValidityEndCharTimestamp
MaximumVersion EODSnapshot1 MaximumVersion Highest Version
RiskAnalyzerVersionUUID EODSnapshot1 RiskAnalyzerVersionUUID Version GUID
ExposureDueDate EODSnapshot1 ExposureDueDate
ReportingDate EODSnapshot1 ReportingDate
Commodity EODSnapshot1 Commodity Commodity Code
CashFlowDirection EODSnapshot1 CashFlowDirection
TreasuryPositionLongShortCode EODSnapshot1 TreasuryPositionLongShortCode
DerivativeContrSpecification EODSnapshot1 DerivativeContrSpecification DCS ID
MarketIdentifierCode EODSnapshot1 MarketIdentifierCode MIC
QuotationPriceType EODSnapshot1 QuotationPriceType Price Type
TimeToMaturity EODSnapshot1 TimeToMaturity Time to Maturity
CmmdtyForwardIndexTiming EODSnapshot1 CmmdtyForwardIndexTiming
MaturityKeyDate EODSnapshot1 MaturityKeyDate Maturity Key Date
DerivativeContractMaturityCode EODSnapshot1 DerivativeContractMaturityCode Contr. Maturity Code
FinancialInstrProductCategory EODSnapshot1 FinancialInstrProductCategory
FinancialAssetsMgmtProductType EODSnapshot1 FinancialAssetsMgmtProductType
FinInstrTransactionCategory EODSnapshot1 FinInstrTransactionCategory
FinancialInstrumentProductType EODSnapshot1 FinancialInstrumentProductType
FinancialInstrActivityCategory EODSnapshot1 FinancialInstrActivityCategory
FinancialObject EODSnapshot1 FinancialObject
HasError EODSnapshot1 HasError TRUE
TermStartDate EODSnapshot1 TermStartDate
TermEndDate EODSnapshot1 TermEndDate
DeliveryDate EODSnapshot1 DeliveryDate Delivery Date
NumberOfCommodityContracts EODSnapshot1 NumberOfCommodityContracts
CommodityPriceExposureUnit EODSnapshot1 CommodityPriceExposureUnit
CommodityPriceExposureBaseUnit EODSnapshot1 CommodityPriceExposureBaseUnit
CmmdtyPriceExpsrMassUnit EODSnapshot1 CmmdtyPriceExpsrMassUnit
CmmdtyPriceExpsrVolumeUnit EODSnapshot1 CmmdtyPriceExpsrVolumeUnit
CommodityPriceExposureQuantity
CommodityPriceExposureBaseQty
CmmdtyPriceExpsrQtyInMassUnit
CmmdtyPriceExpsrQtyInVolUnit
CommodityPriceFixationStatus EODSnapshot1 CommodityPriceFixationStatus
TreasuryPositionAccount EODSnapshot1 TreasuryPositionAccount
DerivativeContract EODSnapshot1 DerivativeContract
QuotationCurrency EODSnapshot1 QuotationCurrency
PaymentCurrency EODSnapshot1 PaymentCurrency Payment Currency
OptionStrikePrice EODSnapshot1 OptionStrikePrice
OptionStrikeCurrency EODSnapshot1 OptionStrikeCurrency
OptionPutCallCode EODSnapshot1 OptionPutCallCode
OptionExerciseType EODSnapshot1 OptionExerciseType
EndOfDayBusinessEntityKey EODSnapshot1 EndOfDayBusinessEntityKey
ReportingMonth EODSnapshot1 ReportingMonth
ReportingYear EODSnapshot1 ReportingYear
EvaluationDate EODSnapshot1 EvaluationDate
EndOfDaySnapshotDate EODSnapshot1 EndOfDaySnapshotDate
EndOfDaySnapshotDateTime EODSnapshot1 EndOfDaySnapshotDateTime
ConsumptionType
DisplayView EODSnapshot1 DisplayView
FinInstrExternalReference EODSnapshot1 FinInstrExternalReference
TradedDrvtvContrSpecification EODSnapshot1 TradedDrvtvContrSpecification
ParDrvtvContractSpecification EODSnapshot1 ParDrvtvContractSpecification
RiskViewIsNotRelevant EODSnapshot1 RiskViewIsNotRelevant
FinancialTransactionPortfolio EODSnapshot1 FinancialTransactionPortfolio
CmmdtyHdgPlanExposureHedgeBook EODSnapshot1 CmmdtyHdgPlanExposureHedgeBook Hedge Book
CommodityHedgePlanExposureID EODSnapshot1 CommodityHedgePlanExposureID Plan Exposure ID
_CompanyCode EODSnapshot1 _CompanyCode
_DerivativeContrSpecification EODSnapshot1 _DerivativeContrSpecification
_FinAssetsMgmtProductType EODSnapshot1 _FinAssetsMgmtProductType
_MarketIdentifierCode EODSnapshot1 _MarketIdentifierCode
_PhysicalCommodity EODSnapshot1 _PhysicalCommodity
_UnitOfMeasure EODSnapshot1 _UnitOfMeasure

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_DerivativePosDODTechLayer.
-- 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: PVFINDDODTL
-- Parameters: P_SNAPSHOT0 : cds_evaluation_date, P_SNAPSHOT1 : cds_evaluation_date, P_DisplayView : cds_view_uom

CREATE VIEW P_DerivativePosDODTechLayer AS
SELECT
  EODSnapshot0.CompanyCode AS CompanyCode,
  EODSnapshot0.CommodityPriceExposure AS CommodityPriceExposure,
  EODSnapshot0.CommodityExposureCategory AS CommodityExposureCategory,
  EODSnapshot0.CommodityPriceSubExposure AS CommodityPriceSubExposure,
  EODSnapshot0.CommodityPriceExposureVersion AS CommodityPriceExposureVersion,
  EODSnapshot0.ValidityStartDateTime AS ValidityStartDateTime,
  EODSnapshot0.ValidityEndDateTime AS ValidityEndDateTime,
  EODSnapshot0.ValidityStartDate AS ValidityStartDate,
  EODSnapshot0.ValidityStartTime AS ValidityStartTime,
  EODSnapshot0.ValidityEndDate AS ValidityEndDate,
  EODSnapshot0.ValidityEndTime AS ValidityEndTime,
  EODSnapshot0.ValidityStartCharTimestamp AS ValidityStartCharTimestamp,
  EODSnapshot0.ValidityEndCharTimestamp AS ValidityEndCharTimestamp,
  EODSnapshot0.MaximumVersion AS MaximumVersion,
  EODSnapshot0.RiskAnalyzerVersionUUID AS RiskAnalyzerVersionUUID,
  EODSnapshot0.ExposureDueDate AS ExposureDueDate,
  EODSnapshot0.ReportingDate AS ReportingDate,
  EODSnapshot0.Commodity AS Commodity,
  EODSnapshot0.CashFlowDirection AS CashFlowDirection,
  EODSnapshot0.TreasuryPositionLongShortCode AS TreasuryPositionLongShortCode,
  EODSnapshot0.DerivativeContrSpecification AS DerivativeContrSpecification,
  EODSnapshot0.MarketIdentifierCode AS MarketIdentifierCode,
  EODSnapshot0.QuotationPriceType AS QuotationPriceType,
  EODSnapshot0.TimeToMaturity AS TimeToMaturity,
  EODSnapshot0.CmmdtyForwardIndexTiming AS CmmdtyForwardIndexTiming,
  EODSnapshot0.MaturityKeyDate AS MaturityKeyDate,
  EODSnapshot0.DerivativeContractMaturityCode AS DerivativeContractMaturityCode,
  EODSnapshot0.FinancialInstrProductCategory AS FinancialInstrProductCategory,
  EODSnapshot0.FinancialAssetsMgmtProductType AS FinancialAssetsMgmtProductType,
  EODSnapshot0.FinInstrTransactionCategory AS FinInstrTransactionCategory,
  EODSnapshot0.FinancialInstrumentProductType AS FinancialInstrumentProductType,
  EODSnapshot0.FinancialInstrActivityCategory AS FinancialInstrActivityCategory,
  EODSnapshot0.FinancialObject AS FinancialObject,
  EODSnapshot0.HasError AS HasError,
  EODSnapshot0.TermStartDate AS TermStartDate,
  EODSnapshot0.TermEndDate AS TermEndDate,
  EODSnapshot0.DeliveryDate AS DeliveryDate,
  EODSnapshot0.NumberOfCommodityContracts AS NumberOfCommodityContracts,
  EODSnapshot0.CommodityPriceExposureUnit AS CommodityPriceExposureUnit,
  EODSnapshot0.CommodityPriceExposureBaseUnit AS CommodityPriceExposureBaseUnit,
  EODSnapshot0.CmmdtyPriceExpsrMassUnit AS CmmdtyPriceExpsrMassUnit,
  EODSnapshot0.CmmdtyPriceExpsrVolumeUnit AS CmmdtyPriceExpsrVolumeUnit,
  EODSnapshot0.CommodityPriceExposureQuantity AS CommodityPriceExposureQuantity,
  EODSnapshot0.CommodityPriceExposureBaseQty AS CommodityPriceExposureBaseQty,
  EODSnapshot0.CmmdtyPriceExpsrQtyInMassUnit AS CmmdtyPriceExpsrQtyInMassUnit,
  EODSnapshot0.CmmdtyPriceExpsrQtyInVolUnit AS CmmdtyPriceExpsrQtyInVolUnit,
  EODSnapshot0.CommodityPriceFixationStatus AS CommodityPriceFixationStatus,
  EODSnapshot0.TreasuryPositionAccount AS TreasuryPositionAccount,
  EODSnapshot0.DerivativeContract AS DerivativeContract,
  EODSnapshot0.QuotationCurrency AS QuotationCurrency,
  EODSnapshot0.PaymentCurrency AS PaymentCurrency,
  EODSnapshot0.OptionStrikePrice AS OptionStrikePrice,
  EODSnapshot0.OptionStrikeCurrency AS OptionStrikeCurrency,
  EODSnapshot0.OptionPutCallCode AS OptionPutCallCode,
  EODSnapshot0.OptionExerciseType AS OptionExerciseType,
  EODSnapshot0.EndOfDayBusinessEntityKey AS EndOfDayBusinessEntityKey,
  EODSnapshot0.ReportingMonth AS ReportingMonth,
  EODSnapshot0.ReportingYear AS ReportingYear,
  EODSnapshot0.EvaluationDate AS EvaluationDate,
  EODSnapshot0.EndOfDaySnapshotDate AS EndOfDaySnapshotDate,
  EODSnapshot0.EndOfDaySnapshotDateTime AS EndOfDaySnapshotDateTime,
  cast('02' as cmm_vlogp_consumptiontype) AS ConsumptionType,
  EODSnapshot0.DisplayView AS DisplayView,
  EODSnapshot0.FinInstrExternalReference AS FinInstrExternalReference,
  EODSnapshot0.TradedDrvtvContrSpecification AS TradedDrvtvContrSpecification,
  EODSnapshot0.ParDrvtvContractSpecification AS ParDrvtvContractSpecification,
  EODSnapshot0.RiskViewIsNotRelevant AS RiskViewIsNotRelevant,
  EODSnapshot0.FinancialTransactionPortfolio AS FinancialTransactionPortfolio,
  EODSnapshot0.CmmdtyHdgPlanExposureHedgeBook AS CmmdtyHdgPlanExposureHedgeBook,
  EODSnapshot0.CommodityHedgePlanExposureID AS CommodityHedgePlanExposureID,
  EODSnapshot0._CompanyCode AS _CompanyCode,
  EODSnapshot0._DerivativeContrSpecification AS _DerivativeContrSpecification,
  EODSnapshot0._FinAssetsMgmtProductType AS _FinAssetsMgmtProductType,
  EODSnapshot0._MarketIdentifierCode AS _MarketIdentifierCode,
  EODSnapshot0._PhysicalCommodity AS _PhysicalCommodity,
  EODSnapshot0._UnitOfMeasure AS P_SNAPSHOT1,
  EODSnapshot1._UnitOfMeasure AS _UnitOfMeasure
FROM P_DrvtvPosEndOfDayTechLayer
-- UNION with additional select branch(es): P_DrvtvPosEndOfDayTechLayer
;