C_DefectKeyFigAnalyze

DDL: C_DEFECTKEYFIGANALYZE Type: view CONSUMPTION Package: ODATA_QM_DEFECT_ANALYTICS

Defect Analytics - Key Figures

C_DefectKeyFigAnalyze is a Consumption CDS View (Cube) that provides data about "Defect Analytics - Key Figures" in SAP S/4HANA. It reads from 1 data source (I_DefectKeyFigCube) and exposes 54 fields. It has 5 associations to related views. Part of development package ODATA_QM_DEFECT_ANALYTICS.

Data Sources (1)

SourceAliasJoin Type
I_DefectKeyFigCube I_DefectKeyFigCube from

Parameters (5)

NameTypeDefault
hidden true
P_StartDate mm_a_delivery_date
hidden true
P_EndDate mm_a_delivery_date
P_DateFunction vdm_defectcrte_dtefuncid

Associations (5)

CardinalityTargetAliasCondition
[1..1] I_CalendarDate _CalendarDate $projection.CreationDate = _CalendarDate.CalendarDate
[0..1] I_MaterialText _MaterialText _MaterialText.Material = $projection.Material and _MaterialText.Language = $session.system_language
[0..1] I_Plant _Plant $projection.Plant = _Plant.Plant
[0..1] I_Supplier _Supplier $projection.Supplier = _Supplier.Supplier
[0..1] I_Customer _Customer $projection.Customer = _Customer.Customer

Annotations (15)

NameValueLevelField
AbapCatalog.buffering.status #NOT_ALLOWED view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.sqlViewName CDEFECTKEYFIG view
AccessControl.authorizationCheck #CHECK view
AccessControl.personalData.blocking #REQUIRED view
Analytics.dataCategory #CUBE view
ClientHandling.algorithm #SESSION_VARIABLE view
EndUserText.label Defect Analytics - Key Figures view
Metadata.ignorePropagatedAnnotations true view
Metadata.allowExtensions true view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
ObjectModel.usageType.sizeCategory #L view
ObjectModel.usageType.serviceQuality #D view
ObjectModel.representativeKey DefectInternalID view
VDM.viewType #CONSUMPTION view

Fields (54)

KeyFieldSource TableSource FieldDescription
hiddentrueP_StartDatemm_a_delivery_date
hiddentrueP_EndDatemm_a_delivery_date
P_StartDate
CustomerkeyDefectInternalID
InspectionLot InspectionLot Inspection Lot
DefectCategoryText
DefectCategory DefectCategory
CreationDate CreationDate Time Stamp
CalendarYear _CalendarDate CalendarYear Year
CalendarQuarter _CalendarDate CalendarQuarter Calendar Quarter
CalendarQuarterName
CalendarMonth _CalendarDate CalendarMonth Calendar Month
CalendarMonthName
CalendarWeek _CalendarDate CalendarWeek Calendar Week
DefectCodeText
DefectCode DefectCode Damage Code
DefectCodeGroupText
DefectLifecycleStatus DefectLifecycleStatus
DefectCodeGroup DefectCodeGroup Code Group
WorkCenterText WorkCenterText Work Center Text
WorkCenter WorkCenter Work Center
PlantName _Plant PlantName Plant Name
Plant Plant Valuation Area
SupplierName _Supplier SupplierName Supplier Name
Supplier Supplier Supplier
MaterialName
Material Material Vehicle Model
CustomerFullName _Customer CustomerFullName Customer Name
Customer Customer Sold-to Party
InspResultHistoryCharc
InspectionCharacteristicText I_DefectKeyFigCube InspectionSpecificationText
MasterInspCharcsKey
InspectionSpecificationText
NumberOfDefects NumberOfDefects
NumberOfDefectsWithNotif NumberOfDefectsWithNotif
NumberOfDefectsWithoutNotif NumberOfDefectsWithoutNotif
InspectionLotOrigin InspectionLotOrigin
InspectionLotType InspectionLotType Inspection Type
InspectionCharacteristic InspectionCharacteristic
InspectionSpecification InspectionSpecification Master IC
Notification Notification Notification
NotificationItem NotificationItem
MainWorkCenterInternalID MainWorkCenterInternalID Work Center
WorkCenterPlant Plnt WorkCenter
WorkCenterPlantName
MatlQualityAuthorizationGroup MatlQualityAuthorizationGroup QM Matl Auth.
IsBusinessPurposeCompleted IsBusinessPurposeCompleted Purpose Completed
MainWorkCenter MainWorkCenter Work Center
MainWorkCenterPlant MainWorkCenterPlant Plnt WorkCenter
WorkCenterTypeCode WorkCenterTypeCode Object Type
InspectionSpecificationPlant InspectionSpecificationPlant
InspectionSpecificationVersion InspectionSpecificationVersion
_Notification _Notification
_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_DefectKeyFigAnalyze.
-- 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: hidden : true, P_StartDate : mm_a_delivery_date, hidden : true, P_EndDate : mm_a_delivery_date, P_DateFunction : vdm_defectcrte_dtefuncid

