Use
ENDABAP.
This command terminates an ABAP...ENDABAP block. No other statements are permitted on the same line as this command.