I_QltyMgmtInfoSystInspLot is a Composite CDS View (Cube) that provides data about "Inspection Lot Analytics" in SAP S/4HANA. It reads from 1 data source (I_InspectionLot) and exposes 34 fields with key field InspectionLot. Part of development package ODATA_QM_INSPECTION_ANALYTICS.
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 I_QltyMgmtInfoSystInspLot.-- 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: P_StartDate : mm_a_delivery_date, P_EndDate : mm_a_delivery_dateCREATE VIEW I_QltyMgmtInfoSystInspLot ASSELECT
_InspectionLot.InspectionLot AS InspectionLot,
_InspectionLot.InspectionLotType AS InspectionLotType,
_InspectionLot.Material AS Material,
_InspectionLot.Plant AS Plant,
_InspectionLot.Supplier AS Supplier,
_InspectionLot.Customer AS Customer,
_InspectionLot.Manufacturer AS Manufacturer,
_InspectionLot.InspectionLotOrigin AS InspectionLotOrigin,
InspectionLotCreatedOn,
_InspLotUsageDecision.InspectionLotUsageDecidedOn AS InspectionLotUsageDecidedOn,
InspectionLotQuantityUnit,
InspectionLotSampleUnit,
cast( 1 as abap.int4 ) AS InspectionLotCount,
casewhen (_InspectionLot.InspectionLotIsSkipped <> 'X' and (_InspectionLot._InspLotUsageDecision.InspLotUsageDecisionValuation = 'A' or _InspectionLot._InspLotUsageDecision.InspLotUsageDecisionValuation = 'R')) thencast( 1 as abap.int4 ) elsecast( 0 as abap.int4 ) endas NmbrOfVltdInspections AS int4endasNmbrOfVltdInspections,
casewhen _InspectionLot.InspectionLotIsSkipped = 'X' thencast( 1 as abap.int4 ) elsecast( 0 as abap.int4 ) endas InspectionLotIsSkipped AS int4endasInspectionLotIsSkipped,
casewhen _InspectionLot.InspectionLotIsSkipped = '' thencast( 1 as abap.int4 ) elsecast( 0 as abap.int4 ) endas InspectionLotIsNotSkipped AS int4endasInspectionLotIsNotSkipped,
casewhen _InspectionLot.InspectionLotIsSkipped = 'X' thencast( 100 as abap.int4 ) elsecast( 0 as abap.int4 ) endas InspectionSkipRate AS int4endasInspectionSkipRate,
casewhen _InspectionLot.InspectionLotIsSkipped <> 'X' and _InspectionLot._InspLotUsageDecision.InspLotUsageDecisionValuation = 'A' thencast( 1 as abap.int4 ) elsecast( 0 as abap.int4 ) endas NumberOfAcceptedInspectionLots AS int4endasNumberOfAcceptedInspectionLots,
casewhen _InspectionLot.InspectionLotIsSkipped <> 'X' and _InspectionLot._InspLotUsageDecision.InspLotUsageDecisionValuation = 'R' thencast( 1 as abap.int4 ) elsecast( 0 as abap.int4 ) endas NumberOfRejectedInspectionLots AS int4endasNumberOfRejectedInspectionLots,
casewhen _InspectionLot.InspectionLotIsSkipped <> 'X' and _InspectionLot._InspLotUsageDecision.InspLotUsageDecisionValuation = 'R' thencast( 100 as abap.int4 ) elsecast( 0 as abap.int4 ) endas InspectionLotRejectedRate AS int4endasInspectionLotRejectedRate,
_InspectionLot.InspectionLotQuantity AS InspectionLotQuantity,
casewhen _InspectionLot.InspectionLotIsSkipped = 'X' thencast( 100 as abap.int4 ) elsecast( 0 as abap.int4 ) endas InspLotSkipQuantityInPercent AS int4endasInspLotSkipQuantityInPercent,
casewhen _InspectionLot._InspLotUsageDecision.InspLotUsageDecisionValuation = 'R' thencast( 100 as abap.int4 ) elsecast( 0 as abap.int4 ) endas InspLotRjctdQuantityInPercent AS int4endasInspLotRjctdQuantityInPercent,
_InspectionLot._InspLotUsageDecision.InspectionLotQualityScore AS InspectionLotQualityScore,
DATS_DAYS_BETWEEN( _InspectionLot.InspectionLotCreatedOn, _InspectionLot._InspLotUsageDecision.InspectionLotUsageDecidedOn ) AS InspLotMeanProcgDurationInDays,
MatlQualityAuthorizationGroup,
IsBusinessPurposeCompleted,
_InspectionLot._InspectionLotType AS _InspectionLotType,
_InspectionLot._Material AS _Material,
_InspectionLot._Plant AS _Plant,
_InspectionLot._Supplier AS _Supplier,
_InspectionLot._Customer AS _Customer,
_InspectionLot._Manufacturer AS _Manufacturer,
_InspectionLot._InspectionLotOrigin AS _InspectionLotOrigin
FROM I_InspectionLot AS _InspectionLot
;