I_InspectionResultValue

DDL: I_INSPECTIONRESULTVALUE Type: view BASIC

Single Value of an Inspection Charc Rslt

I_InspectionResultValue (Basic)

Package: Explore, extend and adapt the SAP S/4HANA Cloud Private Edition with built-in and side-by-side extension capabilities.

Manufacturing

I_InspectionResultValue is a Basic CDS View that provides data about "Single Value of an Inspection Charc Rslt" in SAP S/4HANA. It reads from 1 data source (qase) and exposes 60 fields with key fields InspectionLot, InspPlanOperationInternalID, InspectionCharacteristic, InspResultValueInternalID. It has 10 associations to related views.

SAP API Hub

StateC1
Line of BusinessManufacturing
Application ComponentQM-IM
CapabilitiesData Source for Defining CDS Entities, Data Source in SQL Select, Association Target for Defining CDS Entities
PackageManufacturing for SAP S/4HANA Cloud Private Edition
Description <p>This CDS view provides access to the inspection result data for an inspection characteristic (single values)</p>

Documentation

Data Sources (1)

SourceAliasJoin Type
qase qase from

Associations (10)

CardinalityTargetAliasCondition
[1..1] I_InspectionLot _InspectionLot $projection.InspectionLot = _InspectionLot.InspectionLot
[1..1] I_InspectionOperation _InspectionOperation $projection.InspectionLot = _InspectionOperation.InspectionLot and $projection.InspPlanOperationInternalID = _InspectionOperation.InspPlanOperationInternalID
[1..1] I_InspectionCharacteristic _InspectionCharacteristic $projection.InspectionLot = _InspectionCharacteristic.InspectionLot and $projection.InspPlanOperationInternalID = _InspectionCharacteristic.InspPlanOperationInternalID and $projection.InspectionCharacteristic = _InspectionCharacteristic.InspectionCharacteristic
[0..1] I_InspSubsetCharacteristic _InspSubsetCharacteristic $projection.InspectionLot = _InspSubsetCharacteristic.InspectionLot and $projection.InspPlanOperationInternalID = _InspSubsetCharacteristic.InspPlanOperationInternalID and $projection.InspectionCharacteristic = _InspSubsetCharacteristic.InspectionCharacteristic and $projection.InspectionSubsetInternalID = _InspSubsetCharacteristic.InspectionSubsetInternalID
[0..*] I_InspResultValueLongText _InspResultValueLongText $projection.InspectionLot = _InspResultValueLongText.InspectionLot and $projection.InspPlanOperationInternalID = _InspResultValueLongText.InspPlanOperationInternalID and $projection.InspectionCharacteristic = _InspResultValueLongText.InspectionCharacteristic and $projection.InspResultValueInternalID = _InspResultValueLongText.InspResultValueInternalID and $projection.Language = _InspResultValueLongText.Language
[0..1] I_CharcAttributeCodeGrp _CharcAttributeCodeGrp $projection.CharacteristicAttributeCodeGrp = _CharcAttributeCodeGrp.CharacteristicAttributeCodeGrp
[0..1] I_CharcAttributeCode _CharcAttributeCode $projection.CharacteristicAttributeCodeGrp = _CharcAttributeCode.CharacteristicAttributeCodeGrp and $projection.CharacteristicAttributeCode = _CharcAttributeCode.CharacteristicAttributeCode
[0..1] I_InspectionResultAttribute _InspectionResultAttribute $projection.InspectionResultAttribute = _InspectionResultAttribute.InspectionResultAttribute
[0..1] I_InspectionValuationResult _InspectionValuationResult $projection.InspectionValuationResult = _InspectionValuationResult.InspectionValuationResult
[1..1] E_InspectionResultValue _Extension $projection.InspectionLot = _Extension.InspectionLot and $projection.InspPlanOperationInternalID = _Extension.InspPlanOperationInternalID and $projection.InspectionCharacteristic = _Extension.InspectionCharacteristic and $projection.InspResultValueInternalID = _Extension.InspResultValueInternalID

Annotations (12)

NameValueLevelField
AbapCatalog.sqlViewName IINSPRESULTVALUE view
AbapCatalog.compiler.compareFilter true view
ClientHandling.algorithm #SESSION_VARIABLE view
AccessControl.authorizationCheck #CHECK view
EndUserText.label Single Value of an Inspection Charc Rslt view
VDM.viewType #BASIC view
VDM.lifecycle.contract.type #PUBLIC_LOCAL_API view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
ObjectModel.usageType.sizeCategory #L view
ObjectModel.usageType.serviceQuality #B view
ObjectModel.representativeKey InspResultValueInternalID view
Metadata.ignorePropagatedAnnotations true view

Fields (60)

