SAP Message 64859 - Valuation for ID number &1 not possible in company code &2

Diagnosis
The period must be closed before the valuation.

System Response
The valuation cannot be carried out for this ID number in the companycode specified.

Procedure
Start the period-end closing report.
IF &DEVICE& = 'SCREEN'
Execute function.
ENDIF