SAP Message WN050 - Department &1 not maintained in plant &2

Diagnosis
You cannot assign the specified department to the material groupbecause it is not maintained in the plant.

Procedure
Assign a department maintained in the plant to the material groupor create the department for the plant in the plant master.