KeyFieldSource TableSource FieldDescription
KEY InspectionLot qase prueflos Inspection Lot Number
KEY InspPlanOperationInternalID qase vorglfnr Current Node Number from Order Counter
KEY InspectionCharacteristic qase merknr Inspection Characteristic Number
KEY InspResultValueInternalID qase detailerg Number of Individual Result
InspectionResultAttribute qase attribut Attribute of Results Record (Valid, Invalid,...)
InspResultItemInternalID qase stuecknr Counter for Inspection Unit Number
InspectionSubsetInternalID qase probenr Inspection Sample Number
InspectionResultMeasuredValue qase messwert Measured Value for a Sample Unit
InspResultHasMeasuredValue Measured Value Is Not Initial
InspectionResultOriginalValue qase original_input Original Value Before Input Processing
InspectionResultText Inspection Description for Single Value
InspectionResultHasLongText qase prltextkz Inspection Characteristic Long Text Exists
Language qase ltextspr Language Key
InspLotSingleUnitNumber qase estuecknr Number of Single Unit in Inspection Lot
InspectionResultItem qase serialnr Single-Unit Number for the Unit to Be Inspected
InspRsltFreeDefinedTestEquip qase maschine General Information
InspectionValuationResult qase mbewertg Inspection Result Valuation
CharacteristicAttributeCodeGrp qase gruppe1 Code Group
InspectionResultCodeGroup2 qase gruppe2 Code Group
InspectionResultCodeGroup3 qase gruppe3 Code Group
InspectionResultCodeGroup4 qase gruppe4 Code Group
InspectionResultCodeGroup5 qase gruppe5 Code Group
CharacteristicAttributeCode qase code1 Code
InspectionResultCode2 qase code2 Code
InspectionResultCode3 qase code3 Code
InspectionResultCode4 qase code4 Code
InspectionResultCode5 qase code5 Code
CharcAttributeCodeVers qase version1 Version Number
InspectionResultCode2Vers qase version2 Version Number
InspectionResultCode3Vers qase version3 Version Number
InspectionResultCode4Vers qase version4 Version Number
InspectionResultCode5Vers qase version5 Version Number
CharacteristicAttributeCatalog qase katalgart1 Catalog Type
InspectionResultCatalog2 qase katalgart2 Catalog Type
InspectionResultCatalog3 qase katalgart3 Catalog Type
InspectionResultCatalog4 qase katalgart4 Catalog Type
InspectionResultCatalog5 qase katalgart5 Catalog Type
Inspector qase pruefer Name of Inspector
InspectionStartDate qase pruefdatuv Start Date in Local Time Zone of Inspection
InspectionStartTime qase pruefzeitv Start Time in Local Time Zone of Inspection
InspectionEndDate qase pruefdatub End Date in Local Time Zone of Inspection
InspectionEndTime qase pruefzeitb End Time in Local Time Zone of Inspection
InspectionNumberOfDefects qase anzfehler Number of Defects Found
DefectClass qase fehlklas Defect Class
InspResultNrOfAddlDcmlsPlaces qase diff_dec_places Different Number of Decimal Places
CreatedByUser qase ersteller Name of User Who Created the Data Record
CreationDate qase erstelldat System Date on Which Data Record Was Created
LastChangedByUser qase aenderer Name of User Who Last Changed Data Record
LastChangeDate qase aenderdat System Date on Which Data Record Was Changed
ChangedTime qase zeitaend System Time at Which Data Record Was Changed
CreationTime qase zeiterstl System Time at Which Data Record Was Created
_InspectionLot _InspectionLot
_InspectionOperation _InspectionOperation
_InspectionCharacteristic _InspectionCharacteristic
_InspSubsetCharacteristic _InspSubsetCharacteristic
_InspResultValueLongText _InspResultValueLongText
_CharcAttributeCodeGrp _CharcAttributeCodeGrp
_CharcAttributeCode _CharcAttributeCode
_InspectionResultAttribute _InspectionResultAttribute
_InspectionValuationResult _InspectionValuationResult

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_InspectionResultValue.
-- 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 I_InspectionResultValue AS
SELECT
  qase.prueflos AS InspectionLot,
  qase.vorglfnr AS InspPlanOperationInternalID,
  qase.merknr AS InspectionCharacteristic,
  qase.detailerg AS InspResultValueInternalID,
  qase.attribut AS InspectionResultAttribute,
  qase.stuecknr AS InspResultItemInternalID,
  qase.probenr AS InspectionSubsetInternalID,
  qase.messwert AS InspectionResultMeasuredValue,
  cast(case qase.messwertni when '*' then 'X' else qase.messwertni end as qmesswrtni preserving type ) AS InspResultHasMeasuredValue,
  qase.original_input AS InspectionResultOriginalValue,
  cast( qase.pruefbemkt as vdm_qinspectionvalueresultdesc preserving type ) AS InspectionResultText,
  qase.prltextkz AS InspectionResultHasLongText,
  qase.ltextspr AS Language,
  qase.estuecknr AS InspLotSingleUnitNumber,
  qase.serialnr AS InspectionResultItem,
  qase.maschine AS InspRsltFreeDefinedTestEquip,
  qase.mbewertg AS InspectionValuationResult,
  qase.gruppe1 AS CharacteristicAttributeCodeGrp,
  qase.gruppe2 AS InspectionResultCodeGroup2,
  qase.gruppe3 AS InspectionResultCodeGroup3,
  qase.gruppe4 AS InspectionResultCodeGroup4,
  qase.gruppe5 AS InspectionResultCodeGroup5,
  qase.code1 AS CharacteristicAttributeCode,
  qase.code2 AS InspectionResultCode2,
  qase.code3 AS InspectionResultCode3,
  qase.code4 AS InspectionResultCode4,
  qase.code5 AS InspectionResultCode5,
  qase.version1 AS CharcAttributeCodeVers,
  qase.version2 AS InspectionResultCode2Vers,
  qase.version3 AS InspectionResultCode3Vers,
  qase.version4 AS InspectionResultCode4Vers,
  qase.version5 AS InspectionResultCode5Vers,
  qase.katalgart1 AS CharacteristicAttributeCatalog,
  qase.katalgart2 AS InspectionResultCatalog2,
  qase.katalgart3 AS InspectionResultCatalog3,
  qase.katalgart4 AS InspectionResultCatalog4,
  qase.katalgart5 AS InspectionResultCatalog5,
  qase.pruefer AS Inspector,
  qase.pruefdatuv AS InspectionStartDate,
  qase.pruefzeitv AS InspectionStartTime,
  qase.pruefdatub AS InspectionEndDate,
  qase.pruefzeitb AS InspectionEndTime,
  qase.anzfehler AS InspectionNumberOfDefects,
  qase.fehlklas AS DefectClass,
  qase.diff_dec_places AS InspResultNrOfAddlDcmlsPlaces,
  qase.ersteller AS CreatedByUser,
  qase.erstelldat AS CreationDate,
  qase.aenderer AS LastChangedByUser,
  qase.aenderdat AS LastChangeDate,
  qase.zeitaend AS ChangedTime,
  qase.zeiterstl AS CreationTime
