SAP Knowledge Base Article - Public

3084794 - Reset Transactional Data - Error message "Material stock (company code xxxx) must be booked out in last two MM periods"


In app Reset Transactional Data, error happens after execution:

Material stock (company code xxxx) must be booked out in last two MM periods




  • It's necessary to make sure the material stocks are booked out for both previous and current period.
  • Check the help portal link.
    "Please note, however, that you can only delete transaction data at company code level when no costs or revenues have been posted for the company code. Otherwise, you have to delete the data from all company codes."


To book out the material stocks for last 2 MM periods, you can follow below suggestions:

  1. Use the app Material Inventory Value - Balance summary to find out which materials have the non-zero stock in the previous period. (You can check the current period by app Close Periods)
  2. Use app Post Goods Movement (MIGO) to book out the stocks. (Posting date should be set in previous period)
  3. Repeat above steps for current period, until you can't see any stock remaining in both current and previous period.

See Also

FINS_ML_START 013, Material stock, must be booked.

SAP KBA 3401849 EWM Stock Record cannot be removed with previous posting period - SAP S/4HANA Cloud


KBA , CO-PC-ML-2CL , Material Subledger (Public Cloud) , CO-PC-ACT-2CL , Actual Costing (Public Cloud) , Problem


SAP S/4HANA Cloud all versions