{"audience":"Customer quality engineers, quality managers, production and laboratory supervisors.","authorization_objects":[{"note":"Quality notification display authorization by notification type","object":"Q_QMEL"},{"note":"Inspection lot authorization by inspection type","object":"Q_INSPTYPE"}],"components":[],"countries":[],"effort_days_max":6,"effort_days_min":4,"effort_size":"M","faq":[{"a":"Without batches, the link to the inspection lot can be made by material and date range, but the match is not exact. The report works best for batch-managed materials.","q":"Does the report work without batch management?"},{"a":"Yes. By reading the batch where-used records, the component batches of the finished batch and their goods receipt inspection lots can be shown in an extra view; this raises the effort range.","q":"Can it go down to the component batches?"},{"a":"Yes. QMEL, QMFE, QALS, QAVE and QAMR keep the same structure in S/4HANA.","q":"Does the report work on S/4HANA?"}],"features":[{"code":"alv","label":"ALV list (sort, filter, subtotals)","note":""},{"code":"layout","label":"User-specific layout variants","note":""},{"code":"drilldown","label":"Double-click drill-down to the document","note":"Double-clicking the notification opens QM03; double-clicking the inspection lot opens QA03."},{"code":"excel","label":"Export to Excel","note":""},{"code":"background","label":"Runs as a background job","note":""}],"functions":[],"gap":"QM10 lists customer complaints; the delivery and batch are on the notification, but the production or goods receipt inspection lot of that batch, its usage decision and failed characteristics have to be looked up separately in QA03. MB56 traces where a batch came from but shows no quality result. No standard list shows the complaint and the inspection result on the same line.","id":"qm-customer-complaint-batch-trace","industries":[],"input_columns":[],"kind":"report","language":"en","lastmod":"2026-11-17","logic":"1. QMEL is read with the customer complaint notification types, customer, material, date and sales organization from the selection screen.\n2. If the batch is empty on the notification, it is taken from the delivery item (QMEL-LS_VBELN / LS_POSNR → LIPS-CHARG).\n3. The inspection lots in QALS for the material and batch are found (production origin 04 or goods receipt 01); by default the latest lot is shown, optionally all of them.\n4. The usage decision of the lot comes from QAVE and the number of rejected characteristics from QAMR records with MBEWERTG = R.\n5. The first defect code of the notification is added from QMFE; other complaints for the same material and batch are counted. The customer name comes from KNA1.","module":"QM","object_type":"alv_report","output_columns":[{"calculated":false,"formula":"","label":"Notification","source_field":"QMNUM","source_table":"QMEL"},{"calculated":false,"formula":"","label":"Notification date","source_field":"QMDAT","source_table":"QMEL"},{"calculated":false,"formula":"","label":"Customer","source_field":"KUNUM","source_table":"QMEL"},{"calculated":false,"formula":"","label":"Customer name","source_field":"NAME1","source_table":"KNA1"},{"calculated":false,"formula":"","label":"Delivery","source_field":"LS_VBELN","source_table":"QMEL"},{"calculated":false,"formula":"","label":"Material","source_field":"MATNR","source_table":"QMEL"},{"calculated":false,"formula":"","label":"Batch","source_field":"CHARG","source_table":"QMEL"},{"calculated":false,"formula":"","label":"Complaint qty","source_field":"RKMNG","source_table":"QMEL"},{"calculated":false,"formula":"","label":"Defect code","source_field":"FECOD","source_table":"QMFE"},{"calculated":false,"formula":"","label":"Inspection lot","source_field":"PRUEFLOS","source_table":"QALS"},{"calculated":false,"formula":"","label":"Lot origin","source_field":"HERKUNFT","source_table":"QALS"},{"calculated":false,"formula":"","label":"Usage decision","source_field":"VCODE","source_table":"QAVE"},{"calculated":true,"formula":"Number of characteristics with QAMR-MBEWERTG = R","label":"Rejected characteristics","source_field":null,"source_table":null},{"calculated":true,"formula":"Number of notifications for the same QMEL-MATNR and QMEL-CHARG","label":"Complaints on same batch","source_field":null,"source_table":null}],"parameters":[{"example":"Q1","kind":"select_option","label":"Customer complaint notification type","name":"S_QMART","ref_field":"QMEL-QMART","required":true},{"example":"200310","kind":"select_option","label":"Customer","name":"S_KUNUM","ref_field":"QMEL-KUNUM","required":false},{"example":"FG-2050","kind":"select_option","label":"Material","name":"S_MATNR","ref_field":"QMEL-MATNR","required":false},{"example":"P2610-22","kind":"select_option","label":"Batch","name":"S_CHARG","ref_field":"QMEL-CHARG","required":false},{"example":"01.07.2026 – 17.11.2026","kind":"select_option","label":"Notification date","name":"S_QMDAT","ref_field":"QMEL-QMDAT","required":true},{"example":"1000","kind":"select_option","label":"Sales organization","name":"S_VKORG","ref_field":"QMEL-VKORG","required":false},{"example":"","kind":"checkbox","label":"Show all inspection lots of the batch","name":"P_ALLLOT","ref_field":"","required":false}],"part_of":["qm-complaint-root-cause-pack"],"performance":"Narrow QMEL by notification type and date. Read QALS once with the material–batch list; check whether QALS has a secondary index on material and batch.","process":"O2C","quote_url":"https://nekuhub.com/en/request-a-quote/?report=qm-customer-complaint-batch-trace","related":["qm-overdue-quality-notifications","sd-returns-credit-memos-by-reason"],"releases":[],"source":"custom","standard_alternatives":[{"note":"Lists customer complaints; the inspection result and usage decision of the batch are not on the same line.","tcode":"QM10"},{"note":"Lists inspection lots with their decision; does not link them to customer complaints.","tcode":"QA33"}],"summary":"A custom ALV report that shows customer complaint notifications on the same line as the delivery, the batch, the inspection lot of that batch, its usage decision and the number of rejected characteristics. Quality teams see at a glance how the complained batch was judged in production or at goods receipt, and whether other complaints came from the same batch.","tables":[{"access":"read","join_on":"","role":"Customer complaint: customer, delivery, material, batch and complaint quantity (driving table)","table":"QMEL","variant":"both"},{"access":"read","join_on":"QMFE-QMNUM = QMEL-QMNUM","role":"Defect code of the notification","table":"QMFE","variant":"both"},{"access":"read","join_on":"LIPS-VBELN = QMEL-LS_VBELN AND LIPS-POSNR = QMEL-LS_POSNR","role":"Batch from the delivery item when the notification has none","table":"LIPS","variant":"both"},{"access":"read","join_on":"QALS-MATNR = QMEL-MATNR AND QALS-CHARG = QMEL-CHARG","role":"Production or goods receipt inspection lot of the batch","table":"QALS","variant":"both"},{"access":"read","join_on":"QAVE-PRUEFLOS = QALS-PRUEFLOS","role":"Usage decision of the inspection lot","table":"QAVE","variant":"both"},{"access":"read","join_on":"QAMR-PRUEFLOS = QALS-PRUEFLOS AND QAMR-MBEWERTG = 'R'","role":"Rejected characteristics","table":"QAMR","variant":"both"},{"access":"read","join_on":"KNA1-KUNNR = QMEL-KUNUM","role":"Customer name","table":"KNA1","variant":"both"}],"title":"Customer Complaints Traced to Delivery, Batch and Inspection Lot Report","url":"https://nekuhub.com/en/reports/customer-complaint-batch-and-inspection-lot-trace-report/","vendor_id":"nekudos"}