C_InspOperationHeader
Header of Inspection Operation
C_InspOperationHeader is a Consumption CDS View that provides data about "Header of Inspection Operation" in SAP S/4HANA. It reads from 1 data source (I_InspectionOperation) and exposes 29 fields with key fields InspectionLot, InspectionOperation. It has 4 associations to related views.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_InspectionOperation | _InspOpHeader | from |
Associations (4)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [1..*] | C_InspOperationChar | _InspOperationChar | $projection.InspectionLot = _InspOperationChar.InspectionLot and $projection.InspectionOperation = _InspOperationChar.InspectionOperation |
| [1..*] | C_InspSubsetChar | _InspSubsetChar | $projection.InspectionLot = _InspSubsetChar.InspectionLot and $projection.InspectionOperation = _InspSubsetChar.InspectionOperation |
| [1..1] | C_Inspoperation_Object | _InspectionOperation | $projection.InspectionLot = _InspectionOperation.InspectionLot and $projection.InspectionOperation = _InspectionOperation.InspectionOperation |
| [1..1] | I_InspectionLot | _InspectionLot | $projection.InspectionLot = _InspectionLot.InspectionLot |
Annotations (10)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | CINSPOPHDR | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| VDM.viewType | #CONSUMPTION | view | |
| EndUserText.label | Header of Inspection Operation | view | |
| Search.searchable | true | view | |
| ObjectModel.usageType.dataClass | #MIXED | view | |
| ObjectModel.usageType.sizeCategory | #L | view | |
| ObjectModel.usageType.serviceQuality | #D | view |
Fields (29)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | InspectionLot | I_InspectionOperation | InspectionLot | Inspection Lot |
| KEY | InspectionOperation | I_InspectionOperation | InspectionOperation | Operation |
| InspectionLotType | InspectionLot | InspectionLotType | Inspection Type | |
| OperationText | I_InspectionOperation | OperationText | Description | |
| Plant | ||||
| PlantName | ||||
| Batch | InspectionLot | Batch | Lot No. | |
| BatchBySupplier | InspectionLot | BatchBySupplier | Supplier Batch | |
| MaterialIsBatchManaged | InspectionLot | MaterialIsBatchManaged | ||
| Material | InspectionLot | Material | Vehicle Model | |
| InspectionLotObjectText | InspectionLot | InspectionLotObjectText | ||
| WorkCenter | ||||
| WorkCenterText | ||||
| InspOpUsageDecisionValuation | InspectionOperation | InspOpUsageDecisionValuation | ||
| InspLotHasSubsets | InspectionOperation | InspLotHasSubsets | ||
| MaterialSampleCount | InspectionOperation | MaterialSampleCount | ||
| InspSubsetCharcOpenCount | InspectionOperation | InspSubsetCharcOpenCount | ||
| InspSubsetCharcAcceptedCount | InspectionOperation | InspSubsetCharcAcceptedCount | ||
| InspSubsetCharcRejectedCount | InspectionOperation | InspSubsetCharcRejectedCount | ||
| InspOpHasCharc | InspectionOperation | InspOpHasCharc | ||
| InspCharOpenCount | InspectionOperation | InspCharOpenCount | ||
| InspCharAcceptedCount | InspectionOperation | InspCharAcceptedCount | ||
| InspCharRejectedCount | InspectionOperation | InspCharRejectedCount | ||
| InspCharRejectedCountendasInspCharCount | ||||
| MatlQualityAuthorizationGroup | InspectionLot | MatlQualityAuthorizationGroup | QM Matl Auth. | |
| _InspOperationChar | _InspOperationChar | |||
| _InspectionOperation | _InspectionOperation | |||
| _InspSubsetChar | _InspSubsetChar | |||
| _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_InspOperationHeader.
-- 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.
-- SQL view name: CINSPOPHDR
CREATE VIEW C_InspOperationHeader AS
SELECT
_InspOpHeader.InspectionLot AS InspectionLot,
_InspOpHeader.InspectionOperation AS InspectionOperation,
InspectionLot.InspectionLotType AS InspectionLotType,
_InspOpHeader.OperationText AS OperationText,
_InspOpHeader._Plant.Plant AS Plant,
_InspOpHeader._Plant.PlantName AS PlantName,
InspectionLot.Batch AS Batch,
InspectionLot.BatchBySupplier AS BatchBySupplier,
InspectionLot.MaterialIsBatchManaged AS MaterialIsBatchManaged,
InspectionLot.Material AS Material,
InspectionLot.InspectionLotObjectText AS InspectionLotObjectText,
_InspOpHeader._WorkCenter.WorkCenter AS WorkCenter,
_InspOpHeader._WorkCenter._Text[1:Language=$session.system_language].WorkCenterText AS WorkCenterText,
InspectionOperation.InspOpUsageDecisionValuation AS InspOpUsageDecisionValuation,
InspectionOperation.InspLotHasSubsets AS InspLotHasSubsets,
InspectionOperation.MaterialSampleCount AS MaterialSampleCount,
InspectionOperation.InspSubsetCharcOpenCount AS InspSubsetCharcOpenCount,
InspectionOperation.InspSubsetCharcAcceptedCount AS InspSubsetCharcAcceptedCount,
InspectionOperation.InspSubsetCharcRejectedCount AS InspSubsetCharcRejectedCount,
InspectionOperation.InspOpHasCharc AS InspOpHasCharc,
InspectionOperation.InspCharOpenCount AS InspCharOpenCount,
InspectionOperation.InspCharAcceptedCount AS InspCharAcceptedCount,
InspectionOperation.InspCharRejectedCount AS InspCharRejectedCount,
case InspectionOperation.InspLotHasSubsets when 1 then (InspectionOperation.InspSubsetCharcAcceptedCount + InspectionOperation.InspSubsetCharcRejectedCount + InspectionOperation.InspSubsetCharcOpenCount) else (InspectionOperation.InspCharOpenCount + InspectionOperation.InspCharAcceptedCount + InspectionOperation.InspCharRejectedCount) end as InspCharCount AS InspCharRejectedCountendasInspCharCount,
InspectionLot.MatlQualityAuthorizationGroup AS MatlQualityAuthorizationGroup
FROM I_InspectionOperation AS _InspOpHeader
LEFT OUTER JOIN C_InspOperationChar AS _InspOperationChar ON InspectionLot = _InspOperationChar.InspectionLot AND InspectionOperation = _InspOperationChar.InspectionOperation -- association [1..*]
LEFT OUTER JOIN C_InspSubsetChar AS _InspSubsetChar ON InspectionLot = _InspSubsetChar.InspectionLot AND InspectionOperation = _InspSubsetChar.InspectionOperation -- association [1..*]
LEFT OUTER JOIN C_Inspoperation_Object AS _InspectionOperation ON InspectionLot = _InspectionOperation.InspectionLot AND InspectionOperation = _InspectionOperation.InspectionOperation -- association [1..1]
LEFT OUTER JOIN I_InspectionLot AS _InspectionLot ON InspectionLot = _InspectionLot.InspectionLot -- association [1..1]
;
Learn More
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- 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