You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 5 Next »

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:

  1. Active Sampling Procedures that have been used in inspection plans (PLMK-STICHPRVER) or inspection lots in the last three (3) years.
  2. Sampling Procedures without deletion flag (QDSV-LOEKZ not set).
  3. Plant-specific Sampling Procedures that will be mapped to the To-Be Plant structure (based on the agreed To-Be Plant Mapping).
  4. Sampling Procedures with valid sampling type, such as:
    • Fixed sample size,
    • 100% inspection,
    • Percentage-based sampling,
    • Sampling schemes (AQL, inspection severity levels).
  5. Sampling Procedures referenced in other QM master data, such as Master Inspection Characteristics (MICs) or Inspection Plans, to ensure no broken references.
  6. Sampling Procedures with valid valuation rules, such as acceptance number (n/c,d), AQL values, severity levels, or control chart integration.
  7. Sampling Procedures with valid text descriptions (QDSVT-KURZTEXT) in required languages for business use.

The data from legacy system excludes:

  1. Inactive Sampling Procedures not used in inspection plans or inspection lots for more than three (3) years.
  2. Sampling Procedures marked for deletion (QDSV-LOEKZ = X).
  3. Sampling Procedures belonging to deleted or out-of-scope plants (per the To-Be Plant Mapping).
  4. Obsolete or duplicate Sampling Procedures, such as:
    • Redundant procedures replaced by corporate harmonized standards,
    • Local variations with identical logic already covered by global procedures.
  5. 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).
  6. Sampling Procedures without descriptions or missing mandatory fields required for migration to S/4HANA.
  7. Test or temporary procedures created for validation purposes but never used in production.


List of source systems and approximate number of records
SourceScope

Source Approx No. of Records

Target SystemTarget Approx

No. of Records

PF2 & WP2Sampling Procedure data will be extracted from client PF2 and WP2

PF2 = 45 records

WP2 = 535 records

S/4 HANA580
DCTSampling Procedures for Plant / Inspection Plan / MIC combinations which do not have data existing from PF2 and WP2TBDS/4 HANATBD










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.

TableFieldData ElementField DescriptionData TypeLengthRequirement
QDSVSTICHPRVERQSTPRVERSampling Procedure (ID)CHAR8R
QDSVSTICHPRARTQSTPRARTSampling Type (Fixed, %, With Scheme, 100%)CHAR3R
QDSVBEWERTMODQBEWMODValuation Mode (e.g., nonconforming units)CHAR3C
QDSVKZOHIQKZOHINo Inspection Stage ChangeCHAR1C
QDSVKZUMFSQKZUMFSMultiple Samples (indep./dep.)CHAR1C
QDSVKZNOCUTQKZNOCUTSample Size Not ReducedCHAR1C
QDSVSTPRANZQSTPRANZ# of Samples (if multiple samples)INT13C
QDSVSTPRUMFQSTPRUMF# Sampling Units in a SampleINT410C
QDSVANNAHMEZQANNAHMEZAcceptance Number (n-c/d, etc.)INT25C
QDSVKFAKTORQKFAKTORK-Factor (variable inspection)FLTP16C
QDSVFBKEYQFBKEYSample Determination Rule (FM key)CHAR2C
QDSVFBKEYMFSQFBKEYMFSValuation Rule for Mult. SamplesCHAR2C
QDSVSTPRPLANQSTPRPLANVSampling Scheme (header ref.)CHAR3C
QDSVPRSCHAERFEQPRSCHAERVInspection Severity (scheme)NUMC3C
QDSVAQLWERTQAQLWERTVAQL ValueDEC7(3)C
QDSVPROZUMFQPROZUMFSample Size as % of LotFLTP16C
QDSVPROZAZLQPROZAZLAcceptance # as % of SampleFLTP16C
QDSVKZRASTQKZRASTFor Inspection Points (type)CHAR1C
QDSVRASTERQRASTERInspection Frequency (insp. points)NUMC3C
QDSVQRKARTQQRKARTControl Chart TypeCHAR3C
QDSVERSTELLDAT / AENDERDATQDATUMERST / QDATUMAENDCreated On / Changed OnDATS8C
QDSVERSTELLER / AENDERERQERSTELLER / QAENDERERCreated By / Changed ByCHAR12C
QDSVTSPRACHESPRASLanguage KeyLANG1R
QDSVTSTICHPRVERQSTPRVERSampling Procedure (ID)CHAR8R
QDSVTKURZTEXTQKURZTEXTShort Text (Description)CHAR40R


Data Cleansing

IDCriticalityError Message/Report DescriptionRuleOutputSource System

C1Sampling Procedure not used in last 3 yearsSampling 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 yearsPF2/WP2

