C_CmmdtyBeginPosPnLValQry
Beginning Position PnL
C_CmmdtyBeginPosPnLValQry is a Consumption CDS View that provides data about "Beginning Position PnL" in SAP S/4HANA. It reads from 1 data source (I_CmmdtyBeginPosPnLValCube) and exposes 133 fields. Part of development package LOG_CMM_RISK_REPORTING_TPL_BP.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_CmmdtyBeginPosPnLValCube | I_CmmdtyBeginPosPnLValCube | from |
Parameters (14)
| Name | Type | Default |
|---|---|---|
| P_EndOfDaySnapshotFromDate | cmm_snapshot_start | |
| P_EndOfDaySnapshotToDate | cmm_snapshot_end | |
| P_Language | spras | |
| P_MinEndOfDayFromDateTime | cmm_min_eod_from_datetime | |
| P_MaxEndOfDayToDateTime | cmm_max_eod_to_datetime | |
| P_MinEODaySnapshotDate | cmm_min_eod_snapshot_date | |
| P_MinPriceQuotationDate | cmm_min_price_quotation_date | |
| P_MaxPriceQuotationDate | cmm_max_price_quotation_date | |
| P_MinSubstnPrcQtanDate | cmm_min_sub_price_quote_date | |
| P_MaxSubstnPrcQtanDate | cmm_max_sub_price_quote_date | |
| P_MinExchRateMttyDate | cmm_min_ex_rate_maturity_date | |
| P_MaxExchRateMttyDate | cmm_max_ex_rate_maturity_date | |
| P_MinFwdQuotationDate | cmm_min_fwd_quotation_date | |
| P_MaxFwdQuotationDate | cmm_max_fwd_quotation_date |
Annotations (10)
| Name | Value | Level | Field |
|---|---|---|---|
| Analytics.query | true | view | |
| VDM.viewType | #CONSUMPTION | view | |
| AccessControl.authorizationCheck | #PRIVILEGED_ONLY | view | |
| AbapCatalog.sqlViewName | CCMMBPPNLVALQRY | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| EndUserText.label | Beginning Position PnL | view | |
| ObjectModel.usageType.serviceQuality | #D | view | |
| ObjectModel.usageType.sizeCategory | #L | view | |
| ObjectModel.usageType.dataClass | #MIXED | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view |
Fields (133)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| resultElementMinimumEndOfDayFromDateTime | ||||
| resultElementMaximumEndOfDayToDateTime | ||||
| resultElementMinimumEndOfDaySnapshotDate | ||||
| resultElementMinimumPriceQuotationDate | ||||
| resultElementMaximumPriceQuotationDate | ||||
| resultElementMinSubstnPriceQuotationDate | ||||
| resultElementMaxSubstnPriceQuotationDate | ||||
| resultElementMinExchangeRateMaturityDate | ||||
| resultElementMaxExchangeRateMaturityDate | ||||
| resultElementMinimumForwardQuotationDate | ||||
| resultElementMaximumForwardQuotationDate | ||||
| ComparativeEvaluationDate | ComparativeEvaluationDate | |||
| CompanyCode | CompanyCode | Receiver Company Code | ||
| ProfitCenter | ProfitCenter | Profit Center | ||
| ProfitCenterName | ProfitCenterName | Profit Center Name | ||
| Plant | Plant | Valuation Area | ||
| Commodity | Commodity | Commodity Code | ||
| MTMCalculationGroup | MTMCalculationGroup | |||
| PnLEventGroup | PnLEventGroup | |||
| MTMAdjustmentType | MTMAdjustmentType | |||
| OrignRefDocumentShortNumber | OrignRefDocumentShortNumber | |||
| OriginReferenceDocumentItem | OriginReferenceDocumentItem | Root Document Item | ||
| OriginReferenceDocBusObjType | OriginReferenceDocBusObjType | Root (BOR) Obj. Type | ||
| SourceDocumentShortNumber | SourceDocumentShortNumber | |||
| SourceDocumentItem | SourceDocumentItem | |||
| SourceDocumentBusObjType | SourceDocumentBusObjType | |||
| ConditionTermRateFixation | ConditionTermRateFixation | |||
| ConditionType | ConditionType | Condition type | ||
| MarketDCS | MarketDCS | |||
| MktMarketIdentifierCode | MktMarketIdentifierCode | |||
| MktDrvtvContrMaturityCode | MktDrvtvContrMaturityCode | |||
| MktMaturityKeyDate | MktMaturityKeyDate | |||
| MarketBasisType | MarketBasisType | |||
| MarketBasisID | MarketBasisID | |||
| MktQuotationPriceType | MktQuotationPriceType | |||
| MTMDataSourceType | MTMDataSourceType | Type of Data Record | ||
| ComparativeMarketDCS | ComparativeMarketDCS | |||
| ComparMktMarketIdentifierCode | ComparMktMarketIdentifierCode | |||
| ComparMktMaturityKeyDate | ComparMktMaturityKeyDate | |||
| ComparMktDrvtvContrCode | ComparMktDrvtvContrCode | |||
| ComparMarketBasisID | ComparMarketBasisID | |||
| ComparMarketBasisType | ComparMarketBasisType | |||
| ComparMktQuotationPriceType | ComparMktQuotationPriceType | |||
| PricingStatus | PricingStatus | |||
| SubConditionType | SubConditionType | |||
| HasError | HasError | TRUE | ||
| SystemMessageNumber | SystemMessageNumber | Message Number | ||
| CommodityUnit | CommodityUnit | Order Unit | ||
| ConditionTermRateQuantityUnit | ConditionTermRateQuantityUnit | |||
| StatisticsCurrency | StatisticsCurrency | |||
| PnLValue | PnLValue | |||
| MktPricePnLValue | MktPricePnLValue | |||
| SpreadPnLValue | SpreadPnLValue | |||
| DocToStstcFXPnLValue | DocToStstcFXPnLValue | |||
| MktToStstcFXPnLValue | MktToStstcFXPnLValue | |||
| MktValAdjmtFXBroughtFwdVal | MktValAdjmtFXBroughtFwdVal | |||
| CommodityQuantityInTermUnit | CommodityQuantityInTermUnit | |||
| ComparCmmdtyQuantityInTermUnit | ComparCmmdtyQuantityInTermUnit | |||
| PnLCalculationRelevantQuantity | PnLCalculationRelevantQuantity | |||
| MarketConditionTermRate | MarketConditionTermRate | |||
| ComparMktConditionTermRate | ComparMktConditionTermRate | |||
| PnLCalculationRelevantValue | PnLCalculationRelevantValue | |||
| ContrSpreadCndnTermRate | ContrSpreadCndnTermRate | |||
| ComparContrSpreadCndnTermRate | ComparContrSpreadCndnTermRate | |||
| FixedMktSpreadCndnTermRate | FixedMktSpreadCndnTermRate | |||
| FloatingMktSpreadCndnTermRate | FloatingMktSpreadCndnTermRate | |||
| ContractConditionTermRate | ContractConditionTermRate | |||
| ComparContrCndnTermRate | ComparContrCndnTermRate | |||
| MktMarketToDocExchRate | MktMarketToDocExchRate | |||
| ComparMktMarketToDocExchRate | ComparMktMarketToDocExchRate | |||
| ContractMktToDocExchRate | ContractMktToDocExchRate | |||
| MktDocToStstcExchRate | MktDocToStstcExchRate | |||
| ComparMktDocToStstcExchRate | ComparMktDocToStstcExchRate | |||
| MktMarketToStstcExchRate | MktMarketToStstcExchRate | |||
| ComparMktMarketToStstcExchRate | ComparMktMarketToStstcExchRate | |||
| MktAdjmtValDocToStstcExchRate | MktAdjmtValDocToStstcExchRate | |||
| MktAdjmtValueCndnTermValue | MktAdjmtValueCndnTermValue | |||
| ConditionTermFactor | ConditionTermFactor | |||
| ComparConditionTermFactor | ComparConditionTermFactor | |||
| SalesOrganization | SalesOrganization | Sales Organization | ||
| DistributionChannel | DistributionChannel | RefDistCh-Cust/Mat. | ||
| Division | Division | Internal Division ID | ||
| Creditor | Creditor | Supplier | ||
| SoldToParty | SoldToParty | Sold-to Party | ||
| Material | Material | Vehicle Model | ||
| StorageLocation | StorageLocation | StorageLocation | ||
| Batch | Batch | Lot No. | ||
| IncotermsClassification | IncotermsClassification | Incoterms | ||
| IncotermsTransferLocation | IncotermsTransferLocation | Incoterms 2 | ||
| ConditionApplication | ConditionApplication | Application | ||
| ReferenceDocumentLongNumber | ReferenceDocumentLongNumber | |||
| ReferenceDocumentItem | ReferenceDocumentItem | Reference item | ||
| ReferenceDocBusObjType | ReferenceDocBusObjType | Pred(BOR) Object Typ | ||
| DeliveryDate | DeliveryDate | Delivery Date | ||
| ExpectedPaymentDate | ExpectedPaymentDate | |||
| DocumentCurrency | DocumentCurrency | Document Currency | ||
| SpreadCurrency | SpreadCurrency | |||
| BusinessArea | BusinessArea | Business Area | ||
| PurchasingOrganization | PurchasingOrganization | Purchasing Organization | ||
| MaterialGroup | MaterialGroup | Product Group | ||
| IsIntercompanyTransfer | IsIntercompanyTransfer | |||
| ExchRateMaturityDate | ExchRateMaturityDate | |||
| FixedExchRateDate | FixedExchRateDate | |||
| QuotationPeriodReferenceDate | QuotationPeriodReferenceDate | |||
| ComparQtanPeriodReferenceDate | ComparQtanPeriodReferenceDate | |||
| QuotationPeriodStartDate | QuotationPeriodStartDate | |||
| QuotationPeriodEndDate | QuotationPeriodEndDate | |||
| QuotationGroup | QuotationGroup | |||
| QuotationGroupCalculationRule | QuotationGroupCalculationRule | |||
| CndnTermRateFixationDate | CndnTermRateFixationDate | |||
| CndnTermRateFixationTime | CndnTermRateFixationTime | |||
| CndnTermExchRateFixationDate | CndnTermExchRateFixationDate | |||
| CndnTermExchRateFixationTime | CndnTermExchRateFixationTime | |||
| MTMConditionGroupCategoryName | ||||
| MTMConditionGroup | MTMConditionGroup | |||
| MTMCalcGrpMarketPriceCondition | MTMCalcGrpMarketPriceCondition | |||
| PriceIsRealized | PriceIsRealized | |||
| PricingKey | PricingKey | Pricing Key | ||
| CmmdtyPriceExpsrQtyInMassUnit | CmmdtyPriceExpsrQtyInMassUnit | |||
| CmmdtyPriceExpsrMassUnit | CmmdtyPriceExpsrMassUnit | |||
| CmmdtyPriceExpsrQtyInVolUnit | CmmdtyPriceExpsrQtyInVolUnit | |||
| CmmdtyPriceExpsrVolumeUnit | CmmdtyPriceExpsrVolumeUnit | |||
| SystemMessageText | ||||
| ConditionTermRateCurrency | ConditionTermRateCurrency | |||
| MarketToTermExchangeRateType | MarketToTermExchangeRateType | |||
| CndnToStstcExchangeRateType | CndnToStstcExchangeRateType | |||
| ConditionToDocExchangeRateType | ConditionToDocExchangeRateType | |||
| DocToStstcExchangeRateType | DocToStstcExchangeRateType | |||
| PriceSettingMethod | PriceSettingMethod | |||
| PriceSettingMethodStatus | PriceSettingMethodStatus | |||
| ValidToDateTime | ValidToDateTime | Time Stamp | ||
| PricingProcedure | PricingProcedure | Procedure | ||
| PricingConditionTerm | PricingConditionTerm | Term Number |
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 C_CmmdtyBeginPosPnLValQry.
-- 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: CCMMBPPNLVALQRY
-- Parameters: P_EndOfDaySnapshotFromDate : cmm_snapshot_start, P_EndOfDaySnapshotToDate : cmm_snapshot_end, P_Language : spras, P_MinEndOfDayFromDateTime : cmm_min_eod_from_datetime, P_MaxEndOfDayToDateTime : cmm_max_eod_to_datetime, P_MinEODaySnapshotDate : cmm_min_eod_snapshot_date, P_MinPriceQuotationDate : cmm_min_price_quotation_date, P_MaxPriceQuotationDate : cmm_max_price_quotation_date, P_MinSubstnPrcQtanDate : cmm_min_sub_price_quote_date, P_MaxSubstnPrcQtanDate : cmm_max_sub_price_quote_date, P_MinExchRateMttyDate : cmm_min_ex_rate_maturity_date, P_MaxExchRateMttyDate : cmm_max_ex_rate_maturity_date, P_MinFwdQuotationDate : cmm_min_fwd_quotation_date, P_MaxFwdQuotationDate : cmm_max_fwd_quotation_date
CREATE VIEW C_CmmdtyBeginPosPnLValQry AS
SELECT
resultElement: 'MinimumEndOfDayFromDateTime' AS resultElementMinimumEndOfDayFromDateTime,
resultElement: 'MaximumEndOfDayToDateTime' AS resultElementMaximumEndOfDayToDateTime,
resultElement: 'MinimumEndOfDaySnapshotDate' AS resultElementMinimumEndOfDaySnapshotDate,
resultElement: 'MinimumPriceQuotationDate' AS resultElementMinimumPriceQuotationDate,
resultElement: 'MaximumPriceQuotationDate' AS resultElementMaximumPriceQuotationDate,
resultElement: 'MinSubstnPriceQuotationDate' AS resultElementMinSubstnPriceQuotationDate,
resultElement: 'MaxSubstnPriceQuotationDate' AS resultElementMaxSubstnPriceQuotationDate,
resultElement: 'MinExchangeRateMaturityDate' AS resultElementMinExchangeRateMaturityDate,
resultElement: 'MaxExchangeRateMaturityDate' AS resultElementMaxExchangeRateMaturityDate,
resultElement: 'MinimumForwardQuotationDate' AS resultElementMinimumForwardQuotationDate,
resultElement: 'MaximumForwardQuotationDate' AS resultElementMaximumForwardQuotationDate,
ComparativeEvaluationDate,
CompanyCode,
ProfitCenter,
ProfitCenterName,
Plant,
Commodity,
MTMCalculationGroup,
PnLEventGroup,
MTMAdjustmentType,
OrignRefDocumentShortNumber,
OriginReferenceDocumentItem,
OriginReferenceDocBusObjType,
SourceDocumentShortNumber,
SourceDocumentItem,
SourceDocumentBusObjType,
ConditionTermRateFixation,
ConditionType,
MarketDCS,
MktMarketIdentifierCode,
MktDrvtvContrMaturityCode,
MktMaturityKeyDate,
MarketBasisType,
MarketBasisID,
MktQuotationPriceType,
MTMDataSourceType,
ComparativeMarketDCS,
ComparMktMarketIdentifierCode,
ComparMktMaturityKeyDate,
ComparMktDrvtvContrCode,
ComparMarketBasisID,
ComparMarketBasisType,
ComparMktQuotationPriceType,
PricingStatus,
SubConditionType,
HasError,
SystemMessageNumber,
CommodityUnit,
ConditionTermRateQuantityUnit,
StatisticsCurrency,
PnLValue,
MktPricePnLValue,
SpreadPnLValue,
DocToStstcFXPnLValue,
MktToStstcFXPnLValue,
MktValAdjmtFXBroughtFwdVal,
CommodityQuantityInTermUnit,
ComparCmmdtyQuantityInTermUnit,
PnLCalculationRelevantQuantity,
MarketConditionTermRate,
ComparMktConditionTermRate,
PnLCalculationRelevantValue,
ContrSpreadCndnTermRate,
ComparContrSpreadCndnTermRate,
FixedMktSpreadCndnTermRate,
FloatingMktSpreadCndnTermRate,
ContractConditionTermRate,
ComparContrCndnTermRate,
MktMarketToDocExchRate,
ComparMktMarketToDocExchRate,
ContractMktToDocExchRate,
MktDocToStstcExchRate,
ComparMktDocToStstcExchRate,
MktMarketToStstcExchRate,
ComparMktMarketToStstcExchRate,
MktAdjmtValDocToStstcExchRate,
MktAdjmtValueCndnTermValue,
ConditionTermFactor,
ComparConditionTermFactor,
SalesOrganization,
DistributionChannel,
Division,
Creditor,
SoldToParty,
Material,
StorageLocation,
Batch,
IncotermsClassification,
IncotermsTransferLocation,
ConditionApplication,
ReferenceDocumentLongNumber,
ReferenceDocumentItem,
ReferenceDocBusObjType,
DeliveryDate,
ExpectedPaymentDate,
DocumentCurrency,
SpreadCurrency,
BusinessArea,
PurchasingOrganization,
MaterialGroup,
IsIntercompanyTransfer,
ExchRateMaturityDate,
FixedExchRateDate,
QuotationPeriodReferenceDate,
ComparQtanPeriodReferenceDate,
QuotationPeriodStartDate,
QuotationPeriodEndDate,
QuotationGroup,
QuotationGroupCalculationRule,
CndnTermRateFixationDate,
CndnTermRateFixationTime,
CndnTermExchRateFixationDate,
CndnTermExchRateFixationTime,
_MTMConditionGroupCategory._MtmConditionGroupCategoryT[1:Language = :P_Language].MTMConditionGroupCategoryName AS MTMConditionGroupCategoryName,
MTMConditionGroup,
MTMCalcGrpMarketPriceCondition,
PriceIsRealized,
PricingKey,
CmmdtyPriceExpsrQtyInMassUnit,
CmmdtyPriceExpsrMassUnit,
CmmdtyPriceExpsrQtyInVolUnit,
CmmdtyPriceExpsrVolumeUnit,
_CmmdtyMTMMessage[1:Language = :P_Language].SystemMessageText AS SystemMessageText,
ConditionTermRateCurrency,
MarketToTermExchangeRateType,
CndnToStstcExchangeRateType,
ConditionToDocExchangeRateType,
DocToStstcExchangeRateType,
PriceSettingMethod,
PriceSettingMethodStatus,
ValidToDateTime,
PricingProcedure,
PricingConditionTerm
FROM I_CmmdtyBeginPosPnLValCube
;
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