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.
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 | ||
| Material | qprn | matnr | ||
| Plant | qprn | werks | ||
| Batch | qprn | charg | ||
| IsBusinessPurposeCompleted | qprn | cvp_xblck | ||
| Customer | qprn | kunnr | ||
| Supplier | qprn | lifnr | ||
| Manufacturer | qprn | hrstl | ||
| MatlQualityAuthorizationGroup | ||||
| StabilityStudy | qprn | qmnum | ||
| CreatedByUser | qprn | anlna | ||
| CreationDate | qprn | anldt | ||
| CreationTime | qprn | anlzt | ||
| MaterialSampleReleasedBy | qprn | frgna | ||
| MaterialSampleReleaseDate | qprn | frgdt | ||
| MaterialSampleReleaseTime | qprn | frgzt | ||
| _InspectionLot | _InspectionLot | |||
| _Plant | _Plant | |||
| _Material | _Material | |||
| _Customer | _Customer | |||
| _Supplier | _Supplier | |||
| _Manufacturer | _Manufacturer | |||
| _MaterialSample | _MaterialSample | |||
| _MatlQualityAuthGroup | _MatlQualityAuthGroup |
@AbapCatalog.sqlViewName: 'IMATLSMPLDRW'
@ClientHandling.algorithm: #SESSION_VARIABLE
@VDM.viewType: #BASIC
@AbapCatalog.compiler.compareFilter: true
@AccessControl.authorizationCheck: #CHECK
@AccessControl.personalData.blocking: #REQUIRED
@EndUserText.label: 'Material Sample Drawing'
@ObjectModel.representativeKey: 'MaterialSampleDrawing'
@ObjectModel.usageType: { serviceQuality: #A, sizeCategory: #M, dataClass: #TRANSACTIONAL }
define view I_MaterialSampleDrawing as select from qprn
//Association to other QM nodes
association [0..1] to I_InspectionLot as _InspectionLot
on $projection.InspectionLot = _InspectionLot.InspectionLot
association [0..*] to I_MaterialSample as _MaterialSample
on $projection.MaterialSampleDrawing = _MaterialSample.MaterialSampleDrawing
//Associations to views of other applications
association [1..1] to I_Plant as _Plant
on $projection.Plant = _Plant.Plant
association [1..1] to I_Material as _Material
on $projection.Material = _Material.Material
association [0..1] to I_Customer as _Customer
on $projection.Customer = _Customer.Customer
association [0..1] to I_Supplier as _Supplier
on $projection.Supplier = _Supplier.Supplier
association [0..1] to I_Supplier as _Manufacturer
on $projection.Manufacturer = _Manufacturer.Supplier
association [0..1] to I_MatlQualityAuthGroup as _MatlQualityAuthGroup
on $projection.MatlQualityAuthorizationGroup = _MatlQualityAuthGroup.MatlQualityAuthorizationGroup
//Extension - Extension should not be used, because of Guideline
association [1..1] to E_MaterialSampleDrawing as _Extension
on $projection.MaterialSampleDrawing = _Extension.MaterialSampleDrawing
{
key cast( qprn.pn_nr as vdm_qpznr preserving type ) as MaterialSampleDrawing,
@ObjectModel.foreignKey.association: '_InspectionLot'
qprn.plos as InspectionLot,
@ObjectModel.foreignKey.association: '_Material'
qprn.matnr as Material,
@ObjectModel.foreignKey.association: '_Plant'
qprn.werks as Plant,
qprn.charg as Batch,
@Consumption.hidden: true
qprn.cvp_xblck as IsBusinessPurposeCompleted,
@ObjectModel.foreignKey.association: '_Customer'
qprn.kunnr as Customer,
@ObjectModel.foreignKey.association: '_Supplier'
qprn.lifnr as Supplier,
@ObjectModel.foreignKey.association: '_Manufacturer'
qprn.hrstl as Manufacturer,
@ObjectModel.foreignKey.association: '_MatlQualityAuthGroup'
cast( qprn.qmatauth as vdm_qmatauth preserving type ) as MatlQualityAuthorizationGroup,
qprn.qmnum as StabilityStudy,
@Semantics.user.createdBy: true
qprn.anlna as CreatedByUser,
@Semantics.businessDate.createdAt: true
qprn.anldt as CreationDate,
@Semantics.time: true
qprn.anlzt as CreationTime,
qprn.frgna as MaterialSampleReleasedBy,
qprn.frgdt as MaterialSampleReleaseDate,
qprn.frgzt as MaterialSampleReleaseTime,
//Associations
_InspectionLot,
_Plant,
_Material,
_Customer,
_Supplier,
_Manufacturer,
_MaterialSample,
_MatlQualityAuthGroup
}
Learn More
- What Is a CDS View in SAP S/4HANA?
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- CDS View Annotations — A Complete Guide
- 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