{"audience":"Cost and general accounting, inventory management, sales (stock clearance) and quality teams.","authorization_objects":[{"note":"Material display authorization by plant","object":"M_MATE_WRK"},{"note":"Stock display authorization by plant","object":"M_MSEG_WMB"}],"components":[],"countries":[],"effort_days_max":5,"effort_days_min":4,"effort_size":"S","faq":[{"a":"No. The report only estimates the need. Posting is done according to the company's method, either with a price change (MR21) or with a manual journal entry; the amounts in the report can serve as the basis for that posting.","q":"Does the report post the write-down to accounting?"},{"a":"In that case the quality grade is read from a suffix in the material number or from material classification and matched with the first quality material. This adds 1–2 days to the estimate.","q":"What if second quality is kept under a separate material number?"},{"a":"Yes. MCHB and MBEW can be read as compatibility views in S/4HANA; if clean core is preferred, stock and value come from I_StockQuantityCurrentValue_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 a line shows the related batches; double-clicking a batch opens MSC3N."},{"code":"excel","label":"Export to Excel","note":""},{"code":"background","label":"Runs as a background job","note":""}],"functions":[],"gap":"MB52 lists stock with batch and value and MC.9 gives a stock analysis at material level, but neither uses the quality grade as a grouping criterion or calculates realizable value and write-down for second quality stock that is valued at the same price. The custom report gives quantity, value and estimated write-down by quality grade in one list.","id":"textile-quality-grade-stock-valuation","industries":["textile"],"input_columns":[],"kind":"report","language":"en","lastmod":"2026-11-17","logic":"1. Batch stock in the selected plant, storage location and material type is read from MCHB.\n2. Depending on the selection, the quality grade comes from one of two sources: (a) the quality characteristic in batch classification (INOB, CABN, AUSP); (b) the valuation type of the batch (MCHA-BWTAR) when split valuation by quality is used.\n3. The unit price is read from MBEW by material, valuation area and, if any, valuation type; with price control S the standard price, with V the moving average price, divided by the price unit.\n4. Book value = quantity × unit price. For each lower quality grade a realizable rate is given on the selection screen (for example second quality 70%, third quality 40%).\n5. Write-down needed = book value − book value × realizable rate; if negative it is set to zero. With split valuation, if the lower grade is already valued at a lower price, this column is for information only.\n6. The ALV shows subtotals by material and quality grade; for each material the share of lower quality in total stock is shown.","module":"MM","object_type":"alv_report","output_columns":[{"calculated":false,"formula":"","label":"Plant","source_field":"WERKS","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":true,"formula":"AUSP-ATWRT (characteristic) or MCHA-BWTAR (valuation type)","label":"Quality grade","source_field":null,"source_table":null},{"calculated":true,"formula":"Number of batches with stock in the grade","label":"Number of batches","source_field":null,"source_table":null},{"calculated":true,"formula":"Σ MCHB-CLABS","label":"Unrestricted stock","source_field":null,"source_table":null},{"calculated":true,"formula":"Σ MCHB-CSPEM + MCHB-CINSM","label":"Blocked and in inspection","source_field":null,"source_table":null},{"calculated":false,"formula":"","label":"Unit","source_field":"MEINS","source_table":"MARA"},{"calculated":true,"formula":"MBEW-STPRS if VPRSV = S, otherwise MBEW-VERPR; / MBEW-PEINH","label":"Unit price","source_field":null,"source_table":null},{"calculated":true,"formula":"Total quantity × unit price","label":"Book value","source_field":null,"source_table":null},{"calculated":true,"formula":"First quality 100; others the rate on the selection screen","label":"Realizable rate %","source_field":null,"source_table":null},{"calculated":true,"formula":"max(0, book value − book value × realizable rate)","label":"Write-down needed","source_field":null,"source_table":null},{"calculated":true,"formula":"Quantity other than first quality / total quantity × 100 for the material","label":"Lower quality share %","source_field":null,"source_table":null}],"parameters":[{"example":"1000","kind":"select_option","label":"Plant","name":"S_WERKS","ref_field":"MCHB-WERKS","required":true},{"example":"","kind":"select_option","label":"Storage location","name":"S_LGORT","ref_field":"MCHB-LGORT","required":false},{"example":"","kind":"select_option","label":"Material","name":"S_MATNR","ref_field":"MCHB-MATNR","required":false},{"example":"FERT, HALB","kind":"select_option","label":"Material type","name":"S_MTART","ref_field":"MARA-MTART","required":false},{"example":"X","kind":"radio","label":"Quality source: batch characteristic","name":"R_CHAR","ref_field":"","required":false},{"example":"","kind":"radio","label":"Quality source: valuation type","name":"R_BWTAR","ref_field":"","required":false},{"example":"QUALITY_GRADE","kind":"parameter","label":"Quality grade characteristic","name":"P_ATNAM","ref_field":"CABN-ATNAM","required":false},{"example":"70","kind":"parameter","label":"Second quality realizable rate (%)","name":"P_PCT2","ref_field":"","required":false},{"example":"40","kind":"parameter","label":"Third quality and below realizable rate (%)","name":"P_PCT3","ref_field":"","required":false}],"part_of":[],"performance":"Limit MCHB by plant and material type and drop zero-stock lines. Read the quality characteristic once for the selected batches. Read MBEW with the material, valuation area and valuation type key via FOR ALL ENTRIES.","process":"INV","quote_url":"https://nekuhub.com/en/request-a-quote/?report=textile-quality-grade-stock-valuation","related":["co-material-ledger-price-differences","mm-stock-aging","qm-rejected-ud-blocked-stock"],"releases":[],"source":"custom","standard_alternatives":[{"note":"Lists stock with batch and value; there is no grouping by quality grade and no write-down calculation.","tcode":"MB52"},{"note":"Gives a stock analysis at material level; it does not split by batch characteristic.","tcode":"MC.9"}],"summary":"A custom ALV report that splits fabric and finished goods stock by quality grade (first, second, third quality) read from a batch characteristic or the valuation type, shows the quantity and book value of each grade and estimates the write-down needed for second and lower quality stock. Second quality stock is tracked separately and period-end valuation is prepared with figures.","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":"Valuation type of the batch (split valuation by quality)","table":"MCHA","variant":"both"},{"access":"read","join_on":"MBEW-MATNR = MCHB-MATNR AND MBEW-BWKEY = MCHB-WERKS AND MBEW-BWTAR = MCHA-BWTAR","role":"Price control, standard and moving average price","table":"MBEW","variant":"both"},{"access":"read","join_on":"INOB-OBJEK = parti nesne anahtarı AND INOB-KLART = '023'","role":"Link between batch and classification object","table":"INOB","variant":"both"},{"access":"read","join_on":"AUSP-OBJEK = INOB-CUOBJ AND AUSP-ATINN = CABN-ATINN","role":"Quality grade characteristic value","table":"AUSP","variant":"both"},{"access":"read","join_on":"CABN-ATNAM = P_ATNAM","role":"Translation of the characteristic name to its internal number","table":"CABN","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":"Product = MCHB-MATNR AND Batch = MCHB-CHARG","role":"In S/4HANA it can be read for stock quantity and value with a clean core approach","table":"I_StockQuantityCurrentValue_2","variant":"s4"}],"title":"Stock Quantity and Value by Quality Grade (First and Second Quality) Report","url":"https://nekuhub.com/en/reports/stock-quantity-and-value-by-quality-grade-report/","vendor_id":"nekudos"}