I_InspLotDynRuleStage

DDL: I_INSPLOTDYNRULESTAGE SQL: IINSPLTDYNRLSTG Type: view BASIC

Inspection Stage

I_InspLotDynRuleStage (Basic)

Package: Explore, extend and adapt the SAP S/4HANA Cloud Private Edition with built-in and side-by-side extension capabilities.

Manufacturing

I_InspLotDynRuleStage is a Basic CDS View (Dimension) that provides data about "Inspection Stage" in SAP S/4HANA. It reads from 1 data source (qdps) and exposes 14 fields with key fields InspLotDynamicRule, InspLotDynRuleStage. It has 3 associations to related views.

SAP Help Documentation

CategoryCDS Views for Quality Planning
Purpose
This CDS view retrieves the inspection stages defined for a dynamic modification rule. This CDS view provides the data to answer the following business questions: Which inspection stages are defined for a dynamic modification rule? What are the conditions that lead to an inspection stage change? To help you decide which CDS view to use for your purposes, SAP has introduced the annotation ObjectModel.supportedCapabilities that indicates the most appropriate use cases for each CDS view. To find out what use cases are best supported by this CDS view, access the entry of the CDS view in the View Browser app and find the values for this annotation under the Annotation tab. For more information, see Supported Capabilities for CDS Views .

Prerequisites
Authorizations Users who want to use this CDS view must have the following authorization objects assigned: Q_DYNMODRL (Dynamic Modification Rule)

Structure
Fields Used for Filtering The main filters are as follows: InspLotDynamicRule : This field is used to filter for the inspection stages of one or more dynamic modification rules. Further Important Fields Important fields in this view include the following: Field Name Description InspLotDynRuleStage Inspection Stage InspectionSeverity Inspection Severity InspectionLotIsSkipped Skip InspectionsRqdToReduceStge Number of Inspections Required for a Reduced Inspection InspectionsToTightenStage Number of Inspections Considered for a Tightened Inspection InspRejectionsToReduceStage Number of Rejections Allowed for a Reduced Inspection InspRejectionsToTightenStage Number of Rejections Sufficient for a Tightened Inspection NextDynRuleStgeIfInspAccepted New Inspection Stage if OK NextDynRuleStgeIfInspRejected New Inspection Stage if Not OK InspLotDynRuleStageMaxSkips Maximum Skip Duration

View on SAP Help Portal →

SAP API Hub

StateC1
Line of BusinessManufacturing
Application ComponentQM-PT
CapabilitiesData Source in SQL Select, Association Target for Defining CDS Entities, Data Source for Defining CDS Entities, Analytical Dimension
PackageManufacturing for SAP S/4HANA Cloud Private Edition
Description <p>This CDS view retrieves the inspection stages defined for a dynamic modification rule.</p> <p>This CDS view provides the data to answer the following business questions:</p> <ul> <li><p>Which inspection stages are defined for a dynamic modification rule?</p></li> <li><p>What are the conditions that lead to an inspection stage change?</p></li> </ul> <p>To help you decide which CDS view to use for your purposes, SAP has introduced the annotation ObjectModel.supportedCapabilities that indicates the most appropriate use cases for each CDS view. To find out what use cases are best supported by this CDS view, access the entry of the CDS view in the View Browser app and find the values for this annotation under the Annotation tab. For more information, see Supported Capabilities for CDS Views.</p>

Documentation

Data Sources (1)

SourceAliasJoin Type
qdps qdps from

Associations (3)

CardinalityTargetAliasCondition
[1..1] I_InspLotDynamicRule _InspLotDynamicRule $projection.InspLotDynamicRule = _InspLotDynamicRule.InspLotDynamicRule
[0..*] I_InspLotDynRuleStageText _Text $projection.InspLotDynamicRule = _Text.InspLotDynamicRule and $projection.InspLotDynRuleStage = _Text.InspLotDynRuleStage
[0..1] I_InspectionSeverity _InspectionSeverity $projection.InspectionSeverity = _InspectionSeverity.InspectionSeverity

Annotations (13)

NameValueLevelField
EndUserText.label Inspection Stage view
Analytics.dataCategory #DIMENSION view
Metadata.allowExtensions true view
VDM.viewType #BASIC view
ClientHandling.algorithm #SESSION_VARIABLE view
AccessControl.authorizationCheck #MANDATORY view
AbapCatalog.sqlViewName IINSPLTDYNRLSTG view
Metadata.ignorePropagatedAnnotations true view
ObjectModel.modelingPattern #ANALYTICAL_DIMENSION view
ObjectModel.representativeKey InspLotDynRuleStage view
ObjectModel.usageType.serviceQuality #A view
ObjectModel.usageType.sizeCategory #S view
ObjectModel.usageType.dataClass #MASTER view

Fields (14)

KeyFieldSource TableSource FieldDescription
KEY InspLotDynamicRule Dynamic Modification Rule
KEY InspLotDynRuleStage prstufe Inspection Stage
InspectionSeverity prschaerfe Inspection Severity
InspectionLotIsSkipped kzskip Inspection Stage Corresponds to a Skip (Skip Stage)
InspectionsRqdToReduceStge anzprred Number of Inspections Required for a Reduced Inspection
InspectionsToTightenStage anzprver Number of Inspections Considered for a Tightened Inspection
InspRejectionsToReduceStage anzrwred Number of Rejections Allowed for a Reduced Inspection
InspRejectionsToTightenStage anzrwver Number of Rejections Sufficient for a Tightened Inspection
NextDynRuleStgeIfInspAccepted redstufe New Inspection Stage if OK
NextDynRuleStgeIfInspRejected verstufe New Inspection Stage if Not OK
InspLotDynRuleStageMaxSkips maxskipdr Maximum Skip Duration
_InspLotDynamicRule _InspLotDynamicRule
_Text _Text
_InspectionSeverity _InspectionSeverity

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_InspLotDynRuleStage.
-- 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: IINSPLTDYNRLSTG

CREATE VIEW I_InspLotDynRuleStage AS
SELECT
  cast( dynregel as vdm_qdynregel preserving type ) AS InspLotDynamicRule,
  prstufe AS InspLotDynRuleStage,
  prschaerfe AS InspectionSeverity,
  kzskip AS InspectionLotIsSkipped,
  anzprred AS InspectionsRqdToReduceStge,
  anzprver AS InspectionsToTightenStage,
  anzrwred AS InspRejectionsToReduceStage,
  anzrwver AS InspRejectionsToTightenStage,
  redstufe AS NextDynRuleStgeIfInspAccepted,
  verstufe AS NextDynRuleStgeIfInspRejected,
  maxskipdr AS InspLotDynRuleStageMaxSkips
FROM qdps
LEFT OUTER JOIN I_InspLotDynamicRule AS _InspLotDynamicRule ON InspLotDynamicRule = _InspLotDynamicRule.InspLotDynamicRule  -- association [1..1]
LEFT OUTER JOIN I_InspLotDynRuleStageText AS _Text ON InspLotDynamicRule = _Text.InspLotDynamicRule AND InspLotDynRuleStage = _Text.InspLotDynRuleStage  -- association [0..*]
LEFT OUTER JOIN I_InspectionSeverity AS _InspectionSeverity ON InspectionSeverity = _InspectionSeverity.InspectionSeverity  -- association [0..1]
;