P_DerivativePosBusLayer
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)
| Source | Alias | Join Type |
|---|---|---|
| P_DerivativePosOptnDelta | P_DerivativePosOptnDelta | from |
Parameters (7)
| Name | Type | Default |
|---|---|---|
| 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)
| Name | Value | Level | Field |
|---|---|---|---|
| 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)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| 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
;
Learn More
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- CDS View Annotations — A Complete Guide
- What Is a CDS View in SAP S/4HANA?
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- CDS View Field Mapping and Associations
- Understanding the SAP S/4HANA Data Model
- CDS View Extensions and Custom Fields in SAP S/4HANA
- Released APIs and Stability Contracts in SAP S/4HANA
- BSEG to ACDOCA: The Universal Journal Migration
- Business Partner Migration: KNA1/LFA1 to BUT000
- Material Document Migration: MSEG/MKPF to MATDOC
- How to Find the Right CDS View for an SAP Table
- BW Extractor to CDS View Migration Guide
- S/4HANA CDS View Deprecation: What You Need to Know
- ABAP CDS View Tutorial — From Basics to Real-World Examples
- RAP and CDS Views — Building Transactional Apps in SAP S/4HANA
- Sales Document Status Migration: VBUP/VBUK Removal in S/4HANA
- CO Tables in S/4HANA: COEP, COBK, COSS, COSP to ACDOCA