C_QualityLvlCalc

DDL: C_QUALITYLVLCALC SQL: CQLTYLVLCALC Type: view CONSUMPTION Package: ODATA_QM_CONTROL_ANALYTICS

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)

SourceAliasJoin Type
I_QualityLevel I_QualityLevel from

Parameters (2)

NameTypeDefault
P_InspLotDynLvlPrimVal qdynhead
P_InspLotDynLvlSecdryVal qdynhead

Associations (3)

CardinalityTargetAliasCondition
[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)

NameValueLevelField
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)

KeyFieldSource TableSource FieldDescription
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]
;