SAP Message WD021 - Save the workflow before document templates are created

Diagnosis
Document templates are always assigned to a workflow definition. Atleast one version of the workflow must be saved.

Procedure
Save the workflow definition. You can then create document templates.