The good news is that t-code MMPV (Close Period for Material Master Records) is easily set up as a background job to run automatically each month.
We have ours set up using TIDAL to run at midnight on the last day of the month.
Very simple to set up once you’ve created your selection variant.
Overview of MMPV
There are a number of activities that are managed by period in the materials ledger including: certain stock totals valuations, price units, goods movements, etc.
MMPV executes program RMMMPERI to close the current period and open the new one.
The screenshot below shows how we would set up the screen to close June, 2007 and open July, 2007: