P_ACMCmmdtyStockValExtn
P_ACMCmmdtyStockValExtn is a Composite CDS View in SAP S/4HANA. It reads from 1 data source (P_CmmdtyStockValue_Final) and exposes 111 fields with key fields PricingKey, Version, PricingDocumentItem, ConditionType, SubConditionType. It has 2 associations to related views.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| P_CmmdtyStockValue_Final | P_CmmdtyStockValue_Final | from |
Parameters (15)
| Name | Type | Default |
|---|---|---|
| P_EvaluationDate | cmm_eval_keydate | |
| P_ExchRateEvaluationDate | cmm_eval_keydate | |
| P_EndOfDaySnapshotFromDate | cmm_dend_cutdate | |
| P_EndOfDaySnapshotToDate | cmm_dend_cutdate | |
| P_MTMDataSelectionType | cmm_vlogp_consumptiontype | |
| P_MinEndOfDayFromDateTime | cmm_min_eod_from_datetime | |
| P_MaxEndOfDayToDateTime | cmm_max_eod_to_datetime | |
| 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 |
Associations (2)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [1..1] | E_VersionedLogisticDocument | _Extension | $projection.PricingKey = _Extension.PricingKey and $projection.Version = _Extension.Version and $projection.PricingDocumentItem = _Extension.PricingDocumentItem and $projection.ConditionType = _Extension.ConditionType and $projection.SubConditionType = _Extension.SubConditionType |
| [1..1] | E_Vlogpkonvd | _Extension_Konvd | $projection.PricingKey = _Extension_Konvd.PricingKey and $projection.PricingDocumentItem = _Extension_Konvd.PricingDocumentItem and $projection.ConditionType = _Extension_Konvd.ConditionType and $projection.SubConditionType = _Extension_Konvd.SubConditionType and $projection.VersStockRecordUUID = _Extension_Konvd.VersStockRecordUUID |
Annotations (7)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | PACMCMMDTSTKVALE | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AbapCatalog.preserveKey | true | view | |
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| VDM.viewType | #COMPOSITE | view | |
| VDM.private | true | view |
Fields (111)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | PricingKey | PricingKey | Pricing Key | |
| KEY | Version | Version | XML Vers. | |
| KEY | PricingDocumentItem | PricingDocumentItem | Item | |
| KEY | ConditionType | ConditionType | Condition type | |
| KEY | SubConditionType | SubConditionType | ||
| KEY | VersStockRecordUUID | VersStockRecordUUID | ||
| KEY | ValuationDate | ValuationDate | Valuation Date | |
| KEY | EndOfDaySnapshotDate | EndOfDaySnapshotDate | ||
| EndOfDayBusinessEntityKey | EndOfDayBusinessEntityKey | |||
| MTMDataSourceType | MTMDataSourceType | Type of Data Record | ||
| EndOfDaySnapshotDateTimeTo | EndOfDaySnapshotDateTimeTo | |||
| EndOfDaySnapshotDateTimeFrom | EndOfDaySnapshotDateTimeFrom | |||
| BusinessDocumentCompanyCode | ||||
| 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 | ||
| PhysicalCommodity | PhysicalCommodity | |||
| Plant | Plant | Valuation Area | ||
| StorageLocation | StorageLocation | StorageLocation | ||
| Batch | Batch | Lot No. | ||
| GoodsMovementType | GoodsMovementType | Movement Type | ||
| n_2464020IncotermsClassification | ||||
| IncotermsTransferLocation | IncotermsTransferLocation | Incoterms 2 | ||
| ConditionApplication | ConditionApplication | Application | ||
| ValidityStartDate | ValidityStartDate | Validity Start Date | ||
| SourceDocument | SourceDocument | Document | ||
| SourceDocumentItem | SourceDocumentItem | |||
| SourceDocumentBusObjType | SourceDocumentBusObjType | |||
| OriginReferenceDocument | OriginReferenceDocument | Root Document | ||
| OriginReferenceDocBusObjType | OriginReferenceDocBusObjType | Root (BOR) Obj. Type | ||
| OriginReferenceDocumentItem | OriginReferenceDocumentItem | Root Document Item | ||
| ReferenceDocument | ReferenceDocument | Reference Document | ||
| ReferenceDocumentItem | ReferenceDocumentItem | Reference item | ||
| ReferenceDocBusObjType | ReferenceDocBusObjType | Pred(BOR) Object Typ | ||
| DeliveryDate | DeliveryDate | Delivery Date | ||
| DeliveryYear | DeliveryYear | |||
| DeliveryMonth | DeliveryMonth | |||
| ExpectedPaymentDate | ExpectedPaymentDate | |||
| ExchRateEvaluationDate | ExchRateEvaluationDate | |||
| DocToStstcCrcyExchRateEvalDate | DocToStstcCrcyExchRateEvalDate | |||
| StatisticsCurrency | StatisticsCurrency | |||
| DocumentCurrency | DocumentCurrency | Document Currency | ||
| ProfitCenter | ProfitCenter | Profit Center | ||
| BusinessArea | BusinessArea | Business Area | ||
| PurchasingOrganization | PurchasingOrganization | Purchasing Organization | ||
| MaterialGroup | MaterialGroup | Product Group | ||
| IsIntercompanyTransfer | IsIntercompanyTransfer | |||
| CommodityPricingEngineConditionTermRate | ||||
| MarketToDocExchRate | MarketToDocExchRate | |||
| MarketToDocFrozenExchRate | MarketToDocFrozenExchRate | |||
| ConditionTermRateCurrency | ConditionTermRateCurrency | |||
| ConditionTermRateQuantity | ConditionTermRateQuantity | |||
| ConditionTermRateQuantityUnit | ConditionTermRateQuantityUnit | |||
| ConditionTermValueInDocCrcy | ConditionTermValueInDocCrcy | |||
| ConditionTermValueInStstcCrcy | ConditionTermValueInStstcCrcy | |||
| DocToStatisticalExchRate | DocToStatisticalExchRate | |||
| ConditionTermValueCurrency | ConditionTermValueCurrency | |||
| QuotationPeriodReferenceDate | QuotationPeriodReferenceDate | |||
| QuotationsCommodityCurveBasisID | ||||
| DerivativeContrSpecification | DerivativeContrSpecification | DCS ID | ||
| MarketIdentifierCode | MarketIdentifierCode | MIC | ||
| MaturityKeyDate | MaturityKeyDate | Maturity Key Date | ||
| DerivativeContractMaturityCode | DerivativeContractMaturityCode | Contr. Maturity Code | ||
| MarketPriceCurrency | MarketPriceCurrency | Market Price Crcy | ||
| OldestQuotationDate | OldestQuotationDate | |||
| SystemMessageNumber | SystemMessageNumber | Message Number | ||
| HasError | HasError | TRUE | ||
| MiscellanousfieldsCommodityQuantity | ||||
| CommodityUnit | CommodityUnit | Order Unit | ||
| CommodityQuantityInTermUnit | CommodityQuantityInTermUnit | |||
| n_2308030MTMConditionGroupCategory | ||||
| MTMConditionGroup | MTMConditionGroup | |||
| MTMCalculationGroup | MTMCalculationGroup | |||
| MTMAdjustmentType | MTMAdjustmentType | |||
| MTMCalcGrpMarketPriceCondition | MTMCalcGrpMarketPriceCondition | |||
| ConditionTermRateIsFixed | ConditionTermRateIsFixed | |||
| ConditionTermExchRateIsFixed | ConditionTermExchRateIsFixed | |||
| ConditionTermRateFixation | ConditionTermRateFixation | |||
| PricingStatus | PricingStatus | |||
| CndnTermRateFixationDate | CndnTermRateFixationDate | |||
| CndnTermRateFixationTime | CndnTermRateFixationTime | |||
| CndnTermExchRateFixationDate | CndnTermExchRateFixationDate | |||
| CndnTermExchRateFixationTime | CndnTermExchRateFixationTime | |||
| ExchRateMaturityDate | ExchRateMaturityDate | |||
| BsMktRefDrvtvContrMaturityCode | BsMktRefDrvtvContrMaturityCode | |||
| BasisMarketRefRate | BasisMarketRefRate | |||
| BasisMarketRefRateCurrency | BasisMarketRefRateCurrency | |||
| BasisMarketRefKeyDate | BasisMarketRefKeyDate | |||
| BasisMarketRefAdjustmentSpread | BasisMarketRefAdjustmentSpread | |||
| ConditionTermFactor | ConditionTermFactor | |||
| CmmdtyPriceExpsrMassUnit | CmmdtyPriceExpsrMassUnit | |||
| CmmdtyPriceExpsrQtyInMassUnit | CmmdtyPriceExpsrQtyInMassUnit | |||
| CmmdtyPriceExpsrVolumeUnit | CmmdtyPriceExpsrVolumeUnit | |||
| CmmdtyPriceExpsrQtyInVolUnit | CmmdtyPriceExpsrQtyInVolUnit | |||
| PricedContractsExposureQty | PricedContractQuantity | |||
| UnpricedContrPriceExposureQty | UnpricedContractQuantity | |||
| TodayPricedContractsExpsrQty | TodayPricedQuantity | |||
| PrcdContrExposureQtyInMassUnit | PricedContractQuantityInMass | |||
| UnpricedContrPrcExpsrQtyInMass | UnpricedContractQuantityInMass | |||
| TodayPrcdContrExpsrQtyInMass | TodayPricedQuantityInMass | |||
| PrcdContrExpsrQtyInVolumeUnit | PricedContractQuantityInVol | |||
| UnpricedContrPrcExpsrQtyInVol | UnpricedContractQuantityInVol | |||
| TodayPrcdContrExpsrQtyInVolume | TodayPricedQuantityInVol | |||
| ContrPriceExposureIsExecuted | ContrPriceExposureIsExecuted | |||
| NmbrOfPrcdQuotationPeriodDays | PricedDays | |||
| NmbrOfUnpricedQtanPeriodDays | UnpricedDays | |||
| NmbrOfValnDtePrcdQtanPerdDays | TodayDays | |||
| CmmdtyForwardIndexTiming | cmmdtyforwardindextiming |
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_ACMCmmdtyStockValExtn.
-- 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: PACMCMMDTSTKVALE
-- Parameters: P_EvaluationDate : cmm_eval_keydate, P_ExchRateEvaluationDate : cmm_eval_keydate, P_EndOfDaySnapshotFromDate : cmm_dend_cutdate, P_EndOfDaySnapshotToDate : cmm_dend_cutdate, P_MTMDataSelectionType : cmm_vlogp_consumptiontype, P_MinEndOfDayFromDateTime : cmm_min_eod_from_datetime, P_MaxEndOfDayToDateTime : cmm_max_eod_to_datetime, 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 P_ACMCmmdtyStockValExtn AS
SELECT
PricingKey,
Version,
PricingDocumentItem,
ConditionType,
SubConditionType,
VersStockRecordUUID,
ValuationDate,
EndOfDaySnapshotDate,
EndOfDayBusinessEntityKey,
MTMDataSourceType,
EndOfDaySnapshotDateTimeTo,
EndOfDaySnapshotDateTimeFrom,
SalesOrganization,
DistributionChannel,
Division,
Creditor,
SoldToParty,
Material,
PhysicalCommodity,
Plant,
StorageLocation,
Batch,
GoodsMovementType,
IncotermsTransferLocation,
ConditionApplication,
ValidityStartDate,
SourceDocument,
SourceDocumentItem,
SourceDocumentBusObjType,
OriginReferenceDocument,
OriginReferenceDocBusObjType,
OriginReferenceDocumentItem,
ReferenceDocument,
ReferenceDocumentItem,
ReferenceDocBusObjType,
DeliveryDate,
DeliveryYear,
DeliveryMonth,
ExpectedPaymentDate,
ExchRateEvaluationDate,
DocToStstcCrcyExchRateEvalDate,
StatisticsCurrency,
DocumentCurrency,
ProfitCenter,
BusinessArea,
PurchasingOrganization,
MaterialGroup,
IsIntercompanyTransfer,
MarketToDocExchRate,
MarketToDocFrozenExchRate,
ConditionTermRateCurrency,
ConditionTermRateQuantity,
ConditionTermRateQuantityUnit,
ConditionTermValueInDocCrcy,
ConditionTermValueInStstcCrcy,
DocToStatisticalExchRate,
ConditionTermValueCurrency,
QuotationPeriodReferenceDate,
DerivativeContrSpecification,
MarketIdentifierCode,
MaturityKeyDate,
DerivativeContractMaturityCode,
MarketPriceCurrency,
OldestQuotationDate,
SystemMessageNumber,
HasError,
CommodityUnit,
CommodityQuantityInTermUnit,
MTMConditionGroup,
MTMCalculationGroup,
MTMAdjustmentType,
MTMCalcGrpMarketPriceCondition,
ConditionTermRateIsFixed,
ConditionTermExchRateIsFixed,
ConditionTermRateFixation,
PricingStatus,
CndnTermRateFixationDate,
CndnTermRateFixationTime,
CndnTermExchRateFixationDate,
CndnTermExchRateFixationTime,
ExchRateMaturityDate,
BsMktRefDrvtvContrMaturityCode,
BasisMarketRefRate,
BasisMarketRefRateCurrency,
BasisMarketRefKeyDate,
BasisMarketRefAdjustmentSpread,
ConditionTermFactor,
CmmdtyPriceExpsrMassUnit,
CmmdtyPriceExpsrQtyInMassUnit,
CmmdtyPriceExpsrVolumeUnit,
CmmdtyPriceExpsrQtyInVolUnit,
PricedContractQuantity AS PricedContractsExposureQty,
UnpricedContractQuantity AS UnpricedContrPriceExposureQty,
TodayPricedQuantity AS TodayPricedContractsExpsrQty,
PricedContractQuantityInMass AS PrcdContrExposureQtyInMassUnit,
UnpricedContractQuantityInMass AS UnpricedContrPrcExpsrQtyInMass,
TodayPricedQuantityInMass AS TodayPrcdContrExpsrQtyInMass,
PricedContractQuantityInVol AS PrcdContrExpsrQtyInVolumeUnit,
UnpricedContractQuantityInVol AS UnpricedContrPrcExpsrQtyInVol,
TodayPricedQuantityInVol AS TodayPrcdContrExpsrQtyInVolume,
ContrPriceExposureIsExecuted,
PricedDays AS NmbrOfPrcdQuotationPeriodDays,
UnpricedDays AS NmbrOfUnpricedQtanPeriodDays,
TodayDays AS NmbrOfValnDtePrcdQtanPerdDays,
CmmdtyForwardIndexTiming
FROM P_CmmdtyStockValue_Final
LEFT OUTER JOIN E_VersionedLogisticDocument AS _Extension ON PricingKey = _Extension.PricingKey AND Version = _Extension.Version AND PricingDocumentItem = _Extension.PricingDocumentItem AND ConditionType = _Extension.ConditionType AND SubConditionType = _Extension.SubConditionType -- association [1..1]
LEFT OUTER JOIN E_Vlogpkonvd AS _Extension_Konvd ON PricingKey = _Extension_Konvd.PricingKey AND PricingDocumentItem = _Extension_Konvd.PricingDocumentItem AND ConditionType = _Extension_Konvd.ConditionType AND SubConditionType = _Extension_Konvd.SubConditionType AND VersStockRecordUUID = _Extension_Konvd.VersStockRecordUUID -- association [1..1]
;
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