C_QualityLvlCalc
Quality Level Calculation
C_QualityLvlCalc is a Consumption CDS View that provides data about "Quality Level Calculation" in SAP S/4HANA. It reads from 1 data source (I_QualityLevel) and exposes 35 fields with key fields Material, Plant, BillOfOperationsType, BillOfOperationsGroup, BillOfOperationsVariant. It has 3 associations to related views. Part of development package ODATA_QM_CONTROL_ANALYTICS.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_QualityLevel | I_QualityLevel | from |
Parameters (2)
| Name | Type | Default |
|---|---|---|
| P_InspLotDynLvlPrimVal | qdynhead | |
| P_InspLotDynLvlSecdryVal | qdynhead |
Associations (3)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [1..1] | I_InspLotDynRuleStage | _InspLotDynRuleStage | $projection.InspLotDynamicRule = _InspLotDynRuleStage.InspLotDynamicRule and $projection.QltyLevelNextDynRuleStage = _InspLotDynRuleStage.InspLotDynRuleStage |
| [0..1] | C_InspectionSkipStatusVH | _InspectionSkipStatusVH | $projection.InspectionLotIsSkipped = _InspectionSkipStatusVH.InspectionLotIsSkipped |
| [1..1] | I_Productplantqtmanagement | _ProductPlantQtManagement | $projection.Material = _ProductPlantQtManagement.Product and $projection.Plant = _ProductPlantQtManagement.Plant |
Annotations (9)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | CQLTYLVLCALC | view | |
| EndUserText.label | Quality Level Calculation | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| VDM.viewType | #CONSUMPTION | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| ObjectModel.usageType.dataClass | #MIXED | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| ObjectModel.usageType.sizeCategory | #L | view |
Fields (35)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | Material | Material | Vehicle Model | |
| KEY | Plant | Plant | Valuation Area | |
| KEY | BillOfOperationsType | BillOfOperationsType | Task List Type | |
| KEY | BillOfOperationsGroup | BillOfOperationsGroup | Group | |
| KEY | BillOfOperationsVariant | BillOfOperationsVariant | Group Counter | |
| KEY | BOOOperationInternalID | BOOOperationInternalID | Task list node | |
| KEY | Sequence | Sequence | Visit Sequence | |
| KEY | QualityLevelInternalID | QualityLevelInternalID | Counter | |
| InspLotDynamicRule | InspLotDynamicRule | |||
| QltyLevelNextDynRuleStage | QltyLevelNextDynRuleStage | Next Stage | ||
| InspectionLotIsSkipped | ||||
| InspectionLot | InspectionLot | Inspection Lot | ||
| InspectionLotDynamicLevel | _QualityLevelLastOpenInspLot | InspectionLotDynamicLevel | ||
| InspectionLotOrigin | _QualityLevelLastOpenInspLot | InspectionLotOrigin | ||
| InspectionLotHasQuantity | _QualityLevelLastOpenInspLot | InspectionLotHasQuantity | ||
| BatchStorageLocation | _QualityLevelLastOpenInspLot | BatchStorageLocation | ||
| ManufacturerPartNmbr | _QualityLevelLastOpenInspLot | ManufacturerPartNmbr | Mfr Part Number | |
| MatlQualityAuthorizationGroup | _QualityLevelLastOpenInspLot | MatlQualityAuthorizationGroup | QM Matl Auth. | |
| PurchasingOrganization | _QualityLevelLastOpenInspLot | PurchasingOrganization | Purchasing Organization | |
| SalesOrganization | _QualityLevelLastOpenInspLot | SalesOrganization | Sales Organization | |
| SoldToParty | _QualityLevelLastOpenInspLot | SoldToParty | Sold-to Party | |
| QualityLevelLastOpenInspLot | QualityLevelLastOpenInspLot | Inspection lot | ||
| InspectionLotType | InspectionLotType | Inspection Type | ||
| Manufacturer | Manufacturer | Manufacturer | ||
| Supplier | Supplier | Supplier | ||
| Customer | Customer | Sold-to Party | ||
| _InspLotDynRuleStage | _InspLotDynRuleStage | |||
| _InspectionSkipStatusVH | _InspectionSkipStatusVH | |||
| _InspectionLot | _InspectionLot | |||
| _QualityLevelLastOpenInspLot | _QualityLevelLastOpenInspLot | |||
| _Customer | _Customer | |||
| _Supplier | _Supplier | |||
| _Manufacturer | _Manufacturer | |||
| _Plant | _Plant | |||
| _ProductPlantQtManagement | _ProductPlantQtManagement |
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_QualityLvlCalc.
-- 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: CQLTYLVLCALC
-- Parameters: P_InspLotDynLvlPrimVal : qdynhead, P_InspLotDynLvlSecdryVal : qdynhead
CREATE VIEW C_QualityLvlCalc AS
SELECT
Material,
Plant,
BillOfOperationsType,
BillOfOperationsGroup,
BillOfOperationsVariant,
BOOOperationInternalID,
Sequence,
QualityLevelInternalID,
InspLotDynamicRule,
QltyLevelNextDynRuleStage,
cast ( _InspLotDynRuleStage.InspectionLotIsSkipped as xfeld ) AS InspectionLotIsSkipped,
InspectionLot,
_QualityLevelLastOpenInspLot.InspectionLotDynamicLevel AS InspectionLotDynamicLevel,
_QualityLevelLastOpenInspLot.InspectionLotOrigin AS InspectionLotOrigin,
_QualityLevelLastOpenInspLot.InspectionLotHasQuantity AS InspectionLotHasQuantity,
_QualityLevelLastOpenInspLot.BatchStorageLocation AS BatchStorageLocation,
_QualityLevelLastOpenInspLot.ManufacturerPartNmbr AS ManufacturerPartNmbr,
_QualityLevelLastOpenInspLot.MatlQualityAuthorizationGroup AS MatlQualityAuthorizationGroup,
_QualityLevelLastOpenInspLot.PurchasingOrganization AS PurchasingOrganization,
_QualityLevelLastOpenInspLot.SalesOrganization AS SalesOrganization,
_QualityLevelLastOpenInspLot.SoldToParty AS SoldToParty,
QualityLevelLastOpenInspLot,
InspectionLotType,
Manufacturer,
Supplier,
Customer
FROM I_QualityLevel
LEFT OUTER JOIN I_InspLotDynRuleStage AS _InspLotDynRuleStage ON InspLotDynamicRule = _InspLotDynRuleStage.InspLotDynamicRule AND QltyLevelNextDynRuleStage = _InspLotDynRuleStage.InspLotDynRuleStage -- association [1..1]
LEFT OUTER JOIN C_InspectionSkipStatusVH AS _InspectionSkipStatusVH ON InspectionLotIsSkipped = _InspectionSkipStatusVH.InspectionLotIsSkipped -- association [0..1]
LEFT OUTER JOIN I_Productplantqtmanagement AS _ProductPlantQtManagement ON Material = _ProductPlantQtManagement.Product AND Plant = _ProductPlantQtManagement.Plant -- 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