SAP Message BOM254 - Bill of material is not valid

Diagnosis
You want to create or change a BOM item on a key date. However, thetask list header to which you want to subordinate the item, is invalid,or not created, for this key date.

System Response
The item can not be created.

Procedure
Select a key date on which the task list header is exists or is valid.