I_DefectSerialNumber

DDL: I_DEFECTSERIALNUMBER Type: view_entity BASIC Package: VDM_QM_NOTIFICATION

Serial Number in Defect

I_DefectSerialNumber (Basic)

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

DefectSerialNumber · Manufacturing

I_DefectSerialNumber is a Basic CDS View that provides data about "Serial Number in Defect" in SAP S/4HANA. It reads from 1 data source (qmfe_affcdobjsn) and exposes 7 fields with key fields DefectInternalID, DfctSerialNmbrSequentialNumber. It has 1 association to related views. Part of development package VDM_QM_NOTIFICATION.

SAP API Hub

CategoryBasic
StateC1
Line of BusinessManufacturing
Application ComponentQM-QN-2CL
CapabilitiesData Source in SQL Select,Association Target for Defining CDS Entities,Data Source for Defining CDS Entities
Extensible (Key User)No
Extensible (Developer)No
Release State (Key User)Released
Release State (Developer)Released
PackageManufacturing for SAP S/4HANA Cloud Public Edition
Description <p>This CDS view provides access to serial numbers assigned to defects.</p> <p>This CDS view provides the data to answer the following business questions:</p> <ul> <li><p>Which serial numbers are associated with a specific defect?</p></li> <li><p>What is the complete list of all serial numbers associated with defects?</p></li> </ul> <p>To help you decide which CDS view to use for your purposes, SAP has introduced the annotation ObjectModel.supportedCapabilities that indicates the most appropriate use cases for each CDS view. To find out what use cases are best supported by this CDS view, access the entry of the CDS view in the View Browser app and find the values for this annotation under the Annotation tab. For more information, see Supported Capabilities for CDS Views.</p>

Documentation

Data Sources (1)

SourceAliasJoin Type
qmfe_affcdobjsn qmfe_affcdobjsn from

Associations (1)

CardinalityTargetAliasCondition
[1..1] I_Defect _Defect $projection.DefectInternalID = _Defect.DefectInternalID

Annotations (11)

NameValueLevelField
AccessControl.authorizationCheck #MANDATORY view
EndUserText.label Serial Number in Defect view
Metadata.ignorePropagatedAnnotations true view
VDM.viewType #BASIC view
VDM.lifecycle.contract.type #PUBLIC_LOCAL_API view
ObjectModel.modelingPattern #NONE view
ObjectModel.usageType.serviceQuality #A view
ObjectModel.usageType.sizeCategory #M view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
ObjectModel.representativeKey DfctSerialNmbrSequentialNumber view
ObjectModel.sapObjectNodeType.name DefectSerialNumber view

Fields (7)

KeyFieldSource TableSource FieldDescription
KEY DefectInternalID Internal Defect ID
KEY DfctSerialNmbrSequentialNumber Affected Object Serial Number Counter
Defect Defect Number
SerialNumber serialnumber Serial Number
Equipment equnr Equipment Number
SerialNumberAssignmentDateTime assignmdatetime UTC Time Stamp in Short Form (YYYYMMDDhhmmss)
_Defect _Defect

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_DefectSerialNumber.
-- 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_DefectSerialNumber AS
SELECT
  cast( qmnum as qdefectinternalid preserving type ) AS DefectInternalID,
  cast( srlnmbrcntr as qfdefectsncntr preserving type ) AS DfctSerialNmbrSequentialNumber,
  cast( substring(qmnum,2,11) as qdefectid preserving type ) AS Defect,
  SerialNumber,
  equnr AS Equipment,
  assignmdatetime AS SerialNumberAssignmentDateTime
FROM qmfe_affcdobjsn
LEFT OUTER JOIN I_Defect AS _Defect ON DefectInternalID = _Defect.DefectInternalID  -- association [1..1]
;