C_MfgExecDefectRecord

DDL: C_MFGEXECDEFECTRECORD SQL: CMFGEXECDEFRECD Type: view CONSUMPTION Package: MPE_EXEC_NON_CONFORMANCE

View with UI attributes for defect

C_MfgExecDefectRecord is a Consumption CDS View that provides data about "View with UI attributes for defect" in SAP S/4HANA. It reads from 8 data sources and exposes 29 fields with key field DefectInternalID. It is exposed through 2 OData services (ASQL_F2929, ASQL_F2987). Part of development package MPE_EXEC_NON_CONFORMANCE.

Data Sources (8)

SourceAliasJoin Type
I_Defect_TP Defect from
I_DefectCategory DefectCategory inner
I_MfgOrdDefectDecision DefectDecision left_outer
I_Equipment Equipment left_outer
I_MfgOrderOperation MfgOrderOperation left_outer
I_OpActyInstceOpActyNtwkElmnt OAINE inner
I_OpActyInstanceStatusBasic OpActyInstanceStatusBasic left_outer
I_ProductionHoldBasic ProductionHold left_outer

Annotations (8)

NameValueLevelField
AbapCatalog.sqlViewName CMFGEXECDEFRECD view
AbapCatalog.compiler.compareFilter true view
EndUserText.label View with UI attributes for defect view
AccessControl.authorizationCheck #CHECK view
ObjectModel.usageType.serviceQuality #D view
ObjectModel.usageType.sizeCategory #L view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
VDM.viewType #CONSUMPTION view

OData Services (2)

ServiceBindingVersionContractRelease
ASQL_F2929 ASQL_F2929 C2 NOT_RELEASED
ASQL_F2987 ASQL_F2987 C2 NOT_RELEASED

Fields (29)

KeyFieldSource TableSource FieldDescription
KEY DefectInternalID I_Defect_TP DefectInternalID Internal Defect ID
DefectCategory I_Defect_TP DefectCategory Violation Category
Plant I_Defect_TP Plant Valuation Area
ProductionOrder ProductionOrder Order
IsEditable
SerialNumber I_Defect_TP DefectiveSingleUnit Defective Serial Number
ManufacturerSerialNumber I_Equipment ManufacturerSerialNumber Mnf.serial no.
ProductionOrderOperation I_Defect_TP ProductionOrderOperation Transaction
MfgOrderOperationText I_MfgOrderOperation MfgOrderOperationText
OpActyNtwkElementExternalID I_OpActyInstceOpActyNtwkElmnt OpActyNtwkElementExternalID Op. Activity
MfgDefectDecisionName Defect Decision
ProductionHoldObjectTypeName Applied Hold
DefectiveQuantity DefectiveQuantity Defective Quantity
OpActyNtwkInstance I_OpActyInstceOpActyNtwkElmnt OpActyNtwkInstance Instance ID
OpActyNtwkElement I_OpActyInstceOpActyNtwkElmnt OpActyNtwkElement Element Number
ShopFloorItem ShopFloorItem ShopFloorItem Serial.Mat. ID
OpActyIsSeldForRtactvPostg I_OpActyInstanceStatusBasic OpActyIsSeldForRtactvPostg Retroactive
OrderInternalBillOfOperations OrderInternalBillOfOperations Order Internal Bill of Operations
OrderIntBillOfOperationsItem OrderIntBillOfOperationsItem Order Internal Bill of Operations Item
MainWorkCenter MainWorkCenter Work Center
MainWorkCenterPlant MainWorkCenterPlant Plnt WorkCenter
Material I_Defect_TP Material Vehicle Model
BOMItemInstanceUUID I_Defect_TP BOMItemInstanceUUID
MfgRefStrucItmRefDsgntrName
Batch I_Defect_TP Batch Lot No.
BatchBySupplier Batch BatchBySupplier Supplier Batch
ProducedMaterial I_Defect_TP ProducedMaterial Produced Material
ProducedSerialNumber I_Defect_TP ProducedSerialNumber Produced Serial Number
ReferenceDesignatorValue Reference Designator

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_MfgExecDefectRecord.
-- 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: CMFGEXECDEFRECD

CREATE VIEW C_MfgExecDefectRecord AS
SELECT
  Defect.DefectInternalID AS DefectInternalID,
  Defect.DefectCategory AS DefectCategory,
  Defect.Plant AS Plant,
  ProductionOrder,
  cast( '' as boolean preserving type) AS IsEditable,
  Defect.DefectiveSingleUnit AS SerialNumber,
  Equipment.ManufacturerSerialNumber AS ManufacturerSerialNumber,
  Defect.ProductionOrderOperation AS ProductionOrderOperation,
  MfgOrderOperation.MfgOrderOperationText AS MfgOrderOperationText,
  OAINE.OpActyNtwkElementExternalID AS OpActyNtwkElementExternalID,
  DefectDecision._DefectDecisionVH._Text[1:Language=$session.system_language].MfgDefectDecisionName AS MfgDefectDecisionName,
  ProductionHold._ProductionHoldObjectType._Text[1:Language=$session.system_language].ProductionHoldObjectTypeName AS ProductionHoldObjectTypeName,
  DefectiveQuantity,
  OAINE.OpActyNtwkInstance AS OpActyNtwkInstance,
  OAINE.OpActyNtwkElement AS OpActyNtwkElement,
  ShopFloorItem.ShopFloorItem AS ShopFloorItem,
  OpActyInstanceStatusBasic.OpActyIsSeldForRtactvPostg AS OpActyIsSeldForRtactvPostg,
  OrderInternalBillOfOperations,
  OrderIntBillOfOperationsItem,
  MainWorkCenter,
  MainWorkCenterPlant,
  Defect.Material AS Material,
  Defect.BOMItemInstanceUUID AS BOMItemInstanceUUID,
  cast('' as mpe_mrs_designator_name) AS MfgRefStrucItmRefDsgntrName,
  Defect.Batch AS Batch,
  Batch.BatchBySupplier AS BatchBySupplier,
  Defect.ProducedMaterial AS ProducedMaterial,
  Defect.ProducedSerialNumber AS ProducedSerialNumber,
  cast('' as vmp_ref_des) AS ReferenceDesignatorValue
FROM I_Defect_TP AS Defect
INNER JOIN I_OpActyInstceOpActyNtwkElmnt AS OAINE ON /* join condition not captured in parsed metadata */
INNER JOIN I_DefectCategory AS DefectCategory ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_MfgOrderOperation AS MfgOrderOperation ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_Equipment AS Equipment ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_MfgOrdDefectDecision AS DefectDecision ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_ProductionHoldBasic AS ProductionHold ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_OpActyInstanceStatusBasic AS OpActyInstanceStatusBasic ON /* join condition not captured in parsed metadata */
;