I_QualityLevelAnalysisCube
Quality Level History - Cube
I_QualityLevelAnalysisCube is a Composite CDS View (Cube) that provides data about "Quality Level History - Cube" in SAP S/4HANA. It reads from 3 data sources (I_CalendarDate, I_InspectionCharacteristic, I_InspectionLot) and exposes 47 fields with key fields InspectionLot, InspPlanOperationInternalID, InspectionCharacteristic. It has 6 associations to related views.
Data Sources (3)
| Source | Alias | Join Type |
|---|---|---|
| I_CalendarDate | _CalendarDate | left_outer |
| I_InspectionCharacteristic | _InspChar | left_outer |
| I_InspectionLot | _InspLot | from |
Parameters (2)
| Name | Type | Default |
|---|---|---|
| P_StartDate | mm_a_delivery_date | |
| P_EndDate | mm_a_delivery_date |
Associations (6)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [1..1] | I_InspLotDynamicRule | _InspLotDynamicRule | $projection.InspLotDynamicRule = _InspLotDynamicRule.InspLotDynamicRule |
| [1..1] | I_InspectionLotDynamicLevel | _InspectionLotDynamicLevel | $projection.InspectionLotDynamicLevel = _InspectionLotDynamicLevel.InspectionLotDynamicLevel |
| [1..1] | I_InspectionSeverity | _InspectionSeverity | $projection.InspectionSeverity = _InspectionSeverity.InspectionSeverity |
| [1..1] | I_InspLotDynRuleStage | _InspLotDynRuleStage | $projection.InspLotDynamicRule = _InspLotDynRuleStage.InspLotDynamicRule and $projection.InspectionDynamicStage = _InspLotDynRuleStage.InspLotDynRuleStage |
| [1..1] | I_Indicator | _InspectionLotIsSkipped | $projection.InspectionLotStatusSkip = _InspectionLotIsSkipped.IndicatorValue |
| [1..1] | I_InspectionCharacteristic | _InspectionCharacteristic | $projection.InspectionLot = _InspectionCharacteristic.InspectionLot and $projection.InspPlanOperationInternalID = _InspectionCharacteristic.InspPlanOperationInternalID and $projection.InspectionCharacteristic = _InspectionCharacteristic.InspectionCharacteristic |
Annotations (14)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.buffering.status | #NOT_ALLOWED | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AbapCatalog.sqlViewName | IQLTYLVLANALYZE | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| AccessControl.personalData.blocking | #REQUIRED | view | |
| Analytics.dataCategory | #CUBE | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| EndUserText.label | Quality Level History - Cube | view | |
| Metadata.allowExtensions | true | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| ObjectModel.usageType.sizeCategory | #XXL | view | |
| ObjectModel.usageType.dataClass | #MIXED | view | |
| VDM.viewType | #COMPOSITE | view | |
| VDM.lifecycle.contract.type | #SAP_INTERNAL_API | view |
Fields (47)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | InspectionLot | I_InspectionLot | InspectionLot | Inspection Lot |
| KEY | InspPlanOperationInternalID | I_InspectionCharacteristic | InspPlanOperationInternalID | Node Number |
| KEY | InspectionCharacteristic | |||
| Material | I_InspectionLot | Material | Vehicle Model | |
| Plant | I_InspectionLot | Plant | Valuation Area | |
| InspectionSpecificationText | I_InspectionCharacteristic | InspectionSpecificationText | ||
| BillOfOperationsType | I_InspectionLot | BillOfOperationsType | Task List Type | |
| BillOfOperationsGroup | I_InspectionLot | BillOfOperationsGroup | Group | |
| BillOfOperationsVariant | I_InspectionLot | BillOfOperationsVariant | Group Counter | |
| Supplier | Supplier | Supplier | ||
| Customer | Customer | Sold-to Party | ||
| Manufacturer | Manufacturer | Manufacturer | ||
| InspectionLotType | I_InspectionLot | InspectionLotType | Inspection Type | |
| InspectionLotUsageDecisionCode | _InspLotUsageDecision | InspectionLotUsageDecisionCode | ||
| InspectionLotStatusSkip | I_InspectionLot | InspectionLotIsSkipped | ||
| InspectionLotCreatedOn | InspectionLotCreatedOn | Created On | ||
| InspectionLotDynamicLevel | InspectionLotDynamicLevel | |||
| InspLotUsageDecisionCodeGroup | _InspLotUsageDecision | InspLotUsageDecisionCodeGroup | ||
| IndicatorValue | _InspectionLotIsSkipped | IndicatorValue | ||
| MatlQualityAuthorizationGroup | MatlQualityAuthorizationGroup | QM Matl Auth. | ||
| int4endasInspectionLotCount | ||||
| int4endasInspCharCount | ||||
| int4endasInspectionLotIsSkipped | ||||
| int4endasInspectionLotIsNotSkipped | ||||
| int4endasInspCharcSkipCount | ||||
| int4endasInspCharcNotSkipCount | ||||
| int4endasInspectionNotSkippedCount | ||||
| QualityLevelCount | ||||
| IsBusinessPurposeCompleted | I_InspectionLot | IsBusinessPurposeCompleted | Purpose Completed | |
| CalendarYear | I_CalendarDate | CalendarYear | Year | |
| CalendarQuarter | I_CalendarDate | CalendarQuarter | Calendar Quarter | |
| CalendarMonth | I_CalendarDate | CalendarMonth | Calendar Month | |
| CalendarWeek | I_CalendarDate | CalendarWeek | Calendar Week | |
| _Plant | I_InspectionLot | _Plant | ||
| _Material | I_InspectionLot | _Material | ||
| _Supplier | _Supplier | |||
| _Customer | _Customer | |||
| _Manufacturer | _Manufacturer | |||
| _InspectionLotType | _InspectionLotType | |||
| _UsageDecisionCode | _InspLotUsageDecision | _UsageDecisionCode | ||
| _UsageDecisionCodeGroup | _InspLotUsageDecision | _UsageDecisionCodeGroup | ||
| _InspectionLotDynamicLevel | _InspectionLotDynamicLevel | |||
| _InspLotDynamicRule | _InspLotDynamicRule | |||
| _InspLotDynRuleStage | _InspLotDynRuleStage | |||
| _InspectionSeverity | _InspectionSeverity | |||
| _IndicatorText | _InspectionLotIsSkipped | _IndicatorText | ||
| _InspectionCharacteristic | _InspectionCharacteristic |
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_QualityLevelAnalysisCube.
-- 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.
-- Parameters: P_StartDate : mm_a_delivery_date, P_EndDate : mm_a_delivery_date
CREATE VIEW I_QualityLevelAnalysisCube AS
SELECT
_InspLot.InspectionLot AS InspectionLot,
_InspChar.InspPlanOperationInternalID AS InspPlanOperationInternalID,
cast(_InspChar.InspectionCharacteristic as vdm_qmerknrp) AS InspectionCharacteristic,
_InspLot.Material AS Material,
_InspLot.Plant AS Plant,
_InspChar.InspectionSpecificationText AS InspectionSpecificationText,
_InspLot.BillOfOperationsType AS BillOfOperationsType,
_InspLot.BillOfOperationsGroup AS BillOfOperationsGroup,
_InspLot.BillOfOperationsVariant AS BillOfOperationsVariant,
Supplier,
Customer,
Manufacturer,
_InspLot.InspectionLotType AS InspectionLotType,
_InspLotUsageDecision.InspectionLotUsageDecisionCode AS InspectionLotUsageDecisionCode,
_InspLot.InspectionLotIsSkipped AS InspectionLotStatusSkip,
InspectionLotCreatedOn,
InspectionLotDynamicLevel,
_InspLotUsageDecision.InspLotUsageDecisionCodeGroup AS InspLotUsageDecisionCodeGroup,
_InspectionLotIsSkipped.IndicatorValue AS IndicatorValue,
MatlQualityAuthorizationGroup,
case when ( InspectionLotDynamicLevel = '0' or InspectionLotDynamicLevel = '1' ) then cast( 1 as abap.int4 ) else cast( 0 as abap.int4 ) end as InspectionLotCount AS int4endasInspectionLotCount,
case when InspectionLotDynamicLevel = '3' then cast( 1 as abap.int4 ) else cast( 0 as abap.int4 ) end as InspCharCount AS int4endasInspCharCount,
case when ( InspectionLotDynamicLevel = '0' or InspectionLotDynamicLevel = '1' ) and InspectionLotIsSkipped = 'X' then cast( 1 as abap.int4 ) else cast( 0 as abap.int4 ) end as InspectionLotIsSkipped AS int4endasInspectionLotIsSkipped,
case when ( InspectionLotDynamicLevel = '0' or InspectionLotDynamicLevel = '1' ) and InspectionLotIsSkipped = '' then cast( 1 as abap.int4 ) else cast( 0 as abap.int4 ) end as InspectionLotIsNotSkipped AS int4endasInspectionLotIsNotSkipped,
case when _InspChar.InspLotDynamicRule != '' and _InspChar.InspectionCharacteristicStatus = '4' then cast( 1 as abap.int4 ) else cast( 0 as abap.int4 ) end as InspCharcSkipCount AS int4endasInspCharcSkipCount,
case when _InspChar.InspLotDynamicRule != '' and ( _InspChar.InspectionCharacteristicStatus = '0' or _InspChar.InspectionCharacteristicStatus = '1' or _InspChar.InspectionCharacteristicStatus = '2' or _InspChar.InspectionCharacteristicStatus = '3' ) then cast( 1 as abap.int4 ) else cast( 0 as abap.int4 ) end as InspCharcNotSkipCount AS int4endasInspCharcNotSkipCount,
case when ( InspectionLotDynamicLevel = '0' or InspectionLotDynamicLevel = '1' ) and InspectionLotIsSkipped = '' then cast( 1 as abap.int4 ) when _InspChar.InspLotDynamicRule != '' and ( _InspChar.InspectionCharacteristicStatus = '0' or _InspChar.InspectionCharacteristicStatus = '1' or _InspChar.InspectionCharacteristicStatus = '2' or _InspChar.InspectionCharacteristicStatus = '3' ) then cast( 1 as abap.int4 ) else cast( 0 as abap.int4 ) end as InspectionNotSkippedCount AS int4endasInspectionNotSkippedCount,
cast( 1 as abap.int4 ) AS QualityLevelCount,
_InspLot.IsBusinessPurposeCompleted AS IsBusinessPurposeCompleted,
_CalendarDate.CalendarYear AS CalendarYear,
_CalendarDate.CalendarQuarter AS CalendarQuarter,
_CalendarDate.CalendarMonth AS CalendarMonth,
_CalendarDate.CalendarWeek AS CalendarWeek,
_InspLot._Plant AS _Plant,
_InspLot._Material AS _Material,
_InspLotUsageDecision._UsageDecisionCode AS _UsageDecisionCode,
_InspLotUsageDecision._UsageDecisionCodeGroup AS _UsageDecisionCodeGroup,
_InspectionLotIsSkipped._IndicatorText AS _IndicatorText
FROM I_InspectionLot AS _InspLot
LEFT OUTER JOIN I_InspectionCharacteristic AS _InspChar ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_CalendarDate AS _CalendarDate ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_InspLotDynamicRule AS _InspLotDynamicRule ON InspLotDynamicRule = _InspLotDynamicRule.InspLotDynamicRule -- association [1..1]
LEFT OUTER JOIN I_InspectionLotDynamicLevel AS _InspectionLotDynamicLevel ON InspectionLotDynamicLevel = _InspectionLotDynamicLevel.InspectionLotDynamicLevel -- association [1..1]
LEFT OUTER JOIN I_InspectionSeverity AS _InspectionSeverity ON InspectionSeverity = _InspectionSeverity.InspectionSeverity -- association [1..1]
LEFT OUTER JOIN I_InspLotDynRuleStage AS _InspLotDynRuleStage ON InspLotDynamicRule = _InspLotDynRuleStage.InspLotDynamicRule AND InspectionDynamicStage = _InspLotDynRuleStage.InspLotDynRuleStage -- association [1..1]
LEFT OUTER JOIN I_Indicator AS _InspectionLotIsSkipped ON InspectionLotStatusSkip = _InspectionLotIsSkipped.IndicatorValue -- 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]
;
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