{"audience":"Dyehouse supervisors, laboratory and recipe owners, production planning and cost accounting.","authorization_objects":[{"note":"Order display authorization by order type and plant","object":"C_AFKO_AWK"},{"note":"Goods movement display authorization by plant","object":"M_MSEG_WMB"}],"components":[],"countries":[],"effort_days_max":8,"effort_days_min":6,"effort_size":"M","faq":[{"a":"The report treats the order components in SAP as the recipe. If recipes are kept in an external system, either the components must be transferred to the order or the external dispensing file is read separately for the comparison; the second option adds 2–3 days to the estimate.","q":"Does it work if recipes are kept in dye kitchen software?"},{"a":"An issue of a dyestuff that is not in the order's recipe, and the part above the recipe quantity, count as additions. If additions are posted with a dedicated movement reason, the split is made directly by that reason.","q":"How are additions (shade corrections) identified?"},{"a":"Yes. Order and reservation tables stay the same; goods movements are read via MATDOC or I_MaterialDocumentItem_2.","q":"Does it 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 dye batch opens CO03; double-clicking the actual issue opens the related material documents."},{"code":"excel","label":"Export to Excel","note":""},{"code":"background","label":"Runs as a background job","note":""}],"functions":[],"gap":"COOIS shows planned and withdrawn quantities per component and MB51 lists the movements. Neither normalizes consumption to fabric weight (g/kg), separates shade correction additions from recipe consumption or gives the share of dyeings that needed no addition. The custom report presents these measures together by dye batch, machine and chemical.","id":"textile-dyestuff-consumption-variance","industries":["textile"],"input_columns":[],"kind":"report","language":"en","lastmod":"2026-11-17","logic":"1. Dyeing orders in the selected plant, order type and period are read from AFKO and AFPO; the dyeing machine comes from the work center of the first operation (AFVC, CRHD). Process orders are read from the same tables.\n2. Components that fall into the dyestuff and chemical material groups (MARA-MATKL) on the selection screen are taken from RESB. The recipe quantity is scaled to the actual fabric kilos of the order: RESB-BDMNG × AFPO-WEMNG / AFPO-PSMNG.\n3. 261 issues and 262 returns to the order are read from MSEG. Issues of components that are not in the recipe, and the part above the recipe quantity, are separated as \"addition (shade correction)\".\n4. Variance = actual issue − recipe quantity; variance % and grams per kilo of fabric (g/kg) are calculated. The value is found with the MBEW price.\n5. The share of orders without any addition is summarized per machine as the \"right first time\" rate.\n6. The ALV lists by dye batch and chemical; lines outside tolerance are highlighted.","module":"PP","object_type":"alv_report","output_columns":[{"calculated":false,"formula":"","label":"Dye batch (order)","source_field":"AUFNR","source_table":"AFKO"},{"calculated":false,"formula":"","label":"Dyeing machine","source_field":"ARBPL","source_table":"CRHD"},{"calculated":false,"formula":"","label":"Color / product","source_field":"MATNR","source_table":"AFPO"},{"calculated":false,"formula":"","label":"Fabric (kg)","source_field":"WEMNG","source_table":"AFPO"},{"calculated":false,"formula":"","label":"Dyestuff / chemical","source_field":"MATNR","source_table":"MSEG"},{"calculated":false,"formula":"","label":"Description","source_field":"MAKTX","source_table":"MAKT"},{"calculated":true,"formula":"RESB-BDMNG × AFPO-WEMNG / AFPO-PSMNG","label":"Recipe quantity","source_field":null,"source_table":null},{"calculated":true,"formula":"Σ MSEG-MENGE (261) − Σ MSEG-MENGE (262)","label":"Actual issue","source_field":null,"source_table":null},{"calculated":true,"formula":"Issues of components not in the recipe + the part above the recipe quantity","label":"Addition (shade correction)","source_field":null,"source_table":null},{"calculated":true,"formula":"Actual issue − recipe quantity","label":"Variance","source_field":null,"source_table":null},{"calculated":true,"formula":"Variance / recipe quantity × 100","label":"Variance %","source_field":null,"source_table":null},{"calculated":true,"formula":"Actual issue (g) / fabric (kg)","label":"g/kg (actual)","source_field":null,"source_table":null},{"calculated":false,"formula":"","label":"Unit","source_field":"MEINS","source_table":"RESB"},{"calculated":true,"formula":"Variance × MBEW price / price unit","label":"Variance value","source_field":null,"source_table":null}],"parameters":[{"example":"3000","kind":"select_option","label":"Plant","name":"S_WERKS","ref_field":"AFPO-PWERK","required":true},{"example":"BY01","kind":"select_option","label":"Order type","name":"S_DAUAT","ref_field":"AFPO-DAUAT","required":false},{"example":"JET01–JET12","kind":"select_option","label":"Dyeing machine","name":"S_ARBPL","ref_field":"CRHD-ARBPL","required":false},{"example":"","kind":"select_option","label":"Dyeing order","name":"S_AUFNR","ref_field":"AFKO-AUFNR","required":false},{"example":"BOYA01, KIM01","kind":"select_option","label":"Dyestuff and chemical material groups","name":"S_MATKL","ref_field":"MARA-MATKL","required":true},{"example":"01.11.2026 – 16.11.2026","kind":"select_option","label":"Posting date range","name":"S_BUDAT","ref_field":"MSEG-BUDAT_MKPF","required":true},{"example":"5","kind":"parameter","label":"Variance tolerance (%)","name":"P_TOLER","ref_field":"","required":false}],"part_of":[],"performance":"Select orders by plant, order type and date range, and read RESB and MSEG with the order numbers, filtered by material group. In S/4HANA, goods movements are taken from MATDOC in a single read.","quote_url":"https://nekuhub.com/en/request-a-quote/?report=textile-dyestuff-consumption-variance","related":["co-production-order-variance","pp-component-consumption-variance","pp-scrap-yield-by-work-center"],"releases":[],"source":"custom","standard_alternatives":[{"note":"Lists planned and withdrawn quantities of order components; there is no normalization to fabric weight and no separation of additions.","tcode":"COOIS"},{"note":"Shows issues to the order; it does not compare with the recipe or give a variance rate.","tcode":"MB51"}],"summary":"A custom ALV report that scales the dyestuff and chemical quantities in the recipe of each dye batch (dyeing order) to the kilos of fabric dyed, compares them with the quantities actually issued and shows additions made for shade correction separately. Over-consumption becomes visible by batch, machine and chemical, and the right-first-time dyeing rate can be tracked.","tables":[{"access":"read","join_on":"","role":"Dyeing order header and reservation number (driving table)","table":"AFKO","variant":"both"},{"access":"read","join_on":"AFPO-AUFNR = AFKO-AUFNR","role":"Color/product, planned and actual fabric quantity","table":"AFPO","variant":"both"},{"access":"read","join_on":"RESB-RSNUM = AFKO-RSNUM","role":"Dyestuff and chemical quantities in the recipe","table":"RESB","variant":"both"},{"access":"read","join_on":"MSEG-AUFNR = AFKO-AUFNR","role":"261 issues and 262 returns to the order","table":"MSEG","variant":"both"},{"access":"read","join_on":"MARA-MATNR = MSEG-MATNR","role":"Dyestuff and chemical material group","table":"MARA","variant":"both"},{"access":"read","join_on":"MAKT-MATNR = MSEG-MATNR AND MAKT-SPRAS = SY-LANGU","role":"Dyestuff / chemical description","table":"MAKT","variant":"both"},{"access":"read","join_on":"MBEW-MATNR = MSEG-MATNR AND MBEW-BWKEY = MSEG-WERKS","role":"Price for the variance value","table":"MBEW","variant":"both"},{"access":"read","join_on":"AFVC-AUFPL = AFKO-AUFPL","role":"Dyeing operation and work center link","table":"AFVC","variant":"both"},{"access":"read","join_on":"CRHD-OBJID = AFVC-ARBID AND CRHD-OBJTY = 'A'","role":"Dyeing machine (work center) code","table":"CRHD","variant":"both"},{"access":"read","join_on":"MATDOC-AUFNR = AFKO-AUFNR","role":"In S/4HANA it is read for goods movements instead of MSEG","table":"MATDOC","variant":"s4"}],"title":"Dyestuff and Chemical Consumption Variance vs Recipe Report","url":"https://nekuhub.com/en/reports/dyestuff-and-chemical-consumption-variance-vs-recipe-report/","vendor_id":"nekudos"}