Message SAP WZ352 - Task &1 cannot be executed via HTML form

Diagnosis
A task can only be executed using an HTML form (SAP Form) if its methodwas inherited from method 'HTMLProcess' of object type 'FORM'. However,this does not apply to task &v1&.

Procedure
Enter a suitable method or object type for the task.