I_PRAMatlMjrProdMappg

DDL: I_PRAMATLMJRPRODMAPPG SQL: IPRATSTMMPM Type: view BASIC

Material and Product Code Xref

I_PRAMatlMjrProdMappg is a Basic CDS View (Dimension) that provides data about "Material and Product Code Xref" in SAP S/4HANA. It reads from 1 data source (oiu_cm_mat_prcd) and exposes 6 fields with key field Material. It has 3 associations to related views.

Data Sources (1)

SourceAliasJoin Type
oiu_cm_mat_prcd oiu_cm_mat_prcd from

Associations (3)

CardinalityTargetAliasCondition
[1..1] I_Material _Material $projection.Material = _Material.Material
[1..1] I_MajorProduct _MajorProduct $projection.MajorProduct = _MajorProduct.MajorProduct
[1..1] I_MinorProduct _MinorProduct $projection.MajorProduct = _MinorProduct.MajorProduct and $projection.MinorProduct = _MinorProduct.MinorProduct

Annotations (13)

NameValueLevelField
AbapCatalog.sqlViewName IPRATSTMMPM view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
AccessControl.authorizationCheck #NOT_REQUIRED view
EndUserText.label Material and Product Code Xref view
ObjectModel.usageType.sizeCategory #S view
ObjectModel.usageType.serviceQuality #A view
ObjectModel.usageType.dataClass #MASTER view
Analytics.internalName #LOCAL view
Analytics.dataCategory #DIMENSION view
VDM.viewType #BASIC view
ClientHandling.algorithm #SESSION_VARIABLE view
ObjectModel.representativeKey Material view

Fields (6)

KeyFieldSource TableSource FieldDescription
KEY Material matnr Vehicle Model
MajorProduct majpd_cd Major Product
MinorProduct pd_cd Product code
_Material _Material
_MajorProduct _MajorProduct
_MinorProduct _MinorProduct

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 I_PRAMatlMjrProdMappg.
-- 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: IPRATSTMMPM

CREATE VIEW I_PRAMatlMjrProdMappg AS
SELECT
  matnr AS Material,
  majpd_cd AS MajorProduct,
  pd_cd AS MinorProduct
FROM oiu_cm_mat_prcd
LEFT OUTER JOIN I_Material AS _Material ON Material = _Material.Material  -- association [1..1]
LEFT OUTER JOIN I_MajorProduct AS _MajorProduct ON MajorProduct = _MajorProduct.MajorProduct  -- association [1..1]
LEFT OUTER JOIN I_MinorProduct AS _MinorProduct ON MajorProduct = _MinorProduct.MajorProduct AND MinorProduct = _MinorProduct.MinorProduct  -- association [1..1]
;