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

Compare with Current View Page History

« Previous Version 15 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.


This Conversion Specification does not include the WPX system (CUI Objects).


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 or inspection lots in the last four (4) years. 
    a. Inspection plan
        i. QDSV-KZVWSVPL ='X'(Used in Inspection plan/Task list)
       ii. PLMK-STICHPRVER = QDSV-STICHPRVER, Refer Inspection plan relevancy for active inspection plans
    b. Inspection Lots(QALS-ERSTELDAT >= CURRENT DATE -4, QALS-STICHPRVER = QDSV-STICHPRVER)
       
  2. Sampling procedure referenced in Material master inspection setup(QMAT-STICHPRVER). Relevancy rules for Material master QM view are applicable.
    QMAT-STICHPRVER = QDSV-STICHPRVER. Refer Material master QM view for active Material master QM data.

  3. Sampling Procedures with valid sampling type, such as:
    • Fixed sample size,
    • 100% inspection,
    • Percentage-based sampling,
    • Sampling schemes (AQL, inspection severity levels) etc.

The data from legacy system excludes:

  1. Inactive Sampling Procedures not used in inspection plans or inspection lots for more than four (4) years.
  2. Sampling procedure not referenced in Material master inspection setup(QMAT-STICHPRVER). Relevancy rules for Material master QM view are applicable.
  3. Sampling Procedures with invalid sampling type, not in below:
    • Fixed sample size,
    • 100% inspection,
    • Percentage-based sampling,
    • Sampling schemes (AQL, inspection severity levels) etc.


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

Additional Information

Multi-language Requirement

Sampling Procedure description will be maintained in English by default.

Since multi-language support is available for Sampling Procedure, 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 Sampling Procedure.

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 ProcedureCHAR8R
QDSVSTICHPRARTQSTPRARTSampling TypeCHAR3R
QDSVBEWERTMODQBEWMODValuation ModeCHAR3R
QDSVKZOHIQKZOHINo Stage ChangeCHAR1NU
QDSVKZUMFSQKZUMFSMultiple SamplesCHAR1NU
QDSVKZNOCUTQKZNOCUTRecurring inspectionsCHAR1NU
QDSVSTPRANZQSTPRANZNo. of samplesINT13NU
QDSVSTPRUMFQSTPRUMFSample sizeINT410C
QDSVANNAHMEZQANNAHMEZAcceptance no.INT25NU
QDSVKFAKTORQKFAKTORK-factorFLTP16NU
QDSVKFAKTORNIQNINITIALNot InitialCHAR1NU
QDSVKZNVWSVQKZNVWSVUsage BlockedCHAR1NU
QDSVKZVWSVPLQKZVWSVPLIn Task ListCHAR1S
QDSVFBKEYQFBKEYDetermination RuleCHAR2C
QDSVFBKEYMFSQFBKEYMFSValuation RuleCHAR2C
QDSVSTPRPLANQSTPRPLANVSampling SchemeCHAR3NU
QDSVPRSCHAERFEQPRSCHAERVInspection severityNUMC3NU
QDSVAQLWERTQAQLWERTVAQL ValueDEC7NU
QDSVPROZUMFQPROZUMFSize as lot %FLTP16C
QDSVPROZUMFNIQNINITIALNot InitialCHAR1C
QDSVPROZAZLQPROZAZLAccNo. as %FLTP16NU
QDSVPROZAZLNIQNINITIALNot InitialCHAR1NU
QDSVERSTELLERQERSTELLERCreated ByCHAR12S
QDSVAENDERERQAENDERERChanged ByCHAR12S
QDSVERSTELLDATQDATUMERSTCreated OnDATS8S
QDSVAENDERDATQDATUMAENDChanged OnDATS8S
QDSVKZRASTQKZRASTWith inspection pointsCHAR1NU
QDSVRASTERQRASTERInspection FrequencyNUMC3NU
QDSVQRKARTQQRKARTCtrl Chart TypeCHAR3NU
QDSVDUMMY_QDSV_INCL_EEW_PSDUMMYDummy function in length 1CHAR1NU
QDSVTSTICHPRVERQSTPRVERSampling ProcedureCHAR8R
QDSVT

SPRACHE

SPRASLanguage KeyLANG1R
QDSVTKURZTEXTQKURZTEXTShort TextCHAR40R


Data Cleansing

