SAP Message WRF_CONS308 - Posting to previous period not possible for company code &1

Diagnosis
An error occurred during stock determination: Posting to the previousperiod is not allowed for valuation area &1.