{"audience":"Textile production planning, yarn and fabric purchasing, sales and warehouse teams.","authorization_objects":[{"note":"Material and stock display authorization by plant","object":"M_MATE_WRK"},{"note":"Classification display authorization by class type","object":"C_TCLA_BKA"}],"components":[],"countries":[],"effort_days_max":8,"effort_days_min":5,"effort_size":"M","faq":[{"a":"Any characteristic defined in the batch class (class type 023) can be shown. Characteristics are picked by name on the selection screen; frequently used combinations are stored as variants and ALV layouts.","q":"Which batch characteristics can be shown?"},{"a":"Yes. When yarn count is chosen as the subtotal characteristic, the ALV gives the total stock per count while the lots remain separate lines below. Planning sees the total quantity and the warehouse does not mix lots.","q":"Can different lots of the same yarn count be totalled?"},{"a":"Yes. MCHB is still read as a compatibility view in S/4HANA and batch classification stays in AUSP. For clean core, stock can be read from I_MaterialStock_2 and batch data from I_Batch.","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":"Characteristic columns and subtotals are saved as a layout."},{"code":"drilldown","label":"Double-click drill-down to the document","note":"Double-clicking the batch opens the batch master in MSC3N."},{"code":"excel","label":"Export to Excel","note":""},{"code":"background","label":"Runs as a background job","note":""}],"functions":[],"gap":"MB52 and MMBE show stock at batch level but do not give batch classification values as columns, so stock cannot be filtered or totalled by yarn count or quality grade. MSC3N shows the characteristics of one batch and CL30N finds batches by classification; neither lists the stock quantity together with storage location and stock type. The custom report combines stock and batch characteristics on the same line and gives subtotals by the selected characteristic.","id":"mm-yarn-fabric-stock-by-lot","industries":["textile"],"input_columns":[],"kind":"report","language":"en","lastmod":"2026-11-17","logic":"1. MCHB is read by plant, storage location, material and material type (yarn, greige fabric, finished fabric). Unrestricted, quality inspection and blocked stock are kept in separate columns; batches with zero stock can be left out.\n2. The classification object of the batch is found in INOB (class type 023; OBTAB = MCH1 if batches are unique at material level, MCHA if at plant level).\n3. The values of the selected characteristics are read from AUSP; CABN gives the characteristic name, data type and unit. Character values come from ATWRT, numeric values from ATFLV; the value text is added from CAWN.\n4. The characteristics to show (yarn count, composition, quality grade, dye lot, brand) are entered on the selection screen by characteristic name; the report turns them into dynamic ALV columns and filters by characteristic value.\n5. The stock value is calculated with the price from MBEW, and the batch creation date comes from MCHA. The ALV gives subtotals by the selected characteristic.","module":"MM","object_type":"alv_report","output_columns":[{"calculated":false,"formula":"","label":"Plant","source_field":"WERKS","source_table":"MCHB"},{"calculated":false,"formula":"","label":"Storage location","source_field":"LGORT","source_table":"MCHB"},{"calculated":false,"formula":"","label":"Material","source_field":"MATNR","source_table":"MCHB"},{"calculated":false,"formula":"","label":"Material description","source_field":"MAKTX","source_table":"MAKT"},{"calculated":false,"formula":"","label":"Batch (lot)","source_field":"CHARG","source_table":"MCHB"},{"calculated":true,"formula":"AUSP-ATWRT, characteristic IPLIK_NUMARASI","label":"Yarn count","source_field":null,"source_table":null},{"calculated":true,"formula":"AUSP-ATWRT, characteristic KOMPOZISYON (with CAWN text)","label":"Composition","source_field":null,"source_table":null},{"calculated":true,"formula":"AUSP-ATWRT, characteristic KALITE","label":"Quality grade","source_field":null,"source_table":null},{"calculated":true,"formula":"AUSP-ATWRT, characteristic BOYA_LOTU","label":"Dye lot / shade","source_field":null,"source_table":null},{"calculated":true,"formula":"AUSP-ATWRT, characteristic MARKA","label":"Brand","source_field":null,"source_table":null},{"calculated":false,"formula":"","label":"Unrestricted stock","source_field":"CLABS","source_table":"MCHB"},{"calculated":false,"formula":"","label":"Quality inspection stock","source_field":"CINSM","source_table":"MCHB"},{"calculated":false,"formula":"","label":"Blocked stock","source_field":"CSPEM","source_table":"MCHB"},{"calculated":false,"formula":"","label":"Unit","source_field":"MEINS","source_table":"MARA"},{"calculated":true,"formula":"(CLABS + CINSM + CSPEM) × MBEW price / price unit","label":"Stock value","source_field":null,"source_table":null},{"calculated":false,"formula":"","label":"Batch created on","source_field":"ERSDA","source_table":"MCHA"}],"parameters":[{"example":"1000","kind":"select_option","label":"Plant","name":"S_WERKS","ref_field":"MCHB-WERKS","required":true},{"example":"0002","kind":"select_option","label":"Storage location","name":"S_LGORT","ref_field":"MCHB-LGORT","required":false},{"example":"ROH, HALB","kind":"select_option","label":"Material type","name":"S_MTART","ref_field":"MARA-MTART","required":false},{"example":"IP-3020","kind":"select_option","label":"Material","name":"S_MATNR","ref_field":"MCHB-MATNR","required":false},{"example":"IPLIK_NUMARASI, KOMPOZISYON, KALITE, BOYA_LOTU, MARKA","kind":"select_option","label":"Batch characteristics to show","name":"S_ATNAM","ref_field":"CABN-ATNAM","required":false},{"example":"Ne 30/1","kind":"select_option","label":"Characteristic value filter","name":"S_ATWRT","ref_field":"AUSP-ATWRT","required":false},{"example":"IPLIK_NUMARASI","kind":"parameter","label":"Subtotal characteristic","name":"P_SUBT","ref_field":"","required":false},{"example":"X","kind":"checkbox","label":"Hide batches with zero stock","name":"P_NOZERO","ref_field":"","required":false}],"part_of":[],"performance":"Read AUSP in bulk with the object numbers of the selected batches and only the internal numbers (ATINN) of the selected characteristics. With many batches, use one bulk SELECT instead of reading classification per batch with a function; this cuts the runtime considerably.","process":"INV","quote_url":"https://nekuhub.com/en/request-a-quote/?report=mm-yarn-fabric-stock-by-lot","related":["mm-batch-shelf-life","mm-mb52-warehouse-stock","mm-stock-aging"],"releases":[],"source":"custom","standard_alternatives":[{"note":"Lists stock per batch; does not show batch characteristics as columns.","tcode":"MB52"},{"note":"Finds batches by classification values; shows no stock quantity or value.","tcode":"CL30N"}],"summary":"A custom ALV report that lists yarn and fabric stock at batch (lot) level together with batch classification values such as yarn count, composition, quality grade, dye lot and brand. Planning and sales teams add up stock of the same count and quality across lots, avoid mixing different lots and see which fabric is on hand in which quality in one list.","tables":[{"access":"read","join_on":"","role":"Batch stock: unrestricted, quality inspection and blocked quantity (driving table)","table":"MCHB","variant":"both"},{"access":"read","join_on":"MCHA-MATNR = MCHB-MATNR AND MCHA-WERKS = MCHB-WERKS AND MCHA-CHARG = MCHB-CHARG","role":"Batch master: creation date","table":"MCHA","variant":"both"},{"access":"read","join_on":"INOB-OBTAB = 'MCH1' AND INOB-KLART = '023' AND INOB-OBJEK = MATNR + CHARG","role":"Classification object number of the batch","table":"INOB","variant":"both"},{"access":"read","join_on":"AUSP-OBJEK = INOB-CUOBJ AND AUSP-KLART = '023'","role":"Batch characteristic values: yarn count, quality, dye lot, brand","table":"AUSP","variant":"both"},{"access":"read","join_on":"CABN-ATINN = AUSP-ATINN","role":"Characteristic name, data type and unit","table":"CABN","variant":"both"},{"access":"read","join_on":"CAWN-ATINN = AUSP-ATINN AND CAWN-ATWRT = AUSP-ATWRT","role":"Descriptions of characteristic values","table":"CAWN","variant":"both"},{"access":"read","join_on":"MARA-MATNR = MCHB-MATNR","role":"Material type and base unit of measure","table":"MARA","variant":"both"},{"access":"read","join_on":"MAKT-MATNR = MCHB-MATNR AND MAKT-SPRAS = SY-LANGU","role":"Material description","table":"MAKT","variant":"both"},{"access":"read","join_on":"MBEW-MATNR = MCHB-MATNR AND MBEW-BWKEY = MCHB-WERKS","role":"Price for the stock value","table":"MBEW","variant":"both"},{"access":"read","join_on":"Material = MCHB-MATNR AND Batch = MCHB-CHARG","role":"In S/4HANA it can be read for batch master data with a clean core approach","table":"I_Batch","variant":"s4"}],"title":"Yarn and Fabric Stock Report by Lot, Yarn Count, Quality and Brand","url":"https://nekuhub.com/en/reports/yarn-and-fabric-stock-report-by-lot-count-and-quality/","vendor_id":"nekudos"}