| Status | Revision in Progress |
|---|---|
| Owner | |
| Stakeholders |
Purpose
The purpose of this document is to define the conversion approach to create Sampling Procedures in S/4HANA.
Sampling Procedures are master data in SAP Quality Management (QM) that determine how the inspection scope is defined, such as the number of units to be inspected from a lot or the percentage of the lot to be checked. They provide standardized rules for sample determination and ensure consistency across inspection lots, inspection plans, and inspection characteristics. Sampling procedures can be based on fixed sample sizes, percentage samples, or inspection severity levels defined by sampling schemes.
In SAP S/4HANA, the structure and usage of sampling procedures remain consistent with SAP ECC. Sampling procedures are typically defined at the plant level, with key attributes such as sampling type, sample size, code group assignment, validity dates, and indicator settings. They can be assigned to master inspection characteristics (MICs) or directly within inspection plans, ensuring harmonized inspection strategies across materials and processes.
In SAP ECC, aside from the standard structure of sampling procedure master data (procedure ID, plant, type, and parameters), there may be additional variants, such as procedures linked to specific inspection severity levels, schemes that determine dynamic modification rules, or customized procedures with client-specific enhancements. Some legacy systems may also include obsolete or unused sampling procedures, which will require cleansing and validation before migration (pending MDS).
This conversion aims to migrate active and relevant sampling procedure records from existing ECC systems into S/4HANA by applying the required transformation logic using Syniti as the data migration and transformation platform. The converted records will be loaded into the target S/4HANA system using standard SAP mechanisms such as BAPIs (e.g., BAPI_INSPSAMPLINGPROCEDURE_CREATE), IDOCs, or direct table loads where applicable, ensuring data accuracy, compliance, and usability in the target system.
Conversion Scope
The scope of this document covers the approach for converting active Sampling Procedure from Legacy Source Systems into S/4HANA following the Sampling Procedure Master Data Design Standard.
The data from legacy system includes:
- Active Sampling Procedures that have been used in inspection plans (PLMK-STICHPRVER) or inspection lots in the last three (3) years.
- Sampling Procedures without deletion flag (QDSV-LOEKZ not set).
- Plant-specific Sampling Procedures that will be mapped to the To-Be Plant structure (based on the agreed To-Be Plant Mapping).
- Sampling Procedures with valid sampling type, such as:
- Fixed sample size,
- 100% inspection,
- Percentage-based sampling,
- Sampling schemes (AQL, inspection severity levels).
- Sampling Procedures referenced in other QM master data, such as Master Inspection Characteristics (MICs) or Inspection Plans, to ensure no broken references.
- Sampling Procedures with valid valuation rules, such as acceptance number (n/c,d), AQL values, severity levels, or control chart integration.
- Sampling Procedures with valid text descriptions (QDSVT-KURZTEXT) in required languages for business use.
The data from legacy system excludes:
- Inactive Sampling Procedures not used in inspection plans or inspection lots for more than three (3) years.
- Sampling Procedures marked for deletion (QDSV-LOEKZ = X).
- Sampling Procedures belonging to deleted or out-of-scope plants (per the To-Be Plant Mapping).
- Obsolete or duplicate Sampling Procedures, such as:
- Redundant procedures replaced by corporate harmonized standards,
- Local variations with identical logic already covered by global procedures.
- Sampling Procedures with invalid configurations, such as:
- Missing or inconsistent sampling type (e.g., quantitative setup without sample size),
- Invalid or obsolete AQL/severity levels,
- References to deleted or inactive Sampling Schemes (QDPK/QDPP).
- Sampling Procedures without descriptions or missing mandatory fields required for migration to S/4HANA.
- Test or temporary procedures created for validation purposes but never used in production.
| Source | Scope | Source Approx No. of Records | Target System | Target Approx No. of Records |
|---|---|---|---|---|
| PF2 & WP2 | Sampling Procedure data will be extracted from client PF2 and WP2 | PF2 = 45 records WP2 = 535 records | S/4 HANA | 580 |
| DCT | Sampling Procedures for Plant / Inspection Plan / MIC combinations which do not have data existing from PF2 and WP2 | TBD | S/4 HANA | TBD |
Additional Information
Multi-language Requirement
Master Inspection Characteristic description will be maintained in English by default.
Since multi-language support is available for Master Inspection Characteristic, users logging in with a different language will see the description displayed in their logon language, provided that the corresponding language key has been maintained in the on Characteristic.
Document Management
N/A
Legal Requirement
N/A
Special Requirements
N/A
Target Design
The technical design of the target for this conversion approach.
| Table | Field | Data Element | Field Description | Data Type | Length | Requirement |
|---|---|---|---|---|---|---|
| QDSV | STICHPRVER | QSTPRVER | Sampling Procedure (ID) | CHAR | 8 | R |
| QDSV | STICHPRART | QSTPRART | Sampling Type (Fixed, %, With Scheme, 100%) | CHAR | 3 | R |
| QDSV | BEWERTMOD | QBEWMOD | Valuation Mode (e.g., nonconforming units) | CHAR | 3 | C |
| QDSV | KZOHI | QKZOHI | No Inspection Stage Change | CHAR | 1 | C |
| QDSV | KZUMFS | QKZUMFS | Multiple Samples (indep./dep.) | CHAR | 1 | C |
| QDSV | KZNOCUT | QKZNOCUT | Sample Size Not Reduced | CHAR | 1 | C |
| QDSV | STPRANZ | QSTPRANZ | # of Samples (if multiple samples) | INT1 | 3 | C |
| QDSV | STPRUMF | QSTPRUMF | # Sampling Units in a Sample | INT4 | 10 | C |
| QDSV | ANNAHMEZ | QANNAHMEZ | Acceptance Number (n-c/d, etc.) | INT2 | 5 | C |
| QDSV | KFAKTOR | QKFAKTOR | K-Factor (variable inspection) | FLTP | 16 | C |
| QDSV | FBKEY | QFBKEY | Sample Determination Rule (FM key) | CHAR | 2 | C |
| QDSV | FBKEYMFS | QFBKEYMFS | Valuation Rule for Mult. Samples | CHAR | 2 | C |
| QDSV | STPRPLAN | QSTPRPLANV | Sampling Scheme (header ref.) | CHAR | 3 | C |
| QDSV | PRSCHAERFE | QPRSCHAERV | Inspection Severity (scheme) | NUMC | 3 | C |
| QDSV | AQLWERT | QAQLWERTV | AQL Value | DEC | 7(3) | C |
| QDSV | PROZUMF | QPROZUMF | Sample Size as % of Lot | FLTP | 16 | C |
| QDSV | PROZAZL | QPROZAZL | Acceptance # as % of Sample | FLTP | 16 | C |
| QDSV | KZRAST | QKZRAST | For Inspection Points (type) | CHAR | 1 | C |
| QDSV | RASTER | QRASTER | Inspection Frequency (insp. points) | NUMC | 3 | C |
| QDSV | QRKART | QQRKART | Control Chart Type | CHAR | 3 | C |
| QDSV | ERSTELLDAT / AENDERDAT | QDATUMERST / QDATUMAEND | Created On / Changed On | DATS | 8 | C |
| QDSV | ERSTELLER / AENDERER | QERSTELLER / QAENDERER | Created By / Changed By | CHAR | 12 | C |
| QDSVT | SPRACHE | SPRAS | Language Key | LANG | 1 | R |
| QDSVT | STICHPRVER | QSTPRVER | Sampling Procedure (ID) | CHAR | 8 | R |
| QDSVT | KURZTEXT | QKURZTEXT | Short Text (Description) | CHAR | 40 | R |
Data Cleansing
| ID | Criticality | Error Message/Report Description | Rule | Output | Source System |
|---|---|---|---|---|---|
| C1 | Sampling Procedure not used in last 3 years | Sampling Procedures (QDSV) not referenced in any MIC or Inspection Plan (PLMK-STICHPRVER) or Inspection Lot for ≥ 3 years will not be migrated. | Active Sampling Procedures used in last 3 years | PF2/WP2 | |
| C1 | Sampling Procedure flagged for deletion | Procedures with deletion indicator (QDSV-LOEKZ = X) are excluded. | Sampling Procedures with no deletion flag | PF2/WP2 | |
| C1 | Sampling Procedure in out-of-scope Plant | Procedures assigned to plants not in To-Be Plant Mapping are excluded. | Sampling Procedures valid in active plants | PF2/WP2 | |
| C1 | Invalid Sampling Type | STICHPRART (type: fixed %, 100%, scheme) not configured or not valid in target system. | Sampling Procedures with valid type | PF2/WP2 | |
| C1 | Missing Sample Size / % | Sampling Procedures missing values for sample size, percentage, or calculation rules will not be migrated. | Procedures with complete sample definition | PF2/WP2 | |
| C1 | Invalid Scheme Reference | Procedures referencing a scheme (QDPK/QDPP) not existing or inactive in target are excluded. | Sampling Procedures with valid scheme | PF2/WP2 | |
| C1 | Invalid AQL/Severity Level | Procedures with AQL value, acceptance number, or inspection severity not in target customizing are excluded. | Valid AQL/Severity Sampling Procedures | PF2/WP2 | |
| C2 | Duplicate Sampling Procedure ID | Duplicate STICHPRVER across same plant detected; only one harmonized record retained. | Unique Sampling Procedure IDs per plant | PF2/WP2 | |
| C2 | Missing or invalid description in required languages | QDSVT-KURZTEXT missing in business languages; procedure excluded unless translated. | Sampling Procedures with multilingual texts | PF2/WP2 | |
| C2 | Inconsistent links in dependent master data | Sampling Procedure referenced by MIC/Inspection Plan that is not active will be excluded. | Sampling Procedures with valid references | PF2/WP2 | |
| C3 | Obsolete local variations | Plant-specific duplicates already replaced by harmonized corporate standards excluded. | Harmonized corporate Sampling Procedures | PF2/WP2 | |
| C3 | Audit data inconsistent | ERDAT/AEDAT/ERNAM missing or illogical (e.g., future date, null values). | Sampling Procedures with valid audit trail | PF2/WP2 | |
| C3 | Test/Temporary Sampling Procedures | Procedures created for testing/training excluded unless explicitly approved. | Business-relevant Sampling Procedures only | PF2/WP2 |
Conversion Process
The high-level process is represented by the diagram below:
Data Privacy and Sensitivity
Extraction
Extract data from a source into . There are 2 possibilities:
- The data exists. connects to the source and loads the data into . There are 3 methods:
- Perform full data extraction from relevant tables in the source system(s).
- Perform extraction through the application layer.
- Only if ; cannot connect to the source, data is loaded to the repository from the provided source system extract/report.
- The data does not exist (or cannot be converted from its current state). The data is manually collected by the business directly in . This is to be conducted using DCT (Data Collection Template) in
The agreed Relevancy criteria is applied to the extracted records to identify the records that are applicable for the Target loads
Extraction Run Sheet
| Req # | Requirement Description | Team Responsible |
|---|---|---|
Selection Screen
| Selection Ref Screen | Parameter Name | Selection Type | Requirement | Value to be entered/set |
|---|---|---|---|---|
Data Collection Template (DCT)
Target Ready Data Collection Template will be created for data with exception of some fields which require transformation as mentioned in the transformation rule.DCT Rules
| Field Name | Field Description | Rule |
|---|---|---|
Extraction Dependencies
| Item # | Step Description | Team Responsible |
|---|---|---|
Transformation
The Target fields are mapped to the applicable Legacy field that will be its source, this is a 3-way activity involving the Business, Functional team and Data team. This identifies the transformation activity required to allow to make the data Target ready:
- Perform value mapping and data transformation rules.
- Legacy values are mapped to the to-be values (this could include a default value)
- Values are transformed according to the rules defined in
- Prepare target-ready data in the structure and format that is required for loading via prescribed Load Tool. This step also produces the load data ready for business to perform Pre-load Data Validation
Transformation Run Sheet
| Item # | Step Description | Team Responsible |
|---|---|---|
Transformation Rules
| Rule # | Source system | Source Table | Source Field | Source Description | Target System | Target Table | Target Field | Target Description | Transformation Logic |
|---|---|---|---|---|---|---|---|---|---|
Transformation Mapping
| Mapping Table Name | Mapping Table Description |
|---|---|
Transformation Dependencies
List the steps that need to occur before transformation can commence| Item # | Step Description | Team Responsible |
|---|---|---|
Pre-Load Validation
Project Team
Completeness
| Task | Action |
|---|---|
Accuracy
| Task | Action |
|---|---|
Business
Completeness
| Task | Action |
|---|---|
Accuracy
| Task | Action |
|---|---|
Load
The load process includes:
- Execute the automated data load into target system using load tool or product the load file if the load must be done manually
- Once the data is loaded to the target system, it will be extracted and prepared for Post Load Data Validation
Load Run Sheet
| Item # | Step Description | Team Responsible |
|---|---|---|
Load Phase and Dependencies
Configuration
| Item # | Configuration Item |
|---|---|
Conversion Objects
| Object # | Preceding Object Conversion Approach |
|---|---|
| list the exact title of the conversion object of only the immediate predecessor – this will then confirm the DDD (Data Dependency Diagram) | |
Error Handling
| Error Type | Error Description | Action Taken |
|---|---|---|
Post-Load Validation
Project Team
Completeness
| Task | Action |
|---|---|
Accuracy
| Task | Action |
|---|---|
Business
Completeness
| Task | Action |
|---|---|
Accuracy
| Task | Action |
|---|---|
Key Assumptions
- Master Data Standard is up to date as on the date of documenting this conversion approach and data load.
- is in scope based on data design and any exception requested by business.