SAP Message >0397 - Alternative posting date to &1 cannot be determined

Diagnosis
The posting date &V1& defined is no longer permitted in company codeV2. all later posting periods up to fiscal year v3 are also closed.

System Response
The document cannot be posted.

Procedure
Check and correct the postable periods for company code &V2&.