C_DfctRecdAvailSerialNumberVH
Defect Recording Avail Serial Number
C_DfctRecdAvailSerialNumberVH is a Consumption CDS View that provides data about "Defect Recording Avail Serial Number" in SAP S/4HANA. It reads from 3 data sources (I_EquipMatlSerialNumber, I_InspLotSerialNumber_2, I_MfgOrderItemSerialNumber) and exposes 43 fields with key fields SerialNumber, InspectionLot, MaintenanceItemObjectList, MaintenanceItemObject, ManufacturingOrder. It has 1 association to related views. It is exposed through 2 OData services (ASQL_F2929, ASQL_F2987). Part of development package ODATA_QM_DEFECT.
Data Sources (3)
| Source | Alias | Join Type |
|---|---|---|
| I_EquipMatlSerialNumber | I_EquipMatlSerialNumber | union |
| I_InspLotSerialNumber_2 | I_InspLotSerialNumber_2 | from |
| I_MfgOrderItemSerialNumber | I_MfgOrderItemSerialNumber | union |
Associations (1)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..1] | I_InspectionLot | _InspectionLot | $projection.InspectionLot = _InspectionLot.InspectionLot |
Annotations (12)
| Name | Value | Level | Field |
|---|---|---|---|
| VDM.viewType | #CONSUMPTION | view | |
| AccessControl.authorizationCheck | #MANDATORY | view | |
| AccessControl.personalData.blocking | #BLOCKED_DATA_EXCLUDED | view | |
| ObjectModel.modelingPattern | #VALUE_HELP_PROVIDER | view | |
| ObjectModel.dataCategory | #VALUE_HELP | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| ObjectModel.usageType.sizeCategory | #XL | view | |
| ObjectModel.usageType.dataClass | #TRANSACTIONAL | view | |
| ObjectModel.representativeKey | SerialNumber | view | |
| EndUserText.label | Defect Recording Avail Serial Number | view | |
| Metadata.ignorePropagatedAnnotations | true | view | |
| Search.searchable | true | view |
OData Services (2)
| Service | Binding | Version | Contract | Release |
|---|---|---|---|---|
| ASQL_F2929 | ASQL_F2929 | C2 | NOT_RELEASED | |
| ASQL_F2987 | ASQL_F2987 | C2 | NOT_RELEASED |
Fields (43)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | SerialNumber | SerialNumber | Serial Number | |
| KEY | InspectionLot | InspectionLot | Inspection Lot | |
| KEY | MaintenanceItemObjectList | MaintenanceItemObjectList | Object list | |
| KEY | MaintenanceItemObject | MaintenanceItemObject | ||
| KEY | ManufacturingOrder | Order | ||
| KEY | ManufacturingOrderItem | Manufacturing Order Item | ||
| KEY | Material | Vehicle Model | ||
| ManufacturingOrderCategory | ||||
| ManufacturingOrderType | ||||
| ProductionPlant | Prod plnt | |||
| Plant | Valuation Area | |||
| Batch | Lot No. | |||
| CompanyCode | Receiver Company Code | |||
| DefectSerialNumberOrigin | ||||
| InspectionLotkeySerialNumber | ||||
| KEY | InspectionLot | Inspection Lot | ||
| KEY | MaintenanceItemObjectList | MaintenanceItemObjectList | Object list | |
| KEY | MaintenanceItemObject | MaintenanceItemObject | ||
| KEY | ManufacturingOrder | ManufacturingOrder | Order | |
| KEY | ManufacturingOrderItem | ManufacturingOrderItem | Manufacturing Order Item | |
| KEY | Material | Vehicle Model | ||
| ManufacturingOrderCategory | ManufacturingOrderCategory | |||
| ManufacturingOrderType | ManufacturingOrderType | |||
| ProductionPlant | ProductionPlant | Prod plnt | ||
| Plant | Valuation Area | |||
| Batch | Lot No. | |||
| CompanyCode | Receiver Company Code | |||
| DefectSerialNumberOrigin | ||||
| InspectionLotkeySerialNumber | ||||
| KEY | InspectionLot | Inspection Lot | ||
| KEY | MaintenanceItemObjectList | Object list | ||
| KEY | MaintenanceItemObject | |||
| KEY | ManufacturingOrder | Order | ||
| KEY | ManufacturingOrderItem | Manufacturing Order Item | ||
| KEY | Material | Material | Vehicle Model | |
| ManufacturingOrderCategory | ||||
| ManufacturingOrderType | ||||
| ProductionPlant | Prod plnt | |||
| Plant | Plant | Valuation Area | ||
| Batch | MaterialSerialNumberStockBatch | Lot No. | ||
| CompanyCode | CompanyCode | Receiver Company Code | ||
| DefectSerialNumberOrigin | ||||
| _InspectionLot | _InspectionLot |
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_DfctRecdAvailSerialNumberVH.
-- 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_DfctRecdAvailSerialNumberVH AS
SELECT
SerialNumber,
InspectionLot,
MaintenanceItemObjectList,
MaintenanceItemObject,
cast (' ' as manufacturingorder preserving type ) AS ManufacturingOrder,
cast ('0000' as manufacturingorderitem preserving type ) AS ManufacturingOrderItem,
cast (' ' as matnr preserving type ) AS Material,
cast ('00' as manufacturingordercategory preserving type ) AS ManufacturingOrderCategory,
cast (' ' as manufacturingordertype preserving type ) AS ManufacturingOrderType,
cast (' ' as pwwrk preserving type ) AS ProductionPlant,
cast (' ' as werks_d preserving type ) AS Plant,
cast (' ' as charg_d preserving type ) AS Batch,
cast (' ' as bukrs preserving type ) AS CompanyCode,
cast ('I' as qdefsernumorigin preserving type ) AS DefectSerialNumberOrigin
FROM I_InspLotSerialNumber_2
LEFT OUTER JOIN I_InspectionLot AS _InspectionLot ON InspectionLot = _InspectionLot.InspectionLot -- association [0..1]
-- UNION with additional select branch(es): I_MfgOrderItemSerialNumber, I_EquipMatlSerialNumber
;
Learn More
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- OData Services in SAP S/4HANA Explained
- Service Bindings and Service Definitions in SAP S/4HANA
- 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