{"audience":"Warehouse and quality teams, sales planning and inventory controllers.","authorization_objects":[{"note":"Stock and material document display authorization by plant","object":"M_MSEG_WMB"},{"note":"Material master authorization by plant","object":"M_MATE_WRK"}],"components":[],"countries":[],"effort_days_max":5,"effort_days_min":3,"effort_size":"S","faq":[{"a":"Yes. When the batch level is the material, the dates are read from MCH1 instead of MCHA; this setting is checked during installation.","q":"Does the report work when the batch level is the material?"},{"a":"Yes. A minimum remaining shelf life per customer or channel can be added as a pre-shipment check; this increases the effort range.","q":"Can a customer-specific minimum shelf life rule be added?"}],"features":[{"code":"alv","label":"ALV list (sort, filter, subtotals)","note":""},{"code":"layout","label":"User-specific layout variants","note":""},{"code":"email","label":"Send the result by email","note":"Batches expiring soon are sent to the quality and sales teams every morning."},{"code":"background","label":"Runs as a background job","note":""},{"code":"excel","label":"Export to Excel","note":""}],"functions":[],"gap":"MB5M lists batches by expiry date but does not give the remaining shelf life percentage, the stock value or automatic alerts such as \"expiring in the next 30 days\". Companies that ship with a minimum remaining shelf life calculate this separately every day.","id":"mm-batch-shelf-life","industries":["chemicals","food","pharma"],"input_columns":[],"kind":"report","language":"en","lastmod":"2026-11-16","logic":"1. Batch stocks are read from MCHB for the selected plants and storage locations; batches without stock are skipped.\n2. Each batch's date of manufacture and shelf life expiration date come from MCHA (or MCH1 when the batch level is the material).\n3. Remaining days = expiration date − key date. Remaining shelf life % = remaining days ÷ (expiration date − date of manufacture).\n4. Only batches expiring within the day limit on the selection screen (optionally also expired ones) are listed.\n5. Stock value is calculated with the MBEW price; the result can be emailed to the quality team.","module":"MM","object_type":"alv_report","output_columns":[{"calculated":false,"formula":"","label":"Plant","source_field":"WERKS","source_table":"MCHB"},{"calculated":false,"formula":"","label":"Storage loc.","source_field":"LGORT","source_table":"MCHB"},{"calculated":false,"formula":"","label":"Material","source_field":"MATNR","source_table":"MCHB"},{"calculated":false,"formula":"","label":"Description","source_field":"MAKTX","source_table":"MAKT"},{"calculated":false,"formula":"","label":"Batch","source_field":"CHARG","source_table":"MCHB"},{"calculated":false,"formula":"","label":"Produced","source_field":"HSDAT","source_table":"MCHA"},{"calculated":false,"formula":"","label":"Expires","source_field":"VFDAT","source_table":"MCHA"},{"calculated":true,"formula":"MCHA-VFDAT − key date (negative: expired)","label":"Days left","source_field":null,"source_table":null},{"calculated":true,"formula":"Days left ÷ (MCHA-VFDAT − MCHA-HSDAT) × 100","label":"Shelf life left %","source_field":null,"source_table":null},{"calculated":false,"formula":"","label":"Unrestricted","source_field":"CLABS","source_table":"MCHB"},{"calculated":false,"formula":"","label":"Unit","source_field":"MEINS","source_table":"MARA"},{"calculated":true,"formula":"Unrestricted stock × MBEW price ÷ price unit","label":"Stock value","source_field":null,"source_table":null}],"parameters":[{"example":"1000","kind":"select_option","label":"Plant","name":"S_WERKS","ref_field":"MCHB-WERKS","required":true},{"example":"0001","kind":"select_option","label":"Storage location","name":"S_LGORT","ref_field":"MCHB-LGORT","required":false},{"example":"FG-7001","kind":"select_option","label":"Material","name":"S_MATNR","ref_field":"MCHB-MATNR","required":false},{"example":"FERT","kind":"select_option","label":"Material type","name":"S_MTART","ref_field":"MARA-MTART","required":false},{"example":"120","kind":"parameter","label":"Batches expiring within (days)","name":"P_DAYS","ref_field":"","required":true},{"example":"X","kind":"checkbox","label":"Also show expired batches","name":"P_EXPIRD","ref_field":"","required":false}],"part_of":[],"performance":"Read MCHB by plant and storage location; in S/4HANA batch stocks are calculated from MATDOC, so run very wide selections in the background.","process":"INV","quote_url":"https://nekuhub.com/en/request-a-quote/?report=mm-batch-shelf-life","related":["mm-material-master-upload","mm-stock-aging"],"releases":[],"source":"custom","standard_alternatives":[{"note":"Lists batches by expiry date; no remaining shelf life percentage, stock value or automatic alert.","tcode":"MB5M"},{"note":"Shows batch stocks; does not consider the expiry date.","tcode":"MB52"}],"summary":"A custom ALV report that lists batches close to or past their expiry date with remaining days, remaining shelf life percentage and stock value. Food, pharma and chemical companies can take write-off and discount decisions in time.","tables":[{"access":"read","join_on":"","role":"Stock per batch (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":"Date of manufacture and expiration date","table":"MCHA","variant":"both"},{"access":"read","join_on":"MARA-MATNR = MCHB-MATNR","role":"Total and minimum remaining shelf life, base unit","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 = değerleme alanı (üretim yeri)","role":"Price for stock value","table":"MBEW","variant":"both"}],"title":"Batch Shelf Life Tracking Report (Batches Close to Expiry)","url":"https://nekuhub.com/en/reports/batch-shelf-life-tracking-report/","vendor_id":"nekudos"}