SAP ABAP Message Class OO_SOURCE_BASED Message Number 038 (The statement &1 is unexpected)
Hierarchy
SAP_BASIS (Software Component) SAP Basis Component
   BC-DWB-TOO-CLA (Application Component) Class Builder
     SEO_SOURCE_BASED (Package) Source-based Class Editor
Attribute
Message class OO_SOURCE_BASED  
Short Description WB - Class Builder - Messages for the source-b. Class Editor    
Message Number 038  
Documentation status       Space: object requires documentation
Authorization check Error Message      
Changed On 20130531   
Message Text
The statement &1 is unexpected
Help Document

Diagnosis

The class can't be separated into its different source parts (public-, protected-, (package-,) private section or method implementation).

System Response

A warning will be sent and the changes won't be stored.

Procedure

Please check whether the source contains the following statements:

CLASS <class_name> DEFINITION.
...
ENDCLASS.

CLASS <class_name> IMPLEMENTATION.

METHOD <method_name_1>.
...
ENDMETHOD.

...

METHOD <method_name_n>.
...
ENDMETHOD.

ENDCLASS.

It is also important to check that the public-, protected-, (package-) and private section are in the correct order.

The syntax check will help you to determine where the class structure is insufficient.

Procedure for System Administration

History
Last changed on/by 20130531  SAP 
SAP Release Created in