Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Error "The statement ENDCLASS is unexpected"

Brice1
Explorer
0 Kudos

Hi team, 

I am trying to create 'Hello World' application in an ABAP class. But I have the error message: 

"The statement ENDCLASS is unexpected" as shown in the attachment. 

Please assist.

Brice1_0-1707414615414.png

 

3 REPLIES 3

ricky_shaw
Contributor

Try putting a full stop '.' on line 10 (end)

matt
Active Contributor

First of all, when you post code, use the nice code feature. If you don't see the HTML button in the toolbar, then click on the two dots

Anyway, you can see there's an error around METHOD, since it's in red. And I'll tell you that each line needs to end with a period/full stop/.

0 Kudos

at a period at end of line 19.