| Status | |
|---|---|
| Owner | |
| Stakeholders |
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.
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:
The data from legacy system excludes:
| 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 |
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.
N/A
N/A
N/A
With Functional input, document the technical design of the target fields that are in the scope of this document.
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 |
| 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 |
The high-level process is represented by the diagram below:
Extract data from a source into Syniti Migrate. There are 2 possibilities:
The agreed Relevancy criteria is applied to the extracted records to identify the records that are applicable for the Target loads
| Req # | Requirement Description | Team Responsible |
|---|---|---|
| Selection Ref Screen | Parameter Name | Selection Type | Requirement | Value to be entered/set |
|---|---|---|---|---|
<Object> DCT Rules
| Field Name | Field Description | Rule |
|---|---|---|
List the steps that need to occur before extraction can commence
| Item # | Step Description | Team Responsible |
|---|---|---|
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 Syniti Migrate to make the data Target ready:
| 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 |
|---|---|---|---|---|---|---|---|---|---|
| Mapping Table Name | Mapping Table Description |
|---|---|
| Item # | Step Description | Team Responsible |
|---|---|---|
| Task | Action |
|---|---|
| title | specific details of what and how the task needs to be performed e.g. which reports are being used etc. |
| Task | Action |
|---|---|
| title | specific details of what and how the task needs to be performed e.g. which reports are being used etc. |
| Task | Action |
|---|---|
| title | specific details of what and how the task needs to be performed e.g. which reports are being used etc. |
| Task | Action |
|---|---|
| title | specific details of what and how the task needs to be performed e.g. which reports are being used etc. |
The load process includes:
| Item # | Step Description | Team Responsible |
|---|---|---|
Load Phase and Dependencies
Identify the phase as to “when” the load for this object will occur. <Pre-Cutover, Cutover, Post Cutover> and list the steps that need to occur before the load can commence
List the Configurations required before loading can commence
| Item # | Configuration Item |
|---|---|
| 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) | |
The table below depicts some possible system errors for this data object during data load. All data load error is to be logged as defect and managed within the Defect Management
| Error Type | Error Description | Action Taken |
|---|---|---|
| Task | Action |
|---|---|
| title | specific details of what and how the task needs to be performed e.g. which reports are being used etc. |
| Task | Action |
|---|---|
| title | specific details of what and how the task needs to be performed e.g. which reports are being used etc. |
| Task | Action |
|---|---|
| title | specific details of what and how the task needs to be performed e.g. which reports are being used etc. |
| Task | Action |
|---|---|
| title | specific details of what and how the task needs to be performed e.g. which reports are being used etc. |
Any additional key assumptions.
Insert links and references to other documents which are relevant when trying to understand this decision and its implications. Other decisions are often impacted, so it's good to list them here with links. Attachments are also possible but dangerous as they are static documents and not updated by their authors.