C_Materialsampleobjpage

DDL: C_MATERIALSAMPLEOBJPAGE Type: view CONSUMPTION Package: ODATA_QM_SAMPLE

Material Sample

C_Materialsampleobjpage is a Consumption CDS View that provides data about "Material Sample" in SAP S/4HANA. It reads from 1 data source (I_MaterialSample) and exposes 77 fields with key field MaterialSample. It has 12 associations to related views. Part of development package ODATA_QM_SAMPLE.

Data Sources (1)

SourceAliasJoin Type
I_MaterialSample I_MaterialSample from

Associations (12)

CardinalityTargetAliasCondition
[0..*] C_Materialsamplestatus _StatusObjectStatus $projection.ObjectInternalID = _StatusObjectStatus.StatusObject
[0..1] I_Plant _Plant $projection.Plant = _Plant.Plant
[0..*] C_MtrlSmplSameDrwbngOp _MtrlSmplSameDrwbngOp $projection.MaterialSampleDrawing = _MtrlSmplSameDrwbngOp.MaterialSampleDrawing
[0..*] I_MaterialSample _Samples $projection.MaterialSampleDrawing = _Samples.MaterialSampleDrawing
[0..1] I_MaterialSampleDetails _SampleDetails $projection.MaterialSample = _SampleDetails.MaterialSample
[0..*] I_FunctionalLocationText _FunctionalLocationText $projection.MaterialSampleDrawingLocation = _FunctionalLocationText.FunctionalLocation
[0..1] I_MatlSmplContainerType _MatlSmplContainerType $projection.MatlSmplContainerType = _MatlSmplContainerType.MatlSmplContainerType
[0..1] I_StatusObjectActiveStatus _SampleStoredStatus $projection.ObjectInternalID = _SampleStoredStatus.StatusObject and _SampleStoredStatus.StatusCode = 'I0363'
[0..1] I_StatusObjectActiveStatus _SampleExistStatus $projection.ObjectInternalID = _SampleExistStatus.StatusObject and _SampleExistStatus.StatusCode = 'I0362'
[0..1] I_StsObjConcatActiveStsILL _StsObjConcatActvStatus _StsObjConcatActvStatus.StatusObject = $projection.ObjectInternalID
[0..1] I_User _UserChangedBy _UserChangedBy.UserID = I_MaterialSample.MaterialSampleChangedBy
[0..1] I_InspectionLotVH _InspectionLotVH $projection.InspectionLot = _InspectionLotVH.InspectionLot

Annotations (24)

NameValueLevelField
AbapCatalog.sqlViewName CSAMPLEOP view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #M view
ObjectModel.usageType.dataClass #MIXED view
EndUserText.label Material Sample view
AccessControl.authorizationCheck #CHECK view
VDM.viewType #CONSUMPTION view
Search.searchable true view
ClientHandling.algorithm #SESSION_VARIABLE view
AccessControl.personalData.blocking #REQUIRED view
ObjectModel.compositionRoot true view
ObjectModel.createEnabled false view
ObjectModel.updateEnabled false view
ObjectModel.deleteEnabled false view
UI.headerInfo.typeName Sample view
UI.headerInfo.typeNamePlural Samples view
UI.headerInfo.title.type #STANDARD view
UI.headerInfo.title.value MaterialSample view
UI.headerInfo.title.label Sample Number view
UI.headerInfo.description.type #STANDARD view
UI.headerInfo.description.value MaterialSampleText view
UI.headerInfo.description.label Description view

Fields (77)

