I_SamplingSchemeItem

DDL: I_SAMPLINGSCHEMEITEM Type: view_entity BASIC Package: VDM_QM_INSPECTION

Sampling Scheme Item

I_SamplingSchemeItem (Basic)

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

Manufacturing

I_SamplingSchemeItem is a Basic CDS View that provides data about "Sampling Scheme Item" in SAP S/4HANA. It reads from 1 data source (qdpp) and exposes 4 fields with key fields SamplingScheme, SmplgSchmItemSequentialNumber. It has 1 association to related views. Part of development package VDM_QM_INSPECTION.

SAP Help Documentation

CategoryCDS Views for Quality Planning
Purpose
This CDS view provides access to sampling scheme items. This CDS view provides the data to answer the following business questions: What are the details of each item within a specific sampling scheme? What is the acceptable quality level (AQL) for each item in a sampling scheme? 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 a role with one of the following objects assigned: IAM app Display Sampling Scheme ( QDP3_TRAN ) Business catalog QM - Basic Data Display ( SAP_QM_BC_BASIC_DATA_DSP_PC ) Business catalog QM - Basic Data ( SAP_QM_BC_BASIC_DATA_PC )

Structure
Important Fields Important fields in this view include the following: Field Name Description SamplingScheme Sampling Scheme SmplgSchmItemSequentialNumber Counter SmplgSchmAccptblQltyLevelPct AQL Value

View on SAP Help Portal →

SAP API Hub

CategoryBasic
StateC1
Line of BusinessManufacturing
Application ComponentQM-IM-2CL
CapabilitiesData Source in SQL Select,Association Target for Defining CDS Entities,Data Source for Defining CDS Entities
Extensible (Key User)No
Extensible (Developer)No
Release State (Key User)Released
Release State (Developer)Released
PackageManufacturing for SAP S/4HANA Cloud Public Edition
Description <p>This CDS view provides access to sampling scheme items.</p> <p>This CDS view provides the data to answer the following business questions:</p> <ul> <li><p>What are the details of each item within a specific sampling scheme?</p></li> <li><p>What is the acceptable quality level (AQL) for each item in a sampling scheme?</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
qdpp qdpp from

Associations (1)

CardinalityTargetAliasCondition
[1..1] I_SamplingScheme _SamplingScheme $projection.SamplingScheme = _SamplingScheme.SamplingScheme

Annotations (9)

NameValueLevelField
AccessControl.authorizationCheck #MANDATORY view
EndUserText.label Sampling Scheme Item view
VDM.viewType #BASIC view
VDM.lifecycle.contract.type #PUBLIC_LOCAL_API view
ObjectModel.modelingPattern #NONE view
ObjectModel.usageType.serviceQuality #A view
ObjectModel.usageType.sizeCategory #S view
ObjectModel.usageType.dataClass #MASTER view
Metadata.ignorePropagatedAnnotations true view

Fields (4)

KeyFieldSource TableSource FieldDescription
KEY SamplingScheme stprplan Sampling Scheme
KEY SmplgSchmItemSequentialNumber zaehlpos Sequential Counter for Items in a Sampling Scheme
SmplgSchmAccptblQltyLevelPct aqlwert AQL Value
_SamplingScheme _SamplingScheme

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_SamplingSchemeItem.
-- 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.

CREATE VIEW I_SamplingSchemeItem AS
SELECT
  stprplan AS SamplingScheme,
  zaehlpos AS SmplgSchmItemSequentialNumber,
  aqlwert AS SmplgSchmAccptblQltyLevelPct
FROM qdpp
LEFT OUTER JOIN I_SamplingScheme AS _SamplingScheme ON SamplingScheme = _SamplingScheme.SamplingScheme  -- association [1..1]
;