C_MaterialPriceVariance

DDL: C_MATERIALPRICEVARIANCE SQL: CMMMATLPRCVAR Type: view CONSUMPTION

Material Price Variance

C_MaterialPriceVariance is a Consumption CDS View that provides data about "Material Price Variance" in SAP S/4HANA. It reads from 4 data sources (I_CalendarDate, I_MatlPriceVarcDocCategoryText, P_MaterialPriceVariance, I_MatlPrcVarcPurgSourceTypeTxt) and exposes 1 field. It has 8 associations to related views.

Data Sources (4)

SourceAliasJoin Type
I_CalendarDate CalendarDate inner
I_MatlPriceVarcDocCategoryText DocumentType inner
P_MaterialPriceVariance P_MaterialPriceVariance from
I_MatlPrcVarcPurgSourceTypeTxt SourceType inner

Parameters (4)

NameTypeDefault
P_DisplayCurrency displaycurrency
P_Material matnr
P_StartDate vdm_validitystart
P_EndDate vdm_validityend

Associations (8)

CardinalityTargetAliasCondition
[1..1] I_Material _Material $projection.Material = _Material.Material
[1..1] I_MaterialGroup _MaterialGroup $projection.MaterialGroup = _MaterialGroup.MaterialGroup
[1..1] I_PurchasingOrganization _PurchasingOrganization $projection.PurchasingOrganization = _PurchasingOrganization.PurchasingOrganization
[1..1] I_PurchasingGroup _PurchasingGroup $projection.PurchasingGroup = _PurchasingGroup.PurchasingGroup
[1..1] I_Supplier _Supplier $projection.Supplier = _Supplier.Supplier
[1..1] I_Plant _Plant $projection.Plant = _Plant.Plant
[1..1] I_CompanyCode _CompanyCode $projection.CompanyCode = _CompanyCode.CompanyCode
[1..1] P_InFoRecordConsumptionTxt _InfoTxt $projection.BOMHasHeaderInfoRecord = _InfoTxt.DomainValue

Annotations (13)

NameValueLevelField
AbapCatalog.sqlViewName CMMMATLPRCVAR view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #CHECK view
EndUserText.label Material Price Variance view
UI.headerInfo.typeName Material Price Variance view
UI.headerInfo.typeNamePlural Material Price Variance view
UI.headerInfo.title.value NetPriceAmount view
UI.headerInfo.description.value NetPriceAmount view
VDM.viewType #CONSUMPTION view
ObjectModel.usageType.dataClass #MIXED view
ObjectModel.usageType.serviceQuality #X view
ObjectModel.usageType.sizeCategory #XL view
AccessControl.personalData.blocking #NOT_REQUIRED view

Fields (1)

KeyFieldSource TableSource FieldDescription
YearWeek_Material Creation Date From

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_MaterialPriceVariance.
-- 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: CMMMATLPRCVAR
-- Parameters: P_DisplayCurrency : displaycurrency, P_Material : matnr, P_StartDate : vdm_validitystart, P_EndDate : vdm_validityend

CREATE VIEW C_MaterialPriceVariance AS
SELECT
  entity: { name:'I_Currency', element:'Currency' AS YearWeek_Material
FROM P_MaterialPriceVariance
INNER JOIN I_MatlPriceVarcDocCategoryText AS DocumentType ON /* join condition not captured in parsed metadata */
INNER JOIN I_MatlPrcVarcPurgSourceTypeTxt AS SourceType ON /* join condition not captured in parsed metadata */
INNER JOIN I_CalendarDate AS CalendarDate ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_Material AS _Material ON Material = _Material.Material  -- association [1..1]
LEFT OUTER JOIN I_MaterialGroup AS _MaterialGroup ON MaterialGroup = _MaterialGroup.MaterialGroup  -- association [1..1]
LEFT OUTER JOIN I_PurchasingOrganization AS _PurchasingOrganization ON PurchasingOrganization = _PurchasingOrganization.PurchasingOrganization  -- association [1..1]
LEFT OUTER JOIN I_PurchasingGroup AS _PurchasingGroup ON PurchasingGroup = _PurchasingGroup.PurchasingGroup  -- association [1..1]
LEFT OUTER JOIN I_Supplier AS _Supplier ON Supplier = _Supplier.Supplier  -- association [1..1]
LEFT OUTER JOIN I_Plant AS _Plant ON Plant = _Plant.Plant  -- association [1..1]
LEFT OUTER JOIN I_CompanyCode AS _CompanyCode ON CompanyCode = _CompanyCode.CompanyCode  -- association [1..1]
LEFT OUTER JOIN P_InFoRecordConsumptionTxt AS _InfoTxt ON BOMHasHeaderInfoRecord = _InfoTxt.DomainValue  -- association [1..1]
;