KeyFieldSource TableSource FieldDescription
KEY MaterialSample MaterialSample Sample
Plant Plant Valuation Area
PlantName _Plant PlantName Plant Name
ObjectInternalID ObjectInternalID Object number
MaterialSampleCategory MaterialSampleCategory Type of Price
MaterialSampleCategoryText
MatlSmplContainerType MatlSmplContainerType Sample Contr
SmplDrawingProcedure SmplDrawingProcedure
MaterialSampleSize I_MaterialSample MaterialSampleSize WarrCountValue
MaterialSampleSizeUnit
MatlSmplContainerTypeText
SmplDrwgProcedPartialSampleTo SmplDrwgProcedPartialSampleTo
MaterialSampleType MaterialSampleType Sample Type
MaterialSampleTypeText
MaterialName
MaterialSampleText MaterialSampleText Text
Material Material Vehicle Model
MaterialSampleDrawing MaterialSampleDrawing
Batch Batch Lot No.
MaterialSampleDrawingLocation MaterialSampleDrawingLocation
MatlSmplDrawingLocDescription MatlSmplDrawingLocDescription
MatlQualityAuthorizationGroup MatlQualityAuthorizationGroup QM Matl Auth.
Supplier _SampleDetails Supplier Supplier
SupplierName _SampleDetails SupplierName Supplier Name
Manufacturer _SampleDetails Manufacturer Manufacturer
ManufacturerName _SampleDetails ManufacturerName Manufacturer
Customer _SampleDetails Customer Sold-to Party
CustomerName _SampleDetails CustomerName Name of Customer
MaterialSampleResponsibleName MaterialSampleResponsibleName Sample Processor
MaterialSampleDrawingOnDate MaterialSampleDrawingOnDate Date of Drawing
InspectionLot InspectionLot Inspection Lot
_InspectionLot _InspectionLot
InspectionLotText
InspectionLotContainer
InspectionLotQuantity
InspectionLotQuantityUnit
InspectionLotSampleQuantity
InspectionLotSampleUnit
InspectionLotContainerUnit
BillOfOperationsGroup
BillOfOperationsVariant
SmplDrwgProcedIsConfRequired
InspLotHasMaterialSpec
InspectionLotQualityScore
UsageDecisionCodeText
StorageLocation I_MaterialSample StorageLocation StorageLocation
StorageLocationName
MaterialSampleStorageLocation I_MaterialSample MaterialSampleStorageLocation Sample Location
MatlSampleStorageLocationText
MatlSmplStorageInformation I_MaterialSample MatlSmplStorageInformation Info Text
MatlSmplStorageEndDate I_MaterialSample MatlSmplStorageEndDate Store Until
MatlSmplStorageDuration I_MaterialSample MatlSmplStorageDuration Duration/Days
CreatedByUser _SampleDetails CreatedByUser User Name
FullName _SampleDetails FullName Name
CreationDate
CreationTime
MaterialSampleChangedBy I_MaterialSample MaterialSampleChangedBy Changed By
UserDescription _UserChangedBy UserDescription Full Name
MaterialSampleChangedOn
MaterialSampleChangeTime
IsBusinessPurposeCompleted _MaterialSampleDrawing IsBusinessPurposeCompleted Purpose Completed
_Samples _Samples
_MtrlSmplSameDrwbngOp _MtrlSmplSameDrwbngOp
_StatusObjectStatus _StatusObjectStatus
_SampleDetails _SampleDetails
_Plant _Plant
_MaterialSampleCategory _MaterialSampleCategory
_MaterialSampleType _MaterialSampleType
_Material _Material
_MatlQualityAuthGroup _MatlQualityAuthGroup
_MaterialSampleSizeUnit _MaterialSampleSizeUnit
_InspectionLotVH _InspectionLotVH
_StorageLocation I_MaterialSample _StorageLocation
_MatlSampleStorageLocation I_MaterialSample _MatlSampleStorageLocation
_MatlSampleStorageLocPlant
MatlSamplePlant
_SampleDrawingProcedure _SampleDrawingProcedure

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 C_Materialsampleobjpage.
-- 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.

