P_DerivativePosBusLayer

DDL: P_DERIVATIVEPOSBUSLAYER SQL: PVFINDBL Type: view COMPOSITE Package: FTR_COMMODITY_CDS

Derivative Position Business Layer

P_DerivativePosBusLayer is a Composite CDS View that provides data about "Derivative Position Business Layer" in SAP S/4HANA. It reads from 1 data source (P_DerivativePosOptnDelta) and exposes 76 fields with key fields CompanyCode, CommodityPriceExposure, CommodityExposureCategory, CommodityPriceSubExposure, CommodityPriceExposureVersion. Part of development package FTR_COMMODITY_CDS.

Data Sources (1)

SourceAliasJoin Type
P_DerivativePosOptnDelta P_DerivativePosOptnDelta from

Parameters (7)

NameTypeDefault
P_DisplayView cds_view_uom
P_EvaluationDate cds_evaluation_date
P_ComparisionDate cds_evaluation_date
P_ConsumptionType cmm_vlogp_consumptiontype
P_OptionDeltaMethod cds_option_delta_method
P_OptionDeltaThreshold cds_option_delta_threshold
P_CommodityViewSelectionType cmm_view_type

Annotations (9)

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

Fields (76)

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

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_DerivativePosBusLayer.
-- 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: PVFINDBL
-- Parameters: P_DisplayView : cds_view_uom, P_EvaluationDate : cds_evaluation_date, P_ComparisionDate : cds_evaluation_date, P_ConsumptionType : cmm_vlogp_consumptiontype, P_OptionDeltaMethod : cds_option_delta_method, P_OptionDeltaThreshold : cds_option_delta_threshold, P_CommodityViewSelectionType : cmm_view_type

CREATE VIEW P_DerivativePosBusLayer AS
SELECT
  CompanyCode,
  CommodityPriceExposure,
  CommodityExposureCategory,
  CommodityPriceSubExposure,
  CommodityPriceExposureVersion,
  $parameters.P_CommodityViewSelectionType AS CommodityViewSelectionType,
  ValidityStartDateTime,
  ValidityEndDateTime,
  ValidityStartDate,
  ValidityStartTime,
  ValidityEndDate,
  ValidityEndTime,
  ValidityStartCharTimestamp,
  ValidityEndCharTimestamp,
  MaximumVersion,
  RiskAnalyzerVersionUUID,
  ExposureDueDate,
  ReportingDate,
  Commodity,
  CashFlowDirection,
  TreasuryPositionLongShortCode,
  DerivativeContrSpecification,
  MarketIdentifierCode,
  QuotationPriceType,
  TimeToMaturity,
  CmmdtyForwardIndexTiming,
  MaturityKeyDate,
  DerivativeContractMaturityCode,
  FinancialInstrProductCategory,
  FinancialAssetsMgmtProductType,
  FinInstrTransactionCategory,
  FinancialInstrumentProductType,
  FinancialInstrActivityCategory,
  FinancialObject,
  HasError,
  TermStartDate,
  TermEndDate,
  DeliveryDate,
  NumberOfCommodityContracts,
  CommodityPriceFixationStatus,
  TreasuryPositionAccount,
  DerivativeContract,
  QuotationCurrency,
  PaymentCurrency,
  OptionStrikePrice,
  OptionStrikeCurrency,
  OptionPutCallCode,
  OptionExerciseType,
  EndOfDayBusinessEntityKey,
  ReportingMonth,
  ReportingYear,
  EvaluationDate,
  EndOfDaySnapshotDate,
  EndOfDaySnapshotDateTime,
  ConsumptionType,
  DisplayView,
  OptionDeltaFactorKeyFigure,
  ExternalKeyFigureValue,
  OptionDeltaFactor,
  CommodityPriceExposureQuantity,
  CommodityPriceExposureUnit,
  FinInstrExternalReference,
  TradedDrvtvContrSpecification,
  ParDrvtvContractSpecification,
  RiskViewIsNotRelevant,
  cast(CommodityPriceExposureQuantity as cds_undlvrd_mkt_pr_exp_qty) AS MarketPriceExposure,
  FinancialTransactionPortfolio,
  CmmdtyHdgPlanExposureHedgeBook,
  CommodityHedgePlanExposureID,
  ProfitCenter
FROM P_DerivativePosOptnDelta
;