Skip to Content
2
May 26 at 04:04 PM

Syntax error There must be a space or equivalent character (":", ",", ".") after "a literal"

155 Views

Just for fun. I reproduce this bug (?) with ABAP 7.52 SP 0.

I have a syntax error "There must be a space or equivalent character (":", ",", ".") after "` files)</tspan></text><rect x="0" y="0" width="146.603" height="96.`" if you exactly write this in your program

REPORT zreport.
class lcl_app definition.
  public section.
    methods test.
endclass.
class lcl_app implementation.
  method test.
data(a) = ``
&& ` files)</tspan></text><rect x="0" y="0" width="146.603" height="96.`
&& ``.
  endmethod.
endclass.

Any little change and the error vanishes.

Outside method, it becomes a syntax warning:

REPORT zreport.
data(a) = ``
&& ` files)</tspan></text><rect x="0" y="0" width="146.603" height="96.`
&& ``.

Any little change and the warning vanishes.

I don't have the slightest idea what could be the reason!

Can you find the minimal reproducible code? Have fun :)