CREATE VIEW C_Materialsampleobjpage AS
SELECT
  MaterialSample,
  Plant,
  _Plant.PlantName AS PlantName,
  ObjectInternalID,
  MaterialSampleCategory,
  _MaterialSampleCategory._Text[1:Language = $session.system_language].MaterialSampleCategoryText AS MaterialSampleCategoryText,
  MatlSmplContainerType,
  SmplDrawingProcedure,
  I_MaterialSample.MaterialSampleSize AS MaterialSampleSize,
  cast( I_MaterialSample.MaterialSampleSizeUnit as vdm_qphysprme preserving type ) AS MaterialSampleSizeUnit,
  I_MaterialSample._MatlSmplContainerType._MatlSmplContainerTypeText[1:Language = $session.system_language].MatlSmplContainerTypeText AS MatlSmplContainerTypeText,
  SmplDrwgProcedPartialSampleTo,
  MaterialSampleType,
  _MaterialSampleType._Text[1:Language = $session.system_language].MaterialSampleTypeText AS MaterialSampleTypeText,
  I_MaterialSample._Material._Text[1:Language = $session.system_language].MaterialName AS MaterialName,
  MaterialSampleText,
  Material,
  MaterialSampleDrawing,
  Batch,
  MaterialSampleDrawingLocation,
  MatlSmplDrawingLocDescription,
  MatlQualityAuthorizationGroup,
  _SampleDetails.Supplier AS Supplier,
  _SampleDetails.SupplierName AS SupplierName,
  _SampleDetails.Manufacturer AS Manufacturer,
  _SampleDetails.ManufacturerName AS ManufacturerName,
  _SampleDetails.Customer AS Customer,
  _SampleDetails.CustomerName AS CustomerName,
  MaterialSampleResponsibleName,
  MaterialSampleDrawingOnDate,
  InspectionLot,
  I_MaterialSample._InspectionLot.InspectionLotText AS InspectionLotText,
  I_MaterialSample._InspectionLot.InspectionLotContainer AS InspectionLotContainer,
  I_MaterialSample._InspectionLot.InspectionLotQuantity AS InspectionLotQuantity,
  cast( I_MaterialSample._InspectionLot.InspectionLotQuantityUnit as vdm_insplotuom preserving type ) AS InspectionLotQuantityUnit,
  I_MaterialSample._InspectionLot.InspectionLotSampleQuantity AS InspectionLotSampleQuantity,
  cast( I_MaterialSample._InspectionLot.InspectionLotSampleUnit as vdm_insplotsampleuom preserving type ) AS InspectionLotSampleUnit,
  I_MaterialSample._InspectionLot.InspectionLotContainerUnit AS InspectionLotContainerUnit,
  I_MaterialSample._InspectionLot.BillOfOperationsGroup AS BillOfOperationsGroup,
  I_MaterialSample._InspectionLot.BillOfOperationsVariant AS BillOfOperationsVariant,
  I_MaterialSample._InspectionLot.SmplDrwgProcedIsConfRequired AS SmplDrwgProcedIsConfRequired,
  I_MaterialSample._InspectionLot.InspLotHasMaterialSpec AS InspLotHasMaterialSpec,
  I_MaterialSample._InspectionLot._InspLotUsageDecision.InspectionLotQualityScore AS InspectionLotQualityScore,
  I_MaterialSample._InspectionLot._InspLotUsageDecision._UsageDecisionCode.UsageDecisionCodeText AS UsageDecisionCodeText,
  I_MaterialSample.StorageLocation AS StorageLocation,
  I_MaterialSample._StorageLocation.StorageLocationName AS StorageLocationName,
  I_MaterialSample.MaterialSampleStorageLocation AS MaterialSampleStorageLocation,
  I_MaterialSample._MatlSampleStorageLocation._Text[1:Language = $session.system_language].MatlSampleStorageLocationText AS MatlSampleStorageLocationText,
  I_MaterialSample.MatlSmplStorageInformation AS MatlSmplStorageInformation,
  I_MaterialSample.MatlSmplStorageEndDate AS MatlSmplStorageEndDate,
  I_MaterialSample.MatlSmplStorageDuration AS MatlSmplStorageDuration,
  _SampleDetails.CreatedByUser AS CreatedByUser,
  _SampleDetails.FullName AS FullName,
  cast( _SampleDetails.CreationDate as vdm_qprs_anldt preserving type ) AS CreationDate,
  cast( _SampleDetails.CreationTime as vdm_qprs_anlzt preserving type ) AS CreationTime,
  I_MaterialSample.MaterialSampleChangedBy AS MaterialSampleChangedBy,
  _UserChangedBy.UserDescription AS UserDescription,
  cast( I_MaterialSample.MaterialSampleChangedOn as vdm_qprs_aendt preserving type ) AS MaterialSampleChangedOn,
  cast( I_MaterialSample.MaterialSampleChangeTime as vdm_qprs_aenzt preserving type ) AS MaterialSampleChangeTime,
  _MaterialSampleDrawing.IsBusinessPurposeCompleted AS IsBusinessPurposeCompleted,
  I_MaterialSample._StorageLocation AS _StorageLocation,
  I_MaterialSample._MatlSampleStorageLocation AS _MatlSampleStorageLocation,
  I_MaterialSample._MatlSampleStorageLocation._Plant AS _MatlSampleStorageLocPlant,
  I_MaterialSample._MatlSampleStorageLocation.MatlSamplePlant AS MatlSamplePlant
