I_SamplingScheme

DDL: I_SAMPLINGSCHEME Type: view_entity BASIC Package: VDM_QM_INSPECTION

Sampling Scheme

I_SamplingScheme (Basic)

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

Manufacturing

I_SamplingScheme is a Basic CDS View that provides data about "Sampling Scheme" in SAP S/4HANA. It reads from 1 data source (qdpk) and exposes 12 fields with key field SamplingScheme. It has 1 association to related views. It is exposed through 1 OData service (ASQL_F2255). Part of development package VDM_QM_INSPECTION.

SAP Help Documentation

CategoryCDS Views for Quality Planning
Purpose
This CDS view provides access to sampling schemes. This CDS view provides the data to answer the following business questions: What are the details of the sampling schemes used in quality management? Is a particular sampling scheme used for attributive inspections, variable inspections or without valuation parameters? Is an acceptable quality level (AQL) specified for a particular 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 SmplgSchmIsForAttributiveInsp Used for Attributive Inspection SmplgSchmIsForVariableInsp Used for Variable Inspection AcceptableQualityLevelIsUsed Acceptable Quality Level Is Used

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 the settings of a sampling scheme.</p>

Documentation

Data Sources (1)

SourceAliasJoin Type
qdpk qdpk from

Associations (1)

CardinalityTargetAliasCondition
[0..*] I_SamplingSchemeText _Text $projection.SamplingScheme = _Text.SamplingScheme

Annotations (12)

NameValueLevelField
EndUserText.label Sampling Scheme view
VDM.viewType #BASIC view
VDM.lifecycle.contract.type #PUBLIC_LOCAL_API view
AccessControl.authorizationCheck #MANDATORY view
Analytics.technicalName ISMPLGSCHEME view
ObjectModel.modelingPattern #NONE view
ObjectModel.representativeKey SamplingScheme view
ObjectModel.usageType.serviceQuality #A view
ObjectModel.usageType.sizeCategory #S view
ObjectModel.usageType.dataClass #MASTER view
Metadata.ignorePropagatedAnnotations true view
Search.searchable true view

OData Services (1)

ServiceBindingVersionContractRelease
ASQL_F2255 ASQL_F2255 C2 NOT_RELEASED

Fields (12)

KeyFieldSource TableSource FieldDescription
KEY SamplingScheme qdpk stprplan Sampling Scheme
SmplgSchmIsForAttributiveInsp Sampling Scheme Used for Attributive Inspection
SmplgSchmIsForVariableInsp Sampling Scheme Used for Variable Inspection
AcceptableQualityLevelIsUsed Acceptable Quality Level Is Used
SamplingSchemeIsBlocked Sampling Scheme Is Blocked
CreatedByUser Created By User
CreationDate Creation Date
CreationTime Creation Time
LastChangedByUser Last Changed By User
LastChangeDate Last Change Date
LastChangeTime Last Change Time
_Text _Text

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_SamplingScheme.
-- 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_SamplingScheme AS
SELECT
  qdpk.stprplan AS SamplingScheme,
  cast ( qdpk.kzattr as vdm_qm_smpl_sm_is_for_attr_ins preserving type ) AS SmplgSchmIsForAttributiveInsp,
  cast ( qdpk.kzvars as vdm_qm_smpl_sm_is_for_vrbl_ins preserving type ) AS SmplgSchmIsForVariableInsp,
  cast ( qdpk.kzaql as vdm_qm_aql_is_used preserving type ) AS AcceptableQualityLevelIsUsed,
  cast ( qdpk.kznvwpk as vdm_qm_sampl_scheme_is_blocked preserving type ) AS SamplingSchemeIsBlocked,
  cast ( qdpk.ersteller as abp_creation_user preserving type ) AS CreatedByUser,
  cast ( qdpk.erstelldat as abp_creation_date preserving type ) AS CreationDate,
  cast ( qdpk.zeiterstl as abp_creation_time preserving type ) AS CreationTime,
  cast ( qdpk.aenderer as abp_lastchange_user preserving type ) AS LastChangedByUser,
  cast ( qdpk.aenderdat as abp_lastchange_date preserving type ) AS LastChangeDate,
  cast ( qdpk.zeitaend as abp_lastchange_time preserving type ) AS LastChangeTime
FROM qdpk
LEFT OUTER JOIN I_SamplingSchemeText AS _Text ON SamplingScheme = _Text.SamplingScheme  -- association [0..*]
;