{"audience":"Warehouse managers, inventory controllers, cost accounting and finance teams.","authorization_objects":[{"note":"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":7,"effort_days_min":4,"effort_size":"M","faq":[{"a":"In this template, age is the number of days since the last goods receipt into the storage location. If needed, each receipt lot can be aged separately with FIFO logic; that increases the effort range.","q":"How is stock age calculated?"},{"a":"Goods movements live in MATDOC instead of MKPF/MSEG, and MARD stock quantities are calculated on the fly from MATDOC. Written on MATDOC or I_MaterialDocumentItem_2, the report is both faster and clean-core friendly.","q":"What changes on S/4HANA?"},{"a":"Yes. The bucket limits are selection-screen parameters; each team can save its own limits as a variant.","q":"Can the age buckets be changed?"}],"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 material opens the MMBE stock overview."},{"code":"excel","label":"Export to Excel","note":""},{"code":"background","label":"Runs as a background job","note":"Can run automatically at month-end close."}],"functions":[],"gap":"MB52 gives current stock and value but not stock age. MC50 and MC46 analyze non-moving stock, but their results depend on up-to-date LIS information structures and do not split value into age buckets. Aging is usually done by merging a stock list with material movements in Excel.","id":"mm-stock-aging","industries":[],"input_columns":[],"kind":"report","language":"en","lastmod":"2026-11-16","logic":"1. Unrestricted-use stock is read from MARD for the selection; with \"Hide zero stock\" selected, lines without stock are skipped.\n2. Material type and base unit come from MARA, and the description in the logon language from MAKT.\n3. The unit price comes from MBEW: standard price (STPRS) when price control is S, moving average price (VERPR) when it is V, divided by the price unit (PEINH).\n4. The last goods receipt date is the latest posting date per material + plant + storage location for receipt movement types (e.g. 101, 501, 561). It is read from MKPF/MSEG in ECC and from MATDOC or I_MaterialDocumentItem_2 in S/4HANA.\n5. Age = key date − last receipt date. The age is assigned to a bucket using the limits on the selection screen.","module":"MM","object_type":"alv_report","output_columns":[{"calculated":false,"formula":"","label":"Plant","source_field":"WERKS","source_table":"MARD"},{"calculated":false,"formula":"","label":"Storage loc.","source_field":"LGORT","source_table":"MARD"},{"calculated":false,"formula":"","label":"Material","source_field":"MATNR","source_table":"MARD"},{"calculated":false,"formula":"","label":"Description","source_field":"MAKTX","source_table":"MAKT"},{"calculated":false,"formula":"","label":"Material type","source_field":"MTART","source_table":"MARA"},{"calculated":false,"formula":"","label":"Unrestricted","source_field":"LABST","source_table":"MARD"},{"calculated":false,"formula":"","label":"Unit","source_field":"MEINS","source_table":"MARA"},{"calculated":true,"formula":"MBEW-STPRS if MBEW-VPRSV = S, MBEW-VERPR if V; ÷ MBEW-PEINH","label":"Unit price","source_field":null,"source_table":null},{"calculated":true,"formula":"Unrestricted stock × unit price","label":"Stock value","source_field":null,"source_table":null},{"calculated":true,"formula":"Latest posting date of receipt movement types (ECC: MKPF-BUDAT, S/4HANA: MATDOC-BUDAT)","label":"Last receipt","source_field":null,"source_table":null},{"calculated":true,"formula":"Key date − last receipt date","label":"Age (days)","source_field":null,"source_table":null},{"calculated":true,"formula":"Bucket of the age by the P_BKT1, P_BKT2, P_BKT3 limits","label":"Age bucket","source_field":null,"source_table":null}],"parameters":[{"example":"1000","kind":"select_option","label":"Plant","name":"S_WERKS","ref_field":"MARD-WERKS","required":true},{"example":"0001","kind":"select_option","label":"Storage location","name":"S_LGORT","ref_field":"MARD-LGORT","required":false},{"example":"RM-1001","kind":"select_option","label":"Material","name":"S_MATNR","ref_field":"MARD-MATNR","required":false},{"example":"ROH","kind":"select_option","label":"Material type","name":"S_MTART","ref_field":"MARA-MTART","required":false},{"example":"01","kind":"select_option","label":"Material group","name":"S_MATKL","ref_field":"MARA-MATKL","required":false},{"example":"16.11.2026","kind":"parameter","label":"Key date for the age calculation (default: today)","name":"P_KEYDT","ref_field":"SY-DATUM","required":true},{"example":"30","kind":"parameter","label":"Bucket 1 upper limit (days)","name":"P_BKT1","ref_field":"","required":false},{"example":"90","kind":"parameter","label":"Bucket 2 upper limit (days)","name":"P_BKT2","ref_field":"","required":false},{"example":"180","kind":"parameter","label":"Bucket 3 upper limit (days)","name":"P_BKT3","ref_field":"","required":false},{"example":"X","kind":"checkbox","label":"Hide zero stock","name":"P_NOZERO","ref_field":"","required":false}],"part_of":[],"performance":"In ECC, MSEG can be very large. Find the last receipt date in one aggregated query (MAX posting date per material + plant + storage location) and restrict movement types. In S/4HANA, push the aggregation down to the database on MATDOC or the CDS view.","process":"INV","quote_url":"https://nekuhub.com/en/request-a-quote/?report=mm-stock-aging","related":["mm-mb52-warehouse-stock","mm-open-po-by-vendor"],"releases":[],"source":"custom","standard_alternatives":[{"note":"Gives current stock and value; no last receipt date and no stock age.","tcode":"MB52"},{"note":"Analyzes non-moving stock; does not split value into age buckets and depends on LIS updates.","tcode":"MC50"},{"note":"Gives stock at a past date; does not show how long a material has been waiting.","tcode":"MB5B"}],"summary":"A custom ALV report that shows how many days each material has been in stock since its last goods receipt and which age bucket (0–30, 31–90, 91–180, 180+ days) its stock value falls into. It makes slow-moving and dead stock visible together with its value.","tables":[{"access":"read","join_on":"","role":"Unrestricted stock per plant and storage location (driving table)","table":"MARD","variant":"both"},{"access":"read","join_on":"MARA-MATNR = MARD-MATNR","role":"Material type, material group and base unit","table":"MARA","variant":"both"},{"access":"read","join_on":"MAKT-MATNR = MARD-MATNR AND MAKT-SPRAS = SY-LANGU","role":"Material description in the logon language","table":"MAKT","variant":"both"},{"access":"read","join_on":"MBEW-MATNR = MARD-MATNR AND MBEW-BWKEY = değerleme alanı (üretim yeri)","role":"Unit price for stock value","table":"MBEW","variant":"both"},{"access":"read","join_on":"MKPF-MBLNR = MSEG-MBLNR AND MKPF-MJAHR = MSEG-MJAHR","role":"Posting date of the goods receipt","table":"MKPF","variant":"ecc"},{"access":"read","join_on":"MSEG-MATNR = MARD-MATNR AND MSEG-WERKS = MARD-WERKS AND MSEG-LGORT = MARD-LGORT","role":"Receipt movements (movement type, material, storage location)","table":"MSEG","variant":"ecc"},{"access":"read","join_on":"MATDOC-MATNR = MARD-MATNR AND MATDOC-WERKS = MARD-WERKS AND MATDOC-LGORT = MARD-LGORT","role":"In S/4HANA, receipt movements and posting date in one table","table":"MATDOC","variant":"s4"},{"access":"read","join_on":"Material = MARD-MATNR AND Plant = MARD-WERKS","role":"In S/4HANA it can replace MATDOC with a clean core approach","table":"I_MaterialDocumentItem_2","variant":"s4"}],"title":"Stock Aging Report","url":"https://nekuhub.com/en/reports/stock-aging-report/","vendor_id":"nekudos"}