QM Program Custom development Fiori app Textile and Apparel

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

  • QF01 Record Defect Data. Records defects for an inspection lot; no meter position, scoring or automatic grading.
  • QE51N Results Recording Worklist. Records inspection results; no penalty points per roll and no transfer to second quality.

Tables used

The tables the program reads and updates. ECC and S/4HANA differences are marked separately.

TableRoleAccessSystem
MCHABatches (Plant Level)Batch master of the rollReadECC + S/4
AUSPCharacteristic Values of ObjectsRoll length, fabric width and quality grade characteristic (grade is written)Read / writeECC + S/4
QALSInspection Lot RecordInspection lot linked to the rollReadECC + S/4
QMELNotification HeaderFabric inspection quality notification headerWriteECC + S/4
QMFENotification ItemsDefect items: code group, defect code, textWriteECC + S/4
QPCTCode TextsTexts of the defect codesReadECC + S/4
MSEGMaterial Document ItemTransfer to second quality (309) itemsWriteECC only
MATDOCMaterial Documents (S/4HANA)In S/4HANA the transfer document is written to this tableWriteS/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

ParameterDescriptionTypeReference fieldRequiredExample
P_WERKSPlantSingle valueMCHA-WERKSYes1000
P_QMARTQuality notification typeSingle valueQMEL-QMARTYesQ3
P_LIM1First-quality point limit (per 100 m²)Single value—No20
P_LIM2Second-quality point limit (per 100 m²)Single value—No40
P_MAT2Transfer second quality to a separate material (309)Checkbox—NoX
S_DATEReport periodRange / multipleQMEL-QMDATNo01.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.

#ColumnTarget fieldRequired
1Roll (batch)MCHA-CHARGYes
2Meter positionBy rule Position of the defect in meters from the start of the rollYes
3Defect code groupQMFE-FEGRPYes
4Defect codeQMFE-FECODYes
5Penalty pointsBy rule 1–4 points by defect length (4-point system)Yes
6NoteQMFE-FETXTNo

Sample upload file

1Roll (batch) *Meter position *Defect code group *Defect code *Penalty points *Note
2L2611-3112.50KUMAS014Broken weft
3L2611-3147KUMAS052Stain
4L2611-3188.20KUMAS033Warp float
A view built with fictional sample data; not real system data.

Result list columns

#ColumnSource
1Roll (batch)MCHA-CHARG
2MaterialMCHA-MATNR
3LoomCalculated Work center of the production order that produced the batch
4Inspected metersCalculated AUSP, roll length characteristic
5Width (cm)Calculated AUSP, fabric width characteristic
6Total penalty pointsCalculated Σ penalty points of the defect items
7Points per 100 m²Calculated Total points × 10,000 / (meters × width cm)
8Quality gradeCalculated Points < first limit: first quality; < second limit: second quality; otherwise reject
9Quality notificationQMEL-QMNUM
10Transfer documentMSEG-MBLNR

Sample result list

Roll (batch)MaterialLoomInspected metersWidth (cm)Total penalty pointsPoints per 100 m²Quality gradeQuality notificationTransfer document
L2611-31KM-5005TZG-1212018094.20First quality200004512
L2611-32KM-5005TZG-121181806430.10Second quality2000045134900031250
L2611-40KM-5010TZG-07951608857.90Reject2000045204900031251
A view built with fictional sample data; not real system data.

How does the program work?

  1. 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.
  2. 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).
  3. Scoring: points per 100 m² = total penalty points × 10,000 / (inspected length in m × fabric width in cm).
  4. 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.
  5. Second-quality or reject rolls are optionally transferred to the second-quality material number with movement 309 via BAPI_GOODSMVT_CREATE.
  6. 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

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.

Related report: Fabric Inspection Defect Entry, Roll Grading and Second-Quality Rate Program