IDCriticalityError Message/Report DescriptionRuleOutputSource System
1064-001C1Sampling Procedure not used in last 4 yearsSampling Procedures (QDSV) not referenced in any Inspection Plan (PLMK-STICHPRVER) or Inspection Lot for ≥ 4 years will not be migrated.Active Sampling Procedures used in last 4 yearsPF2/WP2
1064-002C1Sampling Procedure blocked for usageProcedures with "blocked for usage" indicator (QDSV-KZNVWSV = X), but referred in active Inspection plans or Inspection lots or Material master Inspection setup.Sampling Procedures with blocked for usage FlagPF2/WP2
1064-003C1Invalid Sampling TypeSTICHPRART (type: fixed %, 100%, scheme) not configured or not valid in target system.Sampling Procedures with valid typePF2/WP2
1064-004C1Missing Sample Size / %Sampling Procedures missing values for sample size, percentage, sampling type or valuation mode will not be migrated.Procedures with complete sample definitionPF2/WP2
1064-005C2Duplicate Sampling Procedures

Sampling procedures with similar values. Use the below combination to identify.
STICHPRART,BEWERTMOD,STPRUMF,FBKEY,FBKEYMFS,PROZUMF

Based on the outcome business will suggest for the dedup logic to pick the right one.

Unique Sampling ProcedurePF2/WP2
1064-006C2Missing short text/Language is not configured in Target systemQDSVT-KURZTEXT missing or one of the values in QDSVT-SPRACHE is not configured in Target systemSampling Procedures with multilingual textsPF2/WP2



Conversion Process

The high-level process is represented by the diagram below:

The ETL (Extract, Transform, Load) process is a structured approach to data migration and management, ensuring high-quality data is seamlessly transferred across systems. Here’s a breakdown of its key components:

1. Extraction
The process begins with extracting metadata and raw data from source systems, such as Syensqo ECC system (i.e. WP2/PF2) periodically. The extracted data is then staged for transformation.


2. Transformation
Once extracted, the data undergoes cleansing, consolidation, and governance. This step ensures data integrity, consistency, and compliance with business rules. The transformation process includes:
- Data validation to remove inconsistencies.
- Standardization to align formats across datasets.
- Business rule application to refine data for operational use.

3. Loading
The transformed data is then loaded into the target S/4HANA system. 



Data Privacy and Sensitivity

Not applicable



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
Extraction Scope Definition- Identify the source systems and databases involved.
- Define the data objects (tables, fields, records) to be extracted.
- Establish business rules for data selection.

Syniti / LTC Data team

Extraction Methodology- Specify the extraction approach (full, incremental, or delta extraction).
- Determine the tools and technologies used.
- Define data filtering criteria to exclude irrelevant records.
Syniti 
Extraction Execution Plan- Establish execution timelines and batch processing schedules.
- Assign responsibilities for extraction monitoring.
- Document dependencies on other migration tasks.
Syniti
Data Quality and Validation- Define error handling mechanisms for extraction failures.Syniti


Selection Screen


Selection Ref ScreenParameter NameSelection TypeRequirementValue to be entered/set
Not applicable




Data Collection Template (DCT)

The Data Collection Template (DCT) will not be applicable in this case. If there is a need to create a new Master Data (MD) for Sampling Procedure object, the business must perform this activity in the source system. The newly created object will then be captured and migrated as part of the standard migration process.

Extraction Dependencies

Item #Step DescriptionTeam Responsible
1

Source System Availability

  • Ensure that the source database or application is accessible.
  • Confirm that necessary credentials and permissions are granted

Syensqo IT

2

Data Structure

  • Identify relationships between tables, views, and stored procedures.

Syniti

3

Referential Integrity

  • Ensure dependent records are extracted together.

Syniti

4

Extraction Methodology

  • Define whether extraction is full, incremental, or delta-based.
  • Establish batch processing schedules for large datasets.

Syniti

5

Performance and Scalability Considerations

  • Optimize extraction queries to prevent system overload.
  • Ensure network bandwidth supports data transfer volumes.

Syniti

6

Security and Compliance

  • Adhere to regulatory standards for sensitive information if applicable

Syniti


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

1

Transformation Scope Definition

- Identify the source and target data structures.

- Define business rules for data standardization.

- Establish data cleansing requirements to remove inconsistencies.

Data Team

2

Data Mapping and Standardization

- Align source fields with target fields.

- Ensure unit consistency (e.g., currency, measurement units)

Data Team

3

Business Rule Application

- Implement data enrichment/collection if applicable

- Apply conditional transformations based on predefined logic/business rules

Data Team

4

Transformation Execution Plan

- Define batch processing schedules.

- Assign responsibilities for monitoring execution.

- Establish error-handling mechanisms

Syniti


Transformation Rules