FROM I_MaterialSample
LEFT OUTER JOIN C_Materialsamplestatus AS _StatusObjectStatus ON ObjectInternalID = _StatusObjectStatus.StatusObject  -- association [0..*]
LEFT OUTER JOIN I_Plant AS _Plant ON Plant = _Plant.Plant  -- association [0..1]
LEFT OUTER JOIN C_MtrlSmplSameDrwbngOp AS _MtrlSmplSameDrwbngOp ON MaterialSampleDrawing = _MtrlSmplSameDrwbngOp.MaterialSampleDrawing  -- association [0..*]
LEFT OUTER JOIN I_MaterialSample AS _Samples ON MaterialSampleDrawing = _Samples.MaterialSampleDrawing  -- association [0..*]
LEFT OUTER JOIN I_MaterialSampleDetails AS _SampleDetails ON MaterialSample = _SampleDetails.MaterialSample  -- association [0..1]
LEFT OUTER JOIN I_FunctionalLocationText AS _FunctionalLocationText ON MaterialSampleDrawingLocation = _FunctionalLocationText.FunctionalLocation  -- association [0..*]
LEFT OUTER JOIN I_MatlSmplContainerType AS _MatlSmplContainerType ON MatlSmplContainerType = _MatlSmplContainerType.MatlSmplContainerType  -- association [0..1]
LEFT OUTER JOIN I_StatusObjectActiveStatus AS _SampleStoredStatus ON ObjectInternalID = _SampleStoredStatus.StatusObject AND _SampleStoredStatus.StatusCode = 'I0363'  -- association [0..1]
LEFT OUTER JOIN I_StatusObjectActiveStatus AS _SampleExistStatus ON ObjectInternalID = _SampleExistStatus.StatusObject AND _SampleExistStatus.StatusCode = 'I0362'  -- association [0..1]
LEFT OUTER JOIN I_StsObjConcatActiveStsILL AS _StsObjConcatActvStatus ON _StsObjConcatActvStatus.StatusObject = ObjectInternalID  -- association [0..1]
LEFT OUTER JOIN I_User AS _UserChangedBy ON _UserChangedBy.UserID = I_MaterialSample.MaterialSampleChangedBy  -- association [0..1]
LEFT OUTER JOIN I_InspectionLotVH AS _InspectionLotVH ON InspectionLot = _InspectionLotVH.InspectionLot  -- association [0..1]
;