C_QualityScoreHistory

DDL: C_QUALITYSCOREHISTORY SQL: CQLTYSCOREHIS Type: view CONSUMPTION

Quality Score History

C_QualityScoreHistory is a Consumption CDS View that provides data about "Quality Score History" in SAP S/4HANA. It reads from 1 data source (I_InspectionLot) and exposes 17 fields with key field InspectionLot.

Data Sources (1)

SourceAliasJoin Type
I_InspectionLot _InspLot from

Annotations (9)

NameValueLevelField
AbapCatalog.sqlViewName CQLTYSCOREHIS view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #CHECK view
VDM.viewType #CONSUMPTION view
EndUserText.label Quality Score History view
ClientHandling.algorithm #SESSION_VARIABLE view
ObjectModel.usageType.dataClass #MIXED view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #L view

Fields (17)

KeyFieldSource TableSource FieldDescription
KEY InspectionLot I_InspectionLot InspectionLot Inspection Lot
MaterialName
PlantName
Material I_InspectionLot Material Vehicle Model
Plant I_InspectionLot Plant Valuation Area
InspectionLotType I_InspectionLot InspectionLotType Inspection Type
UsageDecisionCodeText
InspectionLotUsageDecisionCode
InspLotUsageDecisionCodeGroup
InspectionLotQualityScore
InspLotUsageDecisionValuation
InspectionLotIsSkipped
InspectionLotOrigin I_InspectionLot InspectionLotOrigin
InspectionLotCreatedOn I_InspectionLot InspectionLotCreatedOn Created On
InspectionLotUsageDecidedOn
MatlQualityAuthorizationGroup I_InspectionLot MatlQualityAuthorizationGroup QM Matl Auth.
IsBusinessPurposeCompleted I_InspectionLot IsBusinessPurposeCompleted Purpose Completed

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_QualityScoreHistory.
-- 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: CQLTYSCOREHIS

CREATE VIEW C_QualityScoreHistory AS
SELECT
  _InspLot.InspectionLot AS InspectionLot,
  _InspLot._Material._Text[1:Language=$session.system_language].MaterialName AS MaterialName,
  _InspLot._Plant.PlantName AS PlantName,
  _InspLot.Material AS Material,
  _InspLot.Plant AS Plant,
  _InspLot.InspectionLotType AS InspectionLotType,
  _InspLot._InspLotUsageDecision._UsageDecisionCode.UsageDecisionCodeText AS UsageDecisionCodeText,
  _InspLot._InspLotUsageDecision.InspectionLotUsageDecisionCode AS InspectionLotUsageDecisionCode,
  _InspLot._InspLotUsageDecision.InspLotUsageDecisionCodeGroup AS InspLotUsageDecisionCodeGroup,
  _InspLot._InspLotUsageDecision.InspectionLotQualityScore AS InspectionLotQualityScore,
  _InspLot._InspLotUsageDecision.InspLotUsageDecisionValuation AS InspLotUsageDecisionValuation,
  cast(_InspLot.InspectionLotIsSkipped as xfeld) AS InspectionLotIsSkipped,
  _InspLot.InspectionLotOrigin AS InspectionLotOrigin,
  _InspLot.InspectionLotCreatedOn AS InspectionLotCreatedOn,
  _InspLot._InspLotUsageDecision.InspectionLotUsageDecidedOn AS InspectionLotUsageDecidedOn,
  _InspLot.MatlQualityAuthorizationGroup AS MatlQualityAuthorizationGroup,
  _InspLot.IsBusinessPurposeCompleted AS IsBusinessPurposeCompleted
FROM I_InspectionLot AS _InspLot
;