Rule #Source systemSource TableSource FieldSource DescriptionTarget SystemTarget TableTarget FieldTarget DescriptionTransformation Logic
1PF2/WP2QDSVSTICHPRVERSampling ProcedureS/4 HANAQDSVSTICHPRVERSampling ProcedureR.Copy from Source system
2PF2/WP2QDSVSTICHPRARTSampling TypeS/4 HANAQDSVSTICHPRARTSampling TypeR.Copy from Source system
3PF2/WP2QDSVBEWERTMODValuation ModeS/4 HANAQDSVBEWERTMODValuation ModeR.Copy from Source system
4PF2/WP2QDSVKZOHINo Stage ChangeS/4 HANAQDSVKZOHINo Stage ChangeNot used
5PF2/WP2QDSVKZUMFSMultiple SamplesS/4 HANAQDSVKZUMFSMultiple SamplesNot used
6PF2/WP2QDSVKZNOCUTRecurring inspectionsS/4 HANAQDSVKZNOCUTRecurring inspectionsNot used
7PF2/WP2QDSVSTPRANZNo. of samplesS/4 HANAQDSVSTPRANZNo. of samplesNot used
8PF2/WP2QDSVSTPRUMFSample sizeS/4 HANAQDSVSTPRUMFSample sizeC.Copy from source system
9PF2/WP2QDSVANNAHMEZAcceptance no.S/4 HANAQDSVANNAHMEZAcceptance no.Not used
10PF2/WP2QDSVKFAKTORK-factorS/4 HANAQDSVKFAKTORK-factorNot used
11PF2/WP2QDSVKFAKTORNINot InitialS/4 HANAQDSVKFAKTORNINot InitialNot used
12PF2/WP2QDSVKZNVWSVUsage BlockedS/4 HANAQDSVKZNVWSVUsage BlockedNot used
13PF2/WP2QDSVKZVWSVPLIn Task ListS/4 HANAQDSVKZVWSVPLIn Task ListS.Internal
14PF2/WP2QDSVFBKEYDetermination RuleS/4 HANAQDSVFBKEYDetermination RuleC.Copy from source system
15PF2/WP2QDSVFBKEYMFSValuation RuleS/4 HANAQDSVFBKEYMFSValuation RuleC.Copy from source system
16PF2/WP2QDSVSTPRPLANSampling SchemeS/4 HANAQDSVSTPRPLANSampling SchemeNot used
17PF2/WP2QDSVPRSCHAERFEInspection severityS/4 HANAQDSVPRSCHAERFEInspection severityNot used
18PF2/WP2QDSVAQLWERTAQL ValueS/4 HANAQDSVAQLWERTAQL ValueNot used
19PF2/WP2QDSVPROZUMFSize as lot %S/4 HANAQDSVPROZUMFSize as lot %C.Copy from source system
20PF2/WP2QDSVPROZUMFNINot InitialS/4 HANAQDSVPROZUMFNINot InitialS.Copy from source system
21PF2/WP2QDSVPROZAZLAccNo. as %S/4 HANAQDSVPROZAZLAccNo. as %Not used
22PF2/WP2QDSVPROZAZLNINot InitialS/4 HANAQDSVPROZAZLNINot InitialNot used
23PF2/WP2QDSVERSTELLERCreated ByS/4 HANAQDSVERSTELLERCreated ByS.Internal
24PF2/WP2QDSVAENDERERChanged ByS/4 HANAQDSVAENDERERChanged ByS.Internal
25PF2/WP2QDSVERSTELLDATCreated OnS/4 HANAQDSVERSTELLDATCreated OnS.Internal
26PF2/WP2QDSVAENDERDATChanged OnS/4 HANAQDSVAENDERDATChanged OnS.Internal
27PF2/WP2QDSVKZRASTWith inspection pointsS/4 HANAQDSVKZRASTWith inspection pointsNot used
28PF2/WP2QDSVRASTERInspection FrequencyS/4 HANAQDSVRASTERInspection FrequencyNot used
29PF2/WP2QDSVQRKARTCtrl Chart TypeS/4 HANAQDSVQRKARTCtrl Chart TypeNot used
30PF2/WP2QDSVDUMMY_QDSV_INCL_EEW_PSDummy function in length 1S/4 HANAQDSVDUMMY_QDSV_INCL_EEW_PSDummy function in length 1Not used
31PF2/WP2QDSVTSTICHPRVERSampling ProcedureS/4 HANAQDSVTSTICHPRVERSampling ProcedureR.Copy from Source system
32PF2/WP2QDSVT

SPRACHE

Language KeyS/4 HANAQDSVT

SPRACHE

Language KeyR.Copy from Source system
33PF2/WP2QDSVTKURZTEXTShort TextS/4 HANAQDSVTKURZTEXTShort TextR.Copy from Source system


Transformation Mapping

Mapping Table NameMapping Table Description
Not Applicable

Transformation Dependencies

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

1

Value Mappings are according to the latest design - <List of Value Mappings>

SyWay Data Team


Pre-Load Validation

Project Team

Completeness

TaskAction

Compare Data Counts

  1. Verify row counts between source and target databases.
  2. Identify missing or duplicated records.

Validate the mandatory fields

Validate there is value for all the mandatory fields

