Fabric Inspection Defect Entry, Roll Grading and Second-Quality Rate Program
Short answer: A custom program that records, from a tablet screen at the fabric inspection table, the defect code, meter position and penalty points for every roll (batch), calculates points per 100 square meters with the 4-point system, grades the roll as first quality, second quality or reject, writes the grade to a batch characteristic and, if needed, transfers the roll to the second-quality material. It also includes a second-quality rate report by loom, shift, supplier and defect type.
- Estimated effort
- L · 12–18 working days
- System
- ECC and S/4HANA
- Tables
- 8
- Scope
- Global · 1 industries
- Built by
- NeKuDos Teknoloji
- Last updated
Why is the standard not enough?
In QM defects can be recorded for an inspection lot (QF01) or during results recording (QE51N), but recording defects with their meter position along the roll, scoring with the 4-point system and grading automatically from that score are not available in the standard. Updating the batch characteristic by grade and transferring to the second-quality material are separate manual steps, and the second-quality rate is not tracked by a ready report. The custom program combines these steps on one screen at the inspection table.
Who uses it? Fabric quality control teams, weaving and knitting production managers, quality and sales teams.
Closest standard alternatives
Tables used
The tables the program reads and updates. ECC and S/4HANA differences are marked separately.
| Table | Role | Access | System |
|---|---|---|---|
| MCHABatches (Plant Level) | Batch master of the roll | Read | ECC + S/4 |
| AUSPCharacteristic Values of Objects | Roll length, fabric width and quality grade characteristic (grade is written) | Read / write | ECC + S/4 |
| QALSInspection Lot Record | Inspection lot linked to the roll | Read | ECC + S/4 |
| QMELNotification Header | Fabric inspection quality notification header | Write | ECC + S/4 |
| QMFENotification Items | Defect items: code group, defect code, text | Write | ECC + S/4 |
| QPCTCode Texts | Texts of the defect codes | Read | ECC + S/4 |
| MSEGMaterial Document Item | Transfer to second quality (309) items | Write | ECC only |
| MATDOCMaterial Documents (S/4HANA) | In S/4HANA the transfer document is written to this table | Write | S/4HANA only |
S/4HANA notes
- MSEG → MATDOC: In S/4HANA MATDOC replaces MSEG; reading MSEG works through a compatibility view but is slow at high volumes.
BAPIs and functions used
- BAPI_QUALNOT_CREATECreate QM Notification. Creates the quality notification for the roll with its defect items
- BAPI_OBJCL_CHANGEClassification: Change Object Assignment. Updates the quality grade characteristic of the batch
- BAPI_GOODSMVT_CREATEPost Goods Movement. Transfers a second-quality or reject roll to a separate material with movement 309
- BAPI_TRANSACTION_COMMITCommit a BAPI transaction. Commits the postings when the roll is finished
Selection screen parameters
| Parameter | Description | Type | Reference field | Required | Example |
|---|---|---|---|---|---|
| P_WERKS | Plant | Single value | MCHA-WERKS | Yes | 1000 |
| P_QMART | Quality notification type | Single value | QMEL-QMART | Yes | Q3 |
| P_LIM1 | First-quality point limit (per 100 m²) | Single value | — | No | 20 |
| P_LIM2 | Second-quality point limit (per 100 m²) | Single value | — | No | 40 |
| P_MAT2 | Transfer second quality to a separate material (309) | Checkbox | — | No | X |
| S_DATE | Report period | Range / multiple | QMEL-QMDAT | No | 01.11.2026 – 16.11.2026 |
Input file columns
The columns of the upload template and the SAP fields they are written to. Columns with an asterisk are mandatory.
| # | Column | Target field | Required |
|---|---|---|---|
| 1 | Roll (batch) | MCHA-CHARG | Yes |
| 2 | Meter position | By rule Position of the defect in meters from the start of the roll | Yes |
| 3 | Defect code group | QMFE-FEGRP | Yes |
| 4 | Defect code | QMFE-FECOD | Yes |
| 5 | Penalty points | By rule 1–4 points by defect length (4-point system) | Yes |
| 6 | Note | QMFE-FETXT | No |
Sample upload file
| 1 | Roll (batch) * | Meter position * | Defect code group * | Defect code * | Penalty points * | Note |
|---|---|---|---|---|---|---|
| 2 | L2611-31 | 12.50 | KUMAS | 01 | 4 | Broken weft |
| 3 | L2611-31 | 47 | KUMAS | 05 | 2 | Stain |
| 4 | L2611-31 | 88.20 | KUMAS | 03 | 3 | Warp float |
Result list columns
| # | Column | Source |
|---|---|---|
| 1 | Roll (batch) | MCHA-CHARG |
| 2 | Material | MCHA-MATNR |
| 3 | Loom | Calculated Work center of the production order that produced the batch |
| 4 | Inspected meters | Calculated AUSP, roll length characteristic |
| 5 | Width (cm) | Calculated AUSP, fabric width characteristic |
| 6 | Total penalty points | Calculated Σ penalty points of the defect items |
| 7 | Points per 100 m² | Calculated Total points × 10,000 / (meters × width cm) |
| 8 | Quality grade | Calculated Points < first limit: first quality; < second limit: second quality; otherwise reject |
| 9 | Quality notification | QMEL-QMNUM |
| 10 | Transfer document | MSEG-MBLNR |
Sample result list
| Roll (batch) | Material | Loom | Inspected meters | Width (cm) | Total penalty points | Points per 100 m² | Quality grade | Quality notification | Transfer document |
|---|---|---|---|---|---|---|---|---|---|
| L2611-31 | KM-5005 | TZG-12 | 120 | 180 | 9 | 4.20 | First quality | 200004512 | |
| L2611-32 | KM-5005 | TZG-12 | 118 | 180 | 64 | 30.10 | Second quality | 200004513 | 4900031250 |
| L2611-40 | KM-5010 | TZG-07 | 95 | 160 | 88 | 57.90 | Reject | 200004520 | 4900031251 |
How does the program work?
- The inspector scans the roll barcode; material and batch come from MCHA, roll length and fabric width from batch characteristics (AUSP). If the roll belongs to an inspection lot, the lot is found in QALS.
- Defect entry: the inspector picks the defect code from the catalog (code group and code, texts from QPCT) and enters the meter position and 1–4 penalty points depending on the defect length. Defects are written as items of a quality notification with BAPI_QUALNOT_CREATE (QMEL, QMFE).
- Scoring: points per 100 m² = total penalty points × 10,000 / (inspected length in m × fabric width in cm).
- Grading: below the first-quality limit the roll is first quality, below the second limit second quality, above it reject. The grade is written to the quality grade characteristic of the batch with BAPI_OBJCL_CHANGE.
- Second-quality or reject rolls are optionally transferred to the second-quality material number with movement 309 via BAPI_GOODSMVT_CREATE.
- Report view: by period, loom (work center), shift, supplier and defect code it gives inspected meters, second-quality meters, second-quality rate and the most frequent defect codes.
Performance notes
The tablet screen reads one batch per scan, collects the defects in memory and posts them in one notification when the roll is finished. In the report view, select QMFE by notification type and date range; read only the length, width and grade characteristics from AUSP.
Features
- Line-by-line result and error log
- ALV list (sort, filter, subtotals) The second-quality rate report gives subtotals by loom, shift, supplier and defect code.
- Export to Excel
Authorization objects
- Q_QMELQuality notification create authorization by notification type
- M_MSEG_BWAMovement type authorization for the 309 transfer
- C_TCLA_BKAAuthorization to change batch classification (class type)
Frequently asked questions
Can a scoring system other than the 4-point system be used?
Yes. Penalty point ranges and grade limits are kept as settings; a 10-point system or customer-specific limits can also be defined. If different limits are needed per customer, grading uses the customer of the order.
Can data be taken from a fabric inspection machine?
Yes. For inspection machines that export defect records as files, the same fields are read from the file and the same scoring and grading as on the tablet screen are applied; this interface adds 2–3 days to the estimate.
Does it work on S/4HANA?
Yes. BAPI_QUALNOT_CREATE, BAPI_OBJCL_CHANGE and BAPI_GOODSMVT_CREATE are also used in S/4HANA; the transfer document is written to MATDOC. The tablet screen is delivered as an SAPUI5 Fiori app.
Related reports
Inspection Results Upload from Laboratory File Program
A custom interface program that records the measured values in a CSV/XLSX file produced by laboratory instruments or a laboratory information system …
Quality Notification Defect and Root Cause Pareto Analysis Report
A custom ALV report that counts defect codes and root cause codes in the quality notifications of the selected period and ranks them from the most …
Vendor Quality Scorecard and Rejection Rate (PPM) Report
A custom ALV report that shows, per vendor and material, the lot rejection rate from goods receipt inspection lots, the rejected quantity in parts per …
Let us build this program for your system
Briefly describe your system and expectations. We will clarify the scope and come back with an effort and price quote.