C1Sampling Procedure flagged for deletionProcedures with deletion indicator (QDSV-LOEKZ = X) are excluded.Sampling Procedures with no deletion flagPF2/WP2

C1Sampling Procedure in out-of-scope PlantProcedures assigned to plants not in To-Be Plant Mapping are excluded.Sampling Procedures valid in active plantsPF2/WP2

C1Invalid Sampling TypeSTICHPRART (type: fixed %, 100%, scheme) not configured or not valid in target system.Sampling Procedures with valid typePF2/WP2

C1Missing Sample Size / %Sampling Procedures missing values for sample size, percentage, or calculation rules will not be migrated.Procedures with complete sample definitionPF2/WP2

C1Invalid Scheme ReferenceProcedures referencing a scheme (QDPK/QDPP) not existing or inactive in target are excluded.Sampling Procedures with valid schemePF2/WP2

C1Invalid AQL/Severity LevelProcedures with AQL value, acceptance number, or inspection severity not in target customizing are excluded.Valid AQL/Severity Sampling ProceduresPF2/WP2

C2Duplicate Sampling Procedure IDDuplicate STICHPRVER across same plant detected; only one harmonized record retained.Unique Sampling Procedure IDs per plantPF2/WP2

C2Missing or invalid description in required languagesQDSVT-KURZTEXT missing in business languages; procedure excluded unless translated.Sampling Procedures with multilingual textsPF2/WP2

C2Inconsistent links in dependent master dataSampling Procedure referenced by MIC/Inspection Plan that is not active will be excluded.Sampling Procedures with valid referencesPF2/WP2

C3Obsolete local variationsPlant-specific duplicates already replaced by harmonized corporate standards excluded.Harmonized corporate Sampling ProceduresPF2/WP2

C3Audit data inconsistentERDAT/AEDAT/ERNAM missing or illogical (e.g., future date, null values).Sampling Procedures with valid audit trailPF2/WP2

C3Test/Temporary Sampling ProceduresProcedures created for testing/training excluded unless explicitly approved.Business-relevant Sampling Procedures onlyPF2/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:

  1. The data exists. connects to the source and loads the data into . There are 3 methods:
    1. Perform full data extraction from relevant tables in the source system(s).
    2. Perform extraction through the application layer.
    3. Only if ; cannot connect to the source, data is loaded to the repository from the provided source system extract/report.
  2. 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 DescriptionTeam Responsible













Selection Screen

Selection Ref ScreenParameter NameSelection TypeRequirementValue 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 NameField DescriptionRule












Extraction Dependencies

Item #Step DescriptionTeam 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:

  1. Perform value mapping and data transformation rules.
    1. Legacy values are mapped to the to-be values (this could include a default value)
    2. Values are transformed according to the rules defined in
  2. 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 DescriptionTeam Responsible













Transformation Rules

Rule #Source systemSource TableSource FieldSource DescriptionTarget SystemTarget TableTarget FieldTarget DescriptionTransformation Logic









































Transformation Mapping

Mapping Table NameMapping Table Description








Transformation Dependencies

List the steps that need to occur before transformation can commence
Item #Step DescriptionTeam Responsible













Pre-Load Validation

Project Team

Completeness

TaskAction





Accuracy

TaskAction





Business

Completeness

TaskAction





Accuracy

TaskAction





Load

The load process includes:

  1. Execute the automated data load into target system using load tool or product the load file if the load must be done manually
  2. 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 DescriptionTeam 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 TypeError DescriptionAction Taken










Post-Load Validation

Project Team

Completeness

TaskAction





Accuracy

TaskAction





Business

Completeness

TaskAction





Accuracy

TaskAction





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.


See also

Change log

Version Published Changed By Comment
CURRENT (v. 5) Mar 26, 2026 15:38 REDDY-ext, Naren
v. 19 Mar 26, 2026 15:36 REDDY-ext, Naren Updated the relevancy rule to remove check at the inspection setup
v. 18 Feb 24, 2026 11:42 REDDY-ext, Naren Removed the CUI object statement from Purpose
v. 17 Feb 17, 2026 15:05 REDDY-ext, Naren Updated the mapping column in DCT
v. 16 Feb 10, 2026 14:24 REDDY-ext, Naren Update section DCT : Added the template and link
v. 15 Nov 28, 2025 14:56 REDDY-ext, Naren Updated the Validation reports link(Post load validation)
v. 14 Nov 17, 2025 02:58 REDDY-ext, Naren Updated the scope of CUI
v. 13 Nov 05, 2025 11:10 POOVADAN-ext, Vineet Kumar
v. 12 Nov 05, 2025 10:58 REDDY-ext, Naren
v. 11 Nov 05, 2025 10:44 REDDY-ext, Naren Updated the Relevancy rules

Go to Page History

  • No labels