SAP Message WRF_CONS306 - Error determining the period (date: &1; company code: &2)

Diagnosis
An error occurred when calculating the period during stock determination(date: &1; company code: &2).

Procedure