CREATE VIEW C_DefectKeyFigAnalyze AS
SELECT
  hidden: true AS hiddentrueP_StartDatemm_a_delivery_date,
  hidden: true AS hiddentrueP_EndDatemm_a_delivery_date,
  valueHelpDefinition: [ { entity: { name: 'C_GregorianCalDateFuncVH', element: 'DateFunction' AS P_StartDate,
  InspectionLot,
  _DefectCategory._Text[1:Language=$session.system_language].DefectCategoryText AS DefectCategoryText,
  DefectCategory,
  CreationDate,
  _CalendarDate.CalendarYear AS CalendarYear,
  _CalendarDate.CalendarQuarter AS CalendarQuarter,
  _CalendarDate._CalendarQuarter._Text[1:Language=$session.system_language].CalendarQuarterName AS CalendarQuarterName,
  _CalendarDate.CalendarMonth AS CalendarMonth,
  _CalendarDate._CalendarMonth._Text[1:Language=$session.system_language].CalendarMonthName AS CalendarMonthName,
  _CalendarDate.CalendarWeek AS CalendarWeek,
  _DefectCode._Text[1:Language=$session.system_language].DefectCodeText AS DefectCodeText,
  DefectCode,
  _DefectCodeGroup._Text[1:Language=$session.system_language].DefectCodeGroupText AS DefectCodeGroupText,
  DefectLifecycleStatus,
  DefectCodeGroup,
  WorkCenterText,
  WorkCenter,
  _Plant.PlantName AS PlantName,
  Plant,
  _Supplier.SupplierName AS SupplierName,
  Supplier,
  _MaterialText[1:Language=$session.system_language].MaterialName AS MaterialName,
  Material,
  _Customer.CustomerFullName AS CustomerFullName,
  Customer,
  cast( InspResultHistoryCharc as qm_inspresaggr_charkey ) AS InspResultHistoryCharc,
  I_DefectKeyFigCube.InspectionSpecificationText AS InspectionCharacteristicText,
  cast( MasterInspCharcsKey as vdm_qmstrinspcharcs ) AS MasterInspCharcsKey,
  _InspSpecificationVersionText[1:Language=$session.system_language].InspectionSpecificationText AS InspectionSpecificationText,
  NumberOfDefects,
  NumberOfDefectsWithNotif,
  NumberOfDefectsWithoutNotif,
  InspectionLotOrigin,
  InspectionLotType,
  InspectionCharacteristic,
  InspectionSpecification,
  Notification,
  NotificationItem,
  MainWorkCenterInternalID,
  cast(MainWorkCenterPlant as vdm_poplatzwrk) AS WorkCenterPlant,
  _WorkCenterBySemanticKey._Plant.PlantName AS WorkCenterPlantName,
  MatlQualityAuthorizationGroup,
  IsBusinessPurposeCompleted,
  MainWorkCenter,
  MainWorkCenterPlant,
  WorkCenterTypeCode,
  InspectionSpecificationPlant,
  InspectionSpecificationVersion
FROM I_DefectKeyFigCube
LEFT OUTER JOIN I_CalendarDate AS _CalendarDate ON CreationDate = _CalendarDate.CalendarDate  -- association [1..1]
LEFT OUTER JOIN I_MaterialText AS _MaterialText ON _MaterialText.Material = Material AND _MaterialText.Language = $session.system_language  -- association [0..1]
LEFT OUTER JOIN I_Plant AS _Plant ON Plant = _Plant.Plant  -- association [0..1]
LEFT OUTER JOIN I_Supplier AS _Supplier ON Supplier = _Supplier.Supplier  -- association [0..1]
LEFT OUTER JOIN I_Customer AS _Customer ON Customer = _Customer.Customer  -- association [0..1]
;