C_MM_MaterialValueHelp

DDL: C_MM_MATERIALVALUEHELP SQL: CMMMATL_VH Type: view CONSUMPTION

Material Value Help

C_MM_MaterialValueHelp is a Consumption CDS View that provides data about "Material Value Help" in SAP S/4HANA. It reads from 1 data source (I_MaterialPlant) and exposes 22 fields with key fields Material, Plant. It has 9 associations to related views.

Data Sources (1)

SourceAliasJoin Type
I_MaterialPlant I_MaterialPlant from

Associations (9)

CardinalityTargetAliasCondition
[0..1] I_MaterialText _MaterialText $projection.Material = _MaterialText.Material and _MaterialText.Language = $session.system_language
[0..1] I_Plant _Plant $projection.Plant = _Plant.Plant
[0..1] I_MaterialGroupText _MaterialGroupText $projection.MaterialGroup = _MaterialGroupText.MaterialGroup and _MaterialGroupText.Language = $session.system_language
[0..1] I_MaterialTypeText _MaterialTypeText $projection.MaterialType = _MaterialTypeText.MaterialType and _MaterialTypeText.Language = $session.system_language
[0..1] I_Producttype _ProductType $projection.MaterialType = _ProductType.ProductType
[0..1] I_MaterialType _MaterialType $projection.MaterialType = _MaterialType.MaterialType
[0..1] I_MaterialGroup _MaterialGroup $projection.MaterialGroup = _MaterialGroup.MaterialGroup
[0..1] I_CO2eqFprntAvgRltvBaseUoM _CO2eqFprntAvgRltvBaseUoM $projection.Material = _CO2eqFprntAvgRltvBaseUoM.Product and $projection.Plant = _CO2eqFprntAvgRltvBaseUoM.Plant
[0..1] I_UnitOfMeasure _UnitOfMeasure $projection.PFMFootprintUnit = _UnitOfMeasure.UnitOfMeasure

Annotations (13)

NameValueLevelField
AbapCatalog.sqlViewName CMMMATL_VH view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #CHECK view
VDM.viewType #CONSUMPTION view
ObjectModel.dataCategory #VALUE_HELP view
Search.searchable true view
ObjectModel.usageType.dataClass #MASTER view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #S view
EndUserText.label Material Value Help view
ClientHandling.algorithm #SESSION_VARIABLE view
AccessControl.personalData.blocking #NOT_REQUIRED view
Consumption.ranked true view

Fields (22)

KeyFieldSource TableSource FieldDescription
KEY Material I_MaterialPlant Material Vehicle Model
KEY Plant I_MaterialPlant Plant Valuation Area
ProductExternalID _Material ProductExternalID MaterialExternal
MaterialName
PlantName _Plant PlantName Plant Name
MaterialGroup _Material ProductGroup Product Sold Group
MaterialGroupName _MaterialGroupText MaterialGroupName prod Grp Desc.
MaterialType _Material ProductType Product Type Group
AuthorizationGroup _Material AuthorizationGroup AuthorizGroup
MaterialTypeName _MaterialTypeText MaterialTypeName Material Type Desc.
MaterialBaseUnit _Material BaseUnit Unit of Measure
ProductTypeCode _ProductType ProductTypeCode Product Type Group
ProductTypeName Product Type Desc.
PFMFootprintQuantity _CO2eqFprntAvgRltvBaseUoM PFMFootprintFxdPtDcmlQuantity Quantity
PFMFootprintUnit _CO2eqFprntAvgRltvBaseUoM PFMFootprintUnit CO2e Footprint Unit
_Plant _Plant
_MaterialType _MaterialType
_ProductType _ProductType
_MaterialGroup _MaterialGroup
_BaseUnit _BaseUnitOfMeasure
_UnitOfMeasure _UnitOfMeasure
_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_MM_MaterialValueHelp.
-- 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: CMMMATL_VH

CREATE VIEW C_MM_MaterialValueHelp AS
SELECT
  I_MaterialPlant.Material AS Material,
  I_MaterialPlant.Plant AS Plant,
  _Material.ProductExternalID AS ProductExternalID,
  _MaterialText[1: Language = $session.system_language].MaterialName AS MaterialName,
  _Plant.PlantName AS PlantName,
  _Material.ProductGroup AS MaterialGroup,
  _MaterialGroupText.MaterialGroupName AS MaterialGroupName,
  _Material.ProductType AS MaterialType,
  _Material.AuthorizationGroup AS AuthorizationGroup,
  _MaterialTypeText.MaterialTypeName AS MaterialTypeName,
  _Material.BaseUnit AS MaterialBaseUnit,
  _ProductType.ProductTypeCode AS ProductTypeCode,
  _ProductType._ProductTypeCode._Text[1: Language = $session.system_language].Name AS ProductTypeName,
  _CO2eqFprntAvgRltvBaseUoM.PFMFootprintFxdPtDcmlQuantity AS PFMFootprintQuantity,
  _CO2eqFprntAvgRltvBaseUoM.PFMFootprintUnit AS PFMFootprintUnit
FROM I_MaterialPlant
LEFT OUTER JOIN I_MaterialText AS _MaterialText ON Material = _MaterialText.Material AND _MaterialText.Language = $session.system_language  -- association [0..1]
LEFT OUTER JOIN I_Plant AS _Plant ON Plant = _Plant.Plant  -- association [0..1]
LEFT OUTER JOIN I_MaterialGroupText AS _MaterialGroupText ON MaterialGroup = _MaterialGroupText.MaterialGroup AND _MaterialGroupText.Language = $session.system_language  -- association [0..1]
LEFT OUTER JOIN I_MaterialTypeText AS _MaterialTypeText ON MaterialType = _MaterialTypeText.MaterialType AND _MaterialTypeText.Language = $session.system_language  -- association [0..1]
LEFT OUTER JOIN I_Producttype AS _ProductType ON MaterialType = _ProductType.ProductType  -- association [0..1]
LEFT OUTER JOIN I_MaterialType AS _MaterialType ON MaterialType = _MaterialType.MaterialType  -- association [0..1]
LEFT OUTER JOIN I_MaterialGroup AS _MaterialGroup ON MaterialGroup = _MaterialGroup.MaterialGroup  -- association [0..1]
LEFT OUTER JOIN I_CO2eqFprntAvgRltvBaseUoM AS _CO2eqFprntAvgRltvBaseUoM ON Material = _CO2eqFprntAvgRltvBaseUoM.Product AND Plant = _CO2eqFprntAvgRltvBaseUoM.Plant  -- association [0..1]
LEFT OUTER JOIN I_UnitOfMeasure AS _UnitOfMeasure ON PFMFootprintUnit = _UnitOfMeasure.UnitOfMeasure  -- association [0..1]
;