Validate Primary Keys and Unique Constraints

  1. Check for duplicate or missing primary key values.
  2. Ensure unique constraints are maintained.

Test Referential Integrity

Confirm dependent records exist in related tables


Accuracy

TaskAction

Validate the transformation

Validate the fields which require transformation have the value after transformation instead of the original field value

Check Data Consistency

  1. Compare field values across systems
  2. Validate data formats and structures

Business

Completeness

TaskAction

Compare Data Count

  1. Verify row counts between source and target databases.
  2. Identify missing or duplicated records.
Review populated templates for missing or incorrect valuesUse checklists to verify completeness and correctness before submission

Accuracy

TaskAction

Conversion Accuracy

Business Data Owner/s to verify that all the data in the load table/file is accurate as per endorsed transformation/ mapping rules (and signed-off DCT data).


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

1

Load Scope Definition

- Identify the target system and database structure.

- Define data objects (tables, fields, records) to be loaded.

- Establish business rules for data validation.

Data team

2

Load Methodology

- Specify the loading tools and technologies (Migration Cockpit, LSMW, custom loading program).

Syniti 

3

Data Quality and Validation

- Ensure data integrity checks (null values, duplicates, format validation).

- Perform pre-load validations to verify completeness.

- Define error handling mechanisms for load failures

Syniti 

4

Load Execution Plan

- Establish execution timelines and batch processing schedules.

- Assign responsibilities for monitoring execution.

- Document dependencies on other migration tasks

Syniti

5

Logging and Reporting

- Maintain detailed logs of loading activities.

- Generate summary reports on loaded data volume and quality.

- Define escalation procedures for errors

Syniti 


Load Phase and Dependencies

The Sampling procedure will be loaded in the pre-cutover (PreCutover 4 phase) period.

Before loading, it will have dependency on the following configuration and data objects in the S/4 HANA.

Configuration


Item #Configuration Item
1QDBM - Valuation mode: Define how inspection results are interpreted
2QDFB - Function modules for the individual procedure categories: Defines how sample sizes are calculated based on the procedure type
3QDFM - Function modules for valuation mode: Enables custom logic for sample size calculation or valuation
4QDEP - Allowed inspection severities: Defines how long a stage lasts, how many lots are needed to move to the next stage, and what triggers a reset.
5QPSH - Control chart types: Used for reporting and compliance to show how inspection scope evolved over time
6QDSA - Sampling type: Ensures the correct sampling procedure is applied as inspection intensity changes.

Conversion Objects

Object #Preceding Object Conversion Approach
CNV-2009Material master along with QM view

Error Handling

Error TypeError DescriptionAction Taken
1Material number exists and extended to required Plant and QM viewVerify that the Material exists in the target system and mapping is correctly maintained. Reprocess once mapping is updated.


Post-Load Validation

Project Team

Completeness

TaskAction

Validate Record count in the backend

Validate all tables with prefix “QDSV” has the same records as the loading file

Display Records

Pick up a few random Sampling procedures, and run t-code: QDV3 to validate the Sampling procedures and can be displayed without any error.

Perform Source-to-Target Comparisons

  1. Validate that migrated data matches source records.
  2. Check for discrepancies in numerical values, text fields, and timestamps

Validation reports


Accuracy

TaskAction

Execute Sample Queries and Reports

  1. Run queries to validate business logic.
  2. Generate reports to compare expected vs. actual results

Conduct Post-Migration Reconciliation

Generate reports comparing pre- and post-migration data.


Business

Post-load validation is a critical step in data migration, ensuring that transferred data is accurate, complete, and functional within the target system.

1. Ensuring Data Integrity
After migration, data must be consistent with its original structure. Post-load validation checks for missing records, incorrect mappings, and formatting errors to prevent discrepancies.
2. Business Continuity
Faulty data can disrupt operations, leading to financial losses and inefficiencies. Validating post-load data ensures that applications function as expected, preventing downtime.
3. Error Detection and Resolution
By validating data post-migration, businesses can detect anomalies early, reducing the cost and effort required for corrections


Completeness

TaskAction
Perform Source-to-Target Comparisons
  1. Validate that migrated data matches source records.
  2. Check for discrepancies in numerical values, text fields, and timestamps
Conduct Post-Migration ReconciliationGo through reports comparing pre- and post-migration data.

Accuracy

TaskAction

Perform Manual Testing

Conduct manual spot-checks for additional assurance.


Key Assumptions

  • Master Data Standard is up to date as on the date of documenting this conversion approach and data load.
  • Sampling procedure is in scope based on data design and any exception requested by business.
  • Data cleansing has met the required percentage threshold for the specified mock cycle and all preparation activities have been completed.
  • Data entries in DCT are target-ready data unless a specific transformation rule is stated for that field in the transformation rules.



Change log

Version Published Changed By Comment
CURRENT (v. 15) 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