I_MaterialSampleDrawing

DDL: I_MATERIALSAMPLEDRAWING SQL: IMATLSMPLDRW Type: view BASIC

Material Sample Drawing

I_MaterialSampleDrawing is a Basic CDS View that provides data about "Material Sample Drawing" in SAP S/4HANA. It reads from 1 data source (qprn) and exposes 25 fields with key field MaterialSampleDrawing. It has 9 associations to related views.

Data Sources (1)

SourceAliasJoin Type
qprn qprn from

Associations (9)

CardinalityTargetAliasCondition
[0..1] I_InspectionLot _InspectionLot $projection.InspectionLot = _InspectionLot.InspectionLot
[0..*] I_MaterialSample _MaterialSample $projection.MaterialSampleDrawing = _MaterialSample.MaterialSampleDrawing
[1..1] I_Plant _Plant $projection.Plant = _Plant.Plant
[1..1] I_Material _Material $projection.Material = _Material.Material
[0..1] I_Customer _Customer $projection.Customer = _Customer.Customer
[0..1] I_Supplier _Supplier $projection.Supplier = _Supplier.Supplier
[0..1] I_Supplier _Manufacturer $projection.Manufacturer = _Manufacturer.Supplier
[0..1] I_MatlQualityAuthGroup _MatlQualityAuthGroup $projection.MatlQualityAuthorizationGroup = _MatlQualityAuthGroup.MatlQualityAuthorizationGroup
[1..1] E_MaterialSampleDrawing _Extension $projection.MaterialSampleDrawing = _Extension.MaterialSampleDrawing

Annotations (11)

NameValueLevelField
AbapCatalog.sqlViewName IMATLSMPLDRW view
ClientHandling.algorithm #SESSION_VARIABLE view
VDM.viewType #BASIC view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #CHECK view
AccessControl.personalData.blocking #REQUIRED view
EndUserText.label Material Sample Drawing view
ObjectModel.representativeKey MaterialSampleDrawing view
ObjectModel.usageType.serviceQuality #A view
ObjectModel.usageType.sizeCategory #M view
ObjectModel.usageType.dataClass #TRANSACTIONAL view

Fields (25)

KeyFieldSource TableSource FieldDescription
KEY MaterialSampleDrawing
InspectionLot qprn plos With Insp. Lot
Material qprn matnr Vehicle Model
Plant qprn werks Receiving Plant
Batch qprn charg Chargeable Proc.
IsBusinessPurposeCompleted qprn cvp_xblck Purpose Completed
Customer qprn kunnr Stock customer
Supplier qprn lifnr Vendor no.
Manufacturer qprn hrstl Manufacturer
MatlQualityAuthorizationGroup
StabilityStudy qprn qmnum Notification
CreatedByUser qprn anlna Created By
CreationDate qprn anldt Date
CreationTime qprn anlzt Time
MaterialSampleReleasedBy qprn frgna Released By
MaterialSampleReleaseDate qprn frgdt Release Date
MaterialSampleReleaseTime qprn frgzt Time
_InspectionLot _InspectionLot
_Plant _Plant
_Material _Material
_Customer _Customer
_Supplier _Supplier
_Manufacturer _Manufacturer
_MaterialSample _MaterialSample
_MatlQualityAuthGroup _MatlQualityAuthGroup

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_MaterialSampleDrawing.
-- 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: IMATLSMPLDRW

CREATE VIEW I_MaterialSampleDrawing AS
SELECT
  cast( qprn.pn_nr as vdm_qpznr preserving type ) AS MaterialSampleDrawing,
  qprn.plos AS InspectionLot,
  qprn.matnr AS Material,
  qprn.werks AS Plant,
  qprn.charg AS Batch,
  qprn.cvp_xblck AS IsBusinessPurposeCompleted,
  qprn.kunnr AS Customer,
  qprn.lifnr AS Supplier,
  qprn.hrstl AS Manufacturer,
  cast( qprn.qmatauth as vdm_qmatauth preserving type ) AS MatlQualityAuthorizationGroup,
  qprn.qmnum AS StabilityStudy,
  qprn.anlna AS CreatedByUser,
  qprn.anldt AS CreationDate,
  qprn.anlzt AS CreationTime,
  qprn.frgna AS MaterialSampleReleasedBy,
  qprn.frgdt AS MaterialSampleReleaseDate,
  qprn.frgzt AS MaterialSampleReleaseTime
FROM qprn
LEFT OUTER JOIN I_InspectionLot AS _InspectionLot ON InspectionLot = _InspectionLot.InspectionLot  -- association [0..1]
LEFT OUTER JOIN I_MaterialSample AS _MaterialSample ON MaterialSampleDrawing = _MaterialSample.MaterialSampleDrawing  -- association [0..*]
LEFT OUTER JOIN I_Plant AS _Plant ON Plant = _Plant.Plant  -- association [1..1]
LEFT OUTER JOIN I_Material AS _Material ON Material = _Material.Material  -- association [1..1]
LEFT OUTER JOIN I_Customer AS _Customer ON Customer = _Customer.Customer  -- association [0..1]
LEFT OUTER JOIN I_Supplier AS _Supplier ON Supplier = _Supplier.Supplier  -- association [0..1]
LEFT OUTER JOIN I_Supplier AS _Manufacturer ON Manufacturer = _Manufacturer.Supplier  -- association [0..1]
LEFT OUTER JOIN I_MatlQualityAuthGroup AS _MatlQualityAuthGroup ON MatlQualityAuthorizationGroup = _MatlQualityAuthGroup.MatlQualityAuthorizationGroup  -- association [0..1]
LEFT OUTER JOIN E_MaterialSampleDrawing AS _Extension ON MaterialSampleDrawing = _Extension.MaterialSampleDrawing  -- association [1..1]
;