SAP Message REBFRS001 - Syntax error in class &1 (see long text)

Diagnosis
The generated class &V1& contains the following syntax error:
V2

System Response
For more information on the position of the error, perform the 'Check'function for class &V1& using the Class Builder (SE24).

Procedure
Correct the template used or the settings in the class registry, andthen generate the class again.