C_DefectCalc

DDL: C_DEFECTCALC SQL: CDEFECTCALC Type: view CONSUMPTION Package: ODATA_QM_DEFECT

Manage Defects Calculation Fields

C_DefectCalc is a Consumption CDS View that provides data about "Manage Defects Calculation Fields" in SAP S/4HANA. It reads from 1 data source (I_DefectUnion) and exposes 5 fields with key field DefectInternalID. It has 1 association to related views. It is exposed through 1 OData service (ASQL_F2649). Part of development package ODATA_QM_DEFECT.

Data Sources (1)

SourceAliasJoin Type
I_DefectUnion I_DefectUnion from

Associations (1)

CardinalityTargetAliasCondition
[0..1] I_MfgOrderVH _MfgOrderVH $projection.ManufacturingOrder = _MfgOrderVH.ManufacturingOrder

Annotations (9)

NameValueLevelField
AbapCatalog.sqlViewName CDEFECTCALC view
AbapCatalog.compiler.compareFilter true view
EndUserText.label Manage Defects Calculation Fields view
ClientHandling.algorithm #SESSION_VARIABLE view
VDM.viewType #CONSUMPTION view
AccessControl.authorizationCheck #PRIVILEGED_ONLY view
ObjectModel.usageType.dataClass #MIXED view
ObjectModel.usageType.serviceQuality #D view
ObjectModel.usageType.sizeCategory #XL view

OData Services (1)

ServiceBindingVersionContractRelease
ASQL_F2649 ASQL_F2649 C2 NOT_RELEASED

Fields (5)

KeyFieldSource TableSource FieldDescription
KEY DefectInternalID DefectInternalID Internal Defect ID
NumberOfDefects NumberOfDefects
CreationDateTime
LastChangeDateTime
ManufacturingOrder ProductionOrder Order

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_DefectCalc.
-- 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: CDEFECTCALC

CREATE VIEW C_DefectCalc AS
SELECT
  DefectInternalID,
  NumberOfDefects,
  cast(dats_tims_to_tstmp(CreationDate, CreationTime, abap_system_timezone($session.client, 'NULL'), $session.client, 'NULL') as timestamp ) AS CreationDateTime,
  cast(dats_tims_to_tstmp(LastChangeDate, LastChangeTime, abap_system_timezone($session.client, 'NULL'), $session.client, 'NULL') as timestamp ) AS LastChangeDateTime,
  ProductionOrder AS ManufacturingOrder
FROM I_DefectUnion
LEFT OUTER JOIN I_MfgOrderVH AS _MfgOrderVH ON ManufacturingOrder = _MfgOrderVH.ManufacturingOrder  -- association [0..1]
;