FROM qase
LEFT OUTER JOIN I_InspectionLot AS _InspectionLot ON InspectionLot = _InspectionLot.InspectionLot  -- association [1..1]
LEFT OUTER JOIN I_InspectionOperation AS _InspectionOperation ON InspectionLot = _InspectionOperation.InspectionLot AND InspPlanOperationInternalID = _InspectionOperation.InspPlanOperationInternalID  -- association [1..1]
LEFT OUTER JOIN I_InspectionCharacteristic AS _InspectionCharacteristic ON InspectionLot = _InspectionCharacteristic.InspectionLot AND InspPlanOperationInternalID = _InspectionCharacteristic.InspPlanOperationInternalID AND InspectionCharacteristic = _InspectionCharacteristic.InspectionCharacteristic  -- association [1..1]
LEFT OUTER JOIN I_InspSubsetCharacteristic AS _InspSubsetCharacteristic ON InspectionLot = _InspSubsetCharacteristic.InspectionLot AND InspPlanOperationInternalID = _InspSubsetCharacteristic.InspPlanOperationInternalID AND InspectionCharacteristic = _InspSubsetCharacteristic.InspectionCharacteristic AND InspectionSubsetInternalID = _InspSubsetCharacteristic.InspectionSubsetInternalID  -- association [0..1]
LEFT OUTER JOIN I_InspResultValueLongText AS _InspResultValueLongText ON InspectionLot = _InspResultValueLongText.InspectionLot AND InspPlanOperationInternalID = _InspResultValueLongText.InspPlanOperationInternalID AND InspectionCharacteristic = _InspResultValueLongText.InspectionCharacteristic AND InspResultValueInternalID = _InspResultValueLongText.InspResultValueInternalID AND Language = _InspResultValueLongText.Language  -- association [0..*]
LEFT OUTER JOIN I_CharcAttributeCodeGrp AS _CharcAttributeCodeGrp ON CharacteristicAttributeCodeGrp = _CharcAttributeCodeGrp.CharacteristicAttributeCodeGrp  -- association [0..1]
LEFT OUTER JOIN I_CharcAttributeCode AS _CharcAttributeCode ON CharacteristicAttributeCodeGrp = _CharcAttributeCode.CharacteristicAttributeCodeGrp AND CharacteristicAttributeCode = _CharcAttributeCode.CharacteristicAttributeCode  -- association [0..1]
LEFT OUTER JOIN I_InspectionResultAttribute AS _InspectionResultAttribute ON InspectionResultAttribute = _InspectionResultAttribute.InspectionResultAttribute  -- association [0..1]
LEFT OUTER JOIN I_InspectionValuationResult AS _InspectionValuationResult ON InspectionValuationResult = _InspectionValuationResult.InspectionValuationResult  -- association [0..1]
LEFT OUTER JOIN E_InspectionResultValue AS _Extension ON InspectionLot = _Extension.InspectionLot AND InspPlanOperationInternalID = _Extension.InspPlanOperationInternalID AND InspectionCharacteristic = _Extension.InspectionCharacteristic AND InspResultValueInternalID = _Extension.InspResultValueInternalID  -- association [1..1]
;