P_InvtryMgmtMatlMstrVH

DDL: P_INVTRYMGMTMATLMSTRVH SQL: PINVTRYMGMATLVH Type: view BASIC

P_InvtryMgmtMatlMstrVH is a Basic CDS View in SAP S/4HANA. It reads from 2 data sources (mara, marc) and exposes 12 fields with key fields Material, Plant, Batch. It has 5 associations to related views.

Data Sources (2)

SourceAliasJoin Type
mara ma from
marc mc inner

Associations (5)

CardinalityTargetAliasCondition
[1..*] I_MaterialText _MaterialText $projection.Material = _MaterialText.Material
[1..1] I_Plant _Plant $projection.Plant = _Plant.Plant
[1..*] I_MaterialTypeText _MaterialTypeText $projection.MaterialType = _MaterialTypeText.MaterialType
[1..*] I_BatchPlant _BatchPlant $projection.Material = _BatchPlant.Material and $projection.Plant = _BatchPlant.Plant
[1..1] I_BatchCrossPlant _BatchCrossPlant $projection.Material = _BatchCrossPlant.Material and $projection.batch = _BatchCrossPlant.Batch

Annotations (12)

NameValueLevelField
AbapCatalog.sqlViewName PINVTRYMGMATLVH view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
AccessControl.authorizationCheck #CHECK view
VDM.viewType #BASIC view
VDM.private true view
ObjectModel.usageType.sizeCategory #S view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.dataClass #MASTER view
ClientHandling.algorithm #SESSION_VARIABLE view
AccessControl.personalData.blocking #NOT_REQUIRED view
Search.searchable true view

Fields (12)

KeyFieldSource TableSource FieldDescription
KEY Material mara matnr Vehicle Model
KEY Plant marc werks Receiving Plant
KEY Batch _BatchPlant Batch Lot No.
MaterialName
PlantName _Plant PlantName Plant Name
MaterialType mara mtart Product Type
MaterialTypeName
ProductHierarchy mara prdha Prod.Hierarchy
AuthorizationGroup mara begru AuthorizGroup
SerialNumberProfile marc sernp SerialNoProfile
MaterialExternalID
_BatchCrossPlant _BatchCrossPlant

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 P_InvtryMgmtMatlMstrVH.
-- 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: PINVTRYMGMATLVH

CREATE VIEW P_InvtryMgmtMatlMstrVH AS
SELECT
  ma.matnr AS Material,
  mc.werks AS Plant,
  _BatchPlant.Batch AS Batch,
  _MaterialText[1: Language=$session.system_language].MaterialName AS MaterialName,
  _Plant.PlantName AS PlantName,
  ma.mtart AS MaterialType,
  _MaterialTypeText[1: Language=$session.system_language].MaterialTypeName AS MaterialTypeName,
  ma.prdha AS ProductHierarchy,
  ma.begru AS AuthorizationGroup,
  mc.sernp AS SerialNumberProfile,
  cast(ma.matnr_external as nsdm_mat_external preserving type ) AS MaterialExternalID
FROM mara AS ma
INNER JOIN marc AS mc ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_MaterialText AS _MaterialText ON Material = _MaterialText.Material  -- association [1..*]
LEFT OUTER JOIN I_Plant AS _Plant ON Plant = _Plant.Plant  -- association [1..1]
LEFT OUTER JOIN I_MaterialTypeText AS _MaterialTypeText ON MaterialType = _MaterialTypeText.MaterialType  -- association [1..*]
LEFT OUTER JOIN I_BatchPlant AS _BatchPlant ON Material = _BatchPlant.Material AND Plant = _BatchPlant.Plant  -- association [1..*]
LEFT OUTER JOIN I_BatchCrossPlant AS _BatchCrossPlant ON Material = _BatchCrossPlant.Material AND batch = _BatchCrossPlant.Batch  -- association [1..1]
;