I_MaterialSampleDrawing
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. Part of development package VDM_QM_INSPECTION.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| qprn | qprn | from |
Associations (9)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [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)
| Name | Value | Level | Field |
|---|---|---|---|
| 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)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| 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]
;
Learn More
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- CDS View Annotations — A Complete Guide
- What Is a CDS View in SAP S/4HANA?
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- CDS View Field Mapping and Associations
- Understanding the SAP S/4HANA Data Model
- CDS View Extensions and Custom Fields in SAP S/4HANA
- Released APIs and Stability Contracts in SAP S/4HANA
- BSEG to ACDOCA: The Universal Journal Migration
- Business Partner Migration: KNA1/LFA1 to BUT000
- Material Document Migration: MSEG/MKPF to MATDOC
- How to Find the Right CDS View for an SAP Table
- BW Extractor to CDS View Migration Guide
- S/4HANA CDS View Deprecation: What You Need to Know
- ABAP CDS View Tutorial — From Basics to Real-World Examples
- RAP and CDS Views — Building Transactional Apps in SAP S/4HANA
- Sales Document Status Migration: VBUP/VBUK Removal in S/4HANA
- CO Tables in S/4HANA: COEP, COBK, COSS, COSP to ACDOCA