I_QltyMgmtInfoSystInspLot

DDL: I_QLTYMGMTINFOSYSTINSPLOT Type: view COMPOSITE

Inspection Lot Analytics

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.

Data Sources (1)

SourceAliasJoin Type
I_InspectionLot _InspectionLot from

Parameters (2)

NameTypeDefault
P_StartDate mm_a_delivery_date
P_EndDate mm_a_delivery_date

Annotations (15)

NameValueLevelField
AbapCatalog.buffering.status #NOT_ALLOWED view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.sqlViewName IQMISINSPLOT view
AccessControl.authorizationCheck #CHECK view
AccessControl.personalData.blocking #REQUIRED view
Analytics.dataCategory #CUBE view
ClientHandling.algorithm #SESSION_VARIABLE view
EndUserText.label Inspection Lot Analytics view
Metadata.ignorePropagatedAnnotations true view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #L view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
VDM.viewType #COMPOSITE view
VDM.lifecycle.contract.type #SAP_INTERNAL_API view
Metadata.allowExtensions true view

Fields (34)

KeyFieldSource TableSource FieldDescription
KEY InspectionLot I_InspectionLot InspectionLot Inspection Lot
InspectionLotType I_InspectionLot InspectionLotType Inspection Type
Material I_InspectionLot Material Vehicle Model
Plant I_InspectionLot Plant Valuation Area
Supplier I_InspectionLot Supplier Supplier
Customer I_InspectionLot Customer Sold-to Party
Manufacturer I_InspectionLot Manufacturer Manufacturer
InspectionLotOrigin I_InspectionLot InspectionLotOrigin
InspectionLotCreatedOn InspectionLotCreatedOn Created On
InspectionLotUsageDecidedOn _InspLotUsageDecision InspectionLotUsageDecidedOn
InspectionLotQuantityUnit InspectionLotQuantityUnit Sample UOM
InspectionLotSampleUnit InspectionLotSampleUnit
InspectionLotCount
int4endasNmbrOfVltdInspections
int4endasInspectionLotIsSkipped
int4endasInspectionLotIsNotSkipped
int4endasInspectionSkipRate
int4endasNumberOfAcceptedInspectionLots
int4endasNumberOfRejectedInspectionLots
int4endasInspectionLotRejectedRate
InspectionLotQuantity I_InspectionLot InspectionLotQuantity
int4endasInspLotSkipQuantityInPercent
int4endasInspLotRjctdQuantityInPercent
InspectionLotQualityScore
InspLotMeanProcgDurationInDays
MatlQualityAuthorizationGroup MatlQualityAuthorizationGroup QM Matl Auth.
IsBusinessPurposeCompleted IsBusinessPurposeCompleted Purpose Completed
_InspectionLotType I_InspectionLot _InspectionLotType
_Material I_InspectionLot _Material
_Plant I_InspectionLot _Plant
_Supplier I_InspectionLot _Supplier
_Customer I_InspectionLot _Customer
_Manufacturer I_InspectionLot _Manufacturer
_InspectionLotOrigin I_InspectionLot _InspectionLotOrigin

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_date

CREATE VIEW I_QltyMgmtInfoSystInspLot AS
SELECT
  _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,
  case when (_InspectionLot.InspectionLotIsSkipped <> 'X' and (_InspectionLot._InspLotUsageDecision.InspLotUsageDecisionValuation = 'A' or _InspectionLot._InspLotUsageDecision.InspLotUsageDecisionValuation = 'R')) then cast( 1 as abap.int4 ) else cast( 0 as abap.int4 ) end as NmbrOfVltdInspections AS int4endasNmbrOfVltdInspections,
  case when _InspectionLot.InspectionLotIsSkipped = 'X' then cast( 1 as abap.int4 ) else cast( 0 as abap.int4 ) end as InspectionLotIsSkipped AS int4endasInspectionLotIsSkipped,
  case when _InspectionLot.InspectionLotIsSkipped = '' then cast( 1 as abap.int4 ) else cast( 0 as abap.int4 ) end as InspectionLotIsNotSkipped AS int4endasInspectionLotIsNotSkipped,
  case when _InspectionLot.InspectionLotIsSkipped = 'X' then cast( 100 as abap.int4 ) else cast( 0 as abap.int4 ) end as InspectionSkipRate AS int4endasInspectionSkipRate,
  case when _InspectionLot.InspectionLotIsSkipped <> 'X' and _InspectionLot._InspLotUsageDecision.InspLotUsageDecisionValuation = 'A' then cast( 1 as abap.int4 ) else cast( 0 as abap.int4 ) end as NumberOfAcceptedInspectionLots AS int4endasNumberOfAcceptedInspectionLots,
  case when _InspectionLot.InspectionLotIsSkipped <> 'X' and _InspectionLot._InspLotUsageDecision.InspLotUsageDecisionValuation = 'R' then cast( 1 as abap.int4 ) else cast( 0 as abap.int4 ) end as NumberOfRejectedInspectionLots AS int4endasNumberOfRejectedInspectionLots,
  case when _InspectionLot.InspectionLotIsSkipped <> 'X' and _InspectionLot._InspLotUsageDecision.InspLotUsageDecisionValuation = 'R' then cast( 100 as abap.int4 ) else cast( 0 as abap.int4 ) end as InspectionLotRejectedRate AS int4endasInspectionLotRejectedRate,
  _InspectionLot.InspectionLotQuantity AS InspectionLotQuantity,
  case when _InspectionLot.InspectionLotIsSkipped = 'X' then cast( 100 as abap.int4 ) else cast( 0 as abap.int4 ) end as InspLotSkipQuantityInPercent AS int4endasInspLotSkipQuantityInPercent,
  case when _InspectionLot._InspLotUsageDecision.InspLotUsageDecisionValuation = 'R' then cast( 100 as abap.int4 ) else cast( 0 as abap.int4 ) end as 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
;