C_MatlLdgrPriceByTwoValuations

DDL: C_MATLLDGRPRICEBYTWOVALUATIONS Type: view_entity CONSUMPTION

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)

SourceAliasJoin Type
P_MatlLedgerPriceByPriceType P_MatlLedgerPriceByPriceType from

Parameters (2)

NameTypeDefault
P_MaterialLedgerValuation1 fml_valuationtocompare1
P_MaterialLedgerValuation2 fml_valuationtocompare2

Annotations (9)

NameValueLevelField
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)

ServiceBindingVersionContractRelease
UI_FML_MNTRMATLPRICES UI_FML_MNTRMATLPRICES V2 C1 NOT_RELEASED

Fiori Apps (1)

App IDApp NameTypeDescription
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)

KeyFieldSource TableSource FieldDescription
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
;