{"audience":"Fabric quality control teams, weaving and knitting production managers, quality and sales teams.","authorization_objects":[{"note":"Quality notification create authorization by notification type","object":"Q_QMEL"},{"note":"Movement type authorization for the 309 transfer","object":"M_MSEG_BWA"},{"note":"Authorization to change batch classification (class type)","object":"C_TCLA_BKA"}],"components":[],"countries":[],"effort_days_max":18,"effort_days_min":12,"effort_size":"L","faq":[{"a":"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.","q":"Can a scoring system other than the 4-point system be used?"},{"a":"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.","q":"Can data be taken from a fabric inspection machine?"},{"a":"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.","q":"Does it work on S/4HANA?"}],"features":[{"code":"log","label":"Line-by-line result and error log","note":""},{"code":"alv","label":"ALV list (sort, filter, subtotals)","note":"The second-quality rate report gives subtotals by loom, shift, supplier and defect code."},{"code":"excel","label":"Export to Excel","note":""}],"functions":[{"name":"BAPI_QUALNOT_CREATE","role":"Creates the quality notification for the roll with its defect items"},{"name":"BAPI_OBJCL_CHANGE","role":"Updates the quality grade characteristic of the batch"},{"name":"BAPI_GOODSMVT_CREATE","role":"Transfers a second-quality or reject roll to a separate material with movement 309"},{"name":"BAPI_TRANSACTION_COMMIT","role":"Commits the postings when the roll is finished"}],"gap":"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.","id":"qm-fabric-defect-second-quality","industries":["textile"],"input_columns":[{"derived":false,"label":"Roll (batch)","required":true,"rule":"","target_field":"CHARG","target_table":"MCHA"},{"derived":true,"label":"Meter position","required":true,"rule":"Position of the defect in meters from the start of the roll","target_field":null,"target_table":null},{"derived":false,"label":"Defect code group","required":true,"rule":"","target_field":"FEGRP","target_table":"QMFE"},{"derived":false,"label":"Defect code","required":true,"rule":"","target_field":"FECOD","target_table":"QMFE"},{"derived":true,"label":"Penalty points","required":true,"rule":"1–4 points by defect length (4-point system)","target_field":null,"target_table":null},{"derived":false,"label":"Note","required":false,"rule":"","target_field":"FETXT","target_table":"QMFE"}],"kind":"program","language":"en","lastmod":"2026-11-17","logic":"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.\n2. 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).\n3. Scoring: points per 100 m² = total penalty points × 10,000 / (inspected length in m × fabric width in cm).\n4. 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.\n5. Second-quality or reject rolls are optionally transferred to the second-quality material number with movement 309 via BAPI_GOODSMVT_CREATE.\n6. 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.","module":"QM","object_type":"fiori_app","output_columns":[{"calculated":false,"formula":"","label":"Roll (batch)","source_field":"CHARG","source_table":"MCHA"},{"calculated":false,"formula":"","label":"Material","source_field":"MATNR","source_table":"MCHA"},{"calculated":true,"formula":"Work center of the production order that produced the batch","label":"Loom","source_field":null,"source_table":null},{"calculated":true,"formula":"AUSP, roll length characteristic","label":"Inspected meters","source_field":null,"source_table":null},{"calculated":true,"formula":"AUSP, fabric width characteristic","label":"Width (cm)","source_field":null,"source_table":null},{"calculated":true,"formula":"Σ penalty points of the defect items","label":"Total penalty points","source_field":null,"source_table":null},{"calculated":true,"formula":"Total points × 10,000 / (meters × width cm)","label":"Points per 100 m²","source_field":null,"source_table":null},{"calculated":true,"formula":"Points \u003c first limit: first quality; \u003c second limit: second quality; otherwise reject","label":"Quality grade","source_field":null,"source_table":null},{"calculated":false,"formula":"","label":"Quality notification","source_field":"QMNUM","source_table":"QMEL"},{"calculated":false,"formula":"","label":"Transfer document","source_field":"MBLNR","source_table":"MSEG"}],"parameters":[{"example":"1000","kind":"parameter","label":"Plant","name":"P_WERKS","ref_field":"MCHA-WERKS","required":true},{"example":"Q3","kind":"parameter","label":"Quality notification type","name":"P_QMART","ref_field":"QMEL-QMART","required":true},{"example":"20","kind":"parameter","label":"First-quality point limit (per 100 m²)","name":"P_LIM1","ref_field":"","required":false},{"example":"40","kind":"parameter","label":"Second-quality point limit (per 100 m²)","name":"P_LIM2","ref_field":"","required":false},{"example":"X","kind":"checkbox","label":"Transfer second quality to a separate material (309)","name":"P_MAT2","ref_field":"","required":false},{"example":"01.11.2026 – 16.11.2026","kind":"select_option","label":"Report period","name":"S_DATE","ref_field":"QMEL-QMDAT","required":false}],"part_of":[],"performance":"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.","quote_url":"https://nekuhub.com/en/request-a-quote/?report=qm-fabric-defect-second-quality","related":["qm-inspection-results-upload","qm-notification-defect-cause-pareto","qm-vendor-quality-scorecard"],"releases":[],"source":"custom","standard_alternatives":[{"note":"Records defects for an inspection lot; no meter position, scoring or automatic grading.","tcode":"QF01"},{"note":"Records inspection results; no penalty points per roll and no transfer to second quality.","tcode":"QE51N"}],"summary":"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.","tables":[{"access":"read","join_on":"","role":"Batch master of the roll","table":"MCHA","variant":"both"},{"access":"read_write","join_on":"AUSP-OBJEK = INOB-CUOBJ AND AUSP-KLART = '023'","role":"Roll length, fabric width and quality grade characteristic (grade is written)","table":"AUSP","variant":"both"},{"access":"read","join_on":"QALS-MATNR = MCHA-MATNR AND QALS-CHARG = MCHA-CHARG","role":"Inspection lot linked to the roll","table":"QALS","variant":"both"},{"access":"write","join_on":"","role":"Fabric inspection quality notification header","table":"QMEL","variant":"both"},{"access":"write","join_on":"QMFE-QMNUM = QMEL-QMNUM","role":"Defect items: code group, defect code, text","table":"QMFE","variant":"both"},{"access":"read","join_on":"QPCT-CODEGRUPPE = QMFE-FEGRP AND QPCT-CODE = QMFE-FECOD","role":"Texts of the defect codes","table":"QPCT","variant":"both"},{"access":"write","join_on":"","role":"Transfer to second quality (309) items","table":"MSEG","variant":"ecc"},{"access":"write","join_on":"","role":"In S/4HANA the transfer document is written to this table","table":"MATDOC","variant":"s4"}],"title":"Fabric Inspection Defect Entry, Roll Grading and Second-Quality Rate Program","url":"https://nekuhub.com/en/programs/fabric-defect-entry-and-second-quality-rate-report/","vendor_id":"nekudos"}