C_MatlLdgrPriceByTwoValuations
Compare Two Valuations
C_MatlLdgrPriceByTwoValuations is a Consumption CDS View that provides data about "Compare Two Valuations" in SAP S/4HANA. It reads from 1 data source (P_MatlLedgerPriceByPriceType) and exposes 49 fields with key fields MaterialPriceType, MaterialPriceSubtype, MaterialPriceValidityStartDate, MaterialPriceValidityEndDate, CompanyCode. It is exposed through 1 OData service (UI_FML_MNTRMATLPRICES). It is used in 1 Fiori application: Monitor Material Prices.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| P_MatlLedgerPriceByPriceType | P_MatlLedgerPriceByPriceType | from |
Parameters (2)
| Name | Type | Default |
|---|---|---|
| P_MaterialLedgerValuation1 | fml_valuationtocompare1 | |
| P_MaterialLedgerValuation2 | fml_valuationtocompare2 |
Annotations (9)
| Name | Value | Level | Field |
|---|---|---|---|
| AccessControl.authorizationCheck | #MANDATORY | view | |
| VDM.viewType | #CONSUMPTION | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| ObjectModel.usageType.sizeCategory | #XXL | view | |
| ObjectModel.usageType.dataClass | #MIXED | view | |
| Search.searchable | true | view | |
| Consumption.ranked | true | view | |
| Metadata.allowExtensions | true | view | |
| EndUserText.label | Compare Two Valuations | view |
OData Services (1)
| Service | Binding | Version | Contract | Release |
|---|---|---|---|---|
| UI_FML_MNTRMATLPRICES | UI_FML_MNTRMATLPRICES | V2 | C1 | NOT_RELEASED |
Fiori Apps (1)
| App ID | App Name | Type | Description |
|---|---|---|---|
| F7245 | Monitor Material Prices | Transactional | With this app, you can analyze material prices across all your valuations. You can choose from two views. One view allows to you to analyze price variations through a detailed price comparison in two selected valuations. The other view displays material prices over time in all your valuations. |
Monitor Material Prices
Business Role: Cost Accountant - Inventory
With this app, you can analyze material prices across all your valuations. You can choose from two views. One view allows to you to analyze price variations through a detailed price comparison in two selected valuations. The other view displays material prices over time in all your valuations. You can only use Monitor Material Prices if you have activated the business function Universal Parallel Accounting (FINS_PARALLEL_ACCOUNTING_BF, short: UPA).If you have not activated the UPA business function, you can use Manage Material Valuations (F2680) instead.
Fields (49)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| P_MaterialLedgerValuation1 | ||||
| KEY | MaterialPriceType | MaterialPriceType | Price Type | |
| KEY | MaterialPriceSubtype | MaterialPriceSubtype | ||
| KEY | MaterialPriceValidityStartDate | MaterialPriceValidityStartDate | ||
| KEY | MaterialPriceValidityEndDate | MaterialPriceValidityEndDate | ||
| KEY | CompanyCode | CompanyCode | Receiver Company Code | |
| KEY | MaterialPriceControl | MaterialPriceControl | Price Control | |
| KEY | CurPlanProjSlsOrdValnStrategy | CurPlanProjSlsOrdValnStrategy | ||
| KEY | MaterialPriceCostEstimateStage | MaterialPriceCostEstimateStage | ||
| KEY | InventoryValuationType | InventoryValuationType | Valuation Type | |
| KEY | InvtryValnSpecialStockType | InvtryValnSpecialStockType | ||
| KEY | StkMaterialPriceValuationType | StkMaterialPriceValuationType | ||
| KEY | MaterialPriceExtReference | MaterialPriceExtReference | ||
| KEY | MaterialPriceExtRefCategory | MaterialPriceExtRefCategory | ||
| MatlPrcValdtyStrtFsclYearPerd | MatlPrcValdtyStrtFsclYearPerd | |||
| MatlPrcValdtyEndFsclYearPeriod | MatlPrcValdtyEndFsclYearPeriod | |||
| MatlPrcValidityStartFiscalYear | ||||
| MatlPrcValdtyStartFiscalPeriod | MatlPrcValdtyStartFiscalPeriod | |||
| MatlPrcValidityEndFiscalYear | ||||
| MatlPrcValdtyEndFiscalPeriod | MatlPrcValdtyEndFiscalPeriod | |||
| Material | Material | Vehicle Model | ||
| ValuationArea | ValuationArea | Valuation Area | ||
| SalesOrder | SalesOrder | SD Document | ||
| SalesOrderItem | SalesOrderItem | Sales Order Item | ||
| WBSElementExternalID | _WBSElementBasicData | WBSElementExternalID | WBS Element External ID | |
| Supplier | Supplier | Supplier | ||
| Plant | _Plant | Plant | Valuation Area | |
| MaterialPriceTypeName | ||||
| MaterialPriceControlName | ||||
| MaterialName | ||||
| CompanyCodeName | _CompanyCode | CompanyCodeName | Company Name | |
| PlantName | _Plant | PlantName | Plant Name | |
| InventorySpecialStockTypeName | ||||
| MatlPriceCostEstimateStageName | ||||
| StkMatlPriceValuationTypeName | ||||
| WBSDescription | _WBSElementBasicData | WBSDescription | WBS Element Name | |
| ValuationViewType | ||||
| MatlLdgrPrValnCrcyRoleSemKey | ||||
| ValidOnDate | ValidOnDate | |||
| AmountInFreeDefinedCurrency1 | AmountInFreeDefinedCurrency1 | Amount in Freely Defined Currency 1 | ||
| AmountInFreeDefinedCurrency2 | AmountInFreeDefinedCurrency2 | Amount in Freely Defined Currency 2 | ||
| FreeDefinedCurrency1 | FreeDefinedCurrency1 | Freely Defined Currency 1 | ||
| FreeDefinedCurrency2 | FreeDefinedCurrency2 | Freely Defined Currency 2 | ||
| Currency | Currency | Valuation Crcy | ||
| MatlLdgrPrThresholdInPercent | ||||
| MatlLdgrPriceDifferenceAmount | MatlLdgrPriceDifferenceAmount | |||
| MaterialLedgerValuation1 | ||||
| MaterialLedgerValuation2 | ||||
| _Material | _Material |
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_MatlLdgrPriceByTwoValuations.
-- 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.
-- Parameters: P_MaterialLedgerValuation1 : fml_valuationtocompare1, P_MaterialLedgerValuation2 : fml_valuationtocompare2
CREATE VIEW C_MatlLdgrPriceByTwoValuations AS
SELECT
valueHelpDefinition: [{ entity: { name: 'C_MatlLdgrPrValnCurrencyRoleVH', element: 'MatlLdgrPrValnCrcyRoleSemKey' AS P_MaterialLedgerValuation1,
MaterialPriceType,
MaterialPriceSubtype,
MaterialPriceValidityStartDate,
MaterialPriceValidityEndDate,
CompanyCode,
MaterialPriceControl,
CurPlanProjSlsOrdValnStrategy,
MaterialPriceCostEstimateStage,
InventoryValuationType,
InvtryValnSpecialStockType,
StkMaterialPriceValuationType,
MaterialPriceExtReference,
MaterialPriceExtRefCategory,
MatlPrcValdtyStrtFsclYearPerd,
MatlPrcValdtyEndFsclYearPeriod,
cast(MatlPrcValidityStartFiscalYear as farr_from_fiscal_year preserving type ) AS MatlPrcValidityStartFiscalYear,
MatlPrcValdtyStartFiscalPeriod,
cast(MatlPrcValidityEndFiscalYear as farr_to_fiscal_year preserving type ) AS MatlPrcValidityEndFiscalYear,
MatlPrcValdtyEndFiscalPeriod,
Material,
ValuationArea,
SalesOrder,
SalesOrderItem,
_WBSElementBasicData.WBSElementExternalID AS WBSElementExternalID,
Supplier,
_Plant.Plant AS Plant,
_PriceType._Text[1: Language = $session.system_language].MaterialPriceTypeName AS MaterialPriceTypeName,
_MaterialPriceControl._Text[1: Language = $session.system_language].MaterialPriceControlName AS MaterialPriceControlName,
_Material._Text[1: Language = $session.system_language].MaterialName AS MaterialName,
_CompanyCode.CompanyCodeName AS CompanyCodeName,
_Plant.PlantName AS PlantName,
_InvtryValnSpecialStockType._Text[1: Language = $session.system_language].InventorySpecialStockTypeName AS InventorySpecialStockTypeName,
_MatlPriceCostEstimateStage._Text[1: Language = $session.system_language].MatlPriceCostEstimateStageName AS MatlPriceCostEstimateStageName,
_StkMatlPriceValuationType._Text[1: Language = $session.system_language].StkMatlPriceValuationTypeName AS StkMatlPriceValuationTypeName,
_WBSElementBasicData.WBSDescription AS WBSDescription,
cast(0 as fml_valuation_view_type) AS ValuationViewType,
cast('' as fml_valncrcyrolesemkey) AS MatlLdgrPrValnCrcyRoleSemKey,
ValidOnDate,
AmountInFreeDefinedCurrency1,
AmountInFreeDefinedCurrency2,
FreeDefinedCurrency1,
FreeDefinedCurrency2,
Currency,
cast(MatlLdgrPrThresholdInPercent as fml_threshold_in_percent) AS MatlLdgrPrThresholdInPercent,
MatlLdgrPriceDifferenceAmount,
$parameters.P_MaterialLedgerValuation1 AS MaterialLedgerValuation1,
$parameters.P_MaterialLedgerValuation2 AS MaterialLedgerValuation2
FROM P_MatlLedgerPriceByPriceType
;
Learn More
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- OData Services in SAP S/4HANA Explained
- Service Bindings and Service Definitions in SAP S/4HANA
- SAP Fiori Apps Architecture — How Fiori Apps Connect to Data
- 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