‎2007 Nov 27 2:00 PM
I am suddenly getting the following message when trying to
format my code in the ABAP workbench:
Check your source text from line 1087.
Formatting probably contains errors.
Possible causes: syntax errors or macros in source text.
I have no macros and the syntax check passes.
What could be preventing pretty printer from working?
‎2007 Nov 27 2:07 PM
Hi,
I had a similar problem once that was caused by 'unusual' characters at the end of some of the lines of code. These were only visible when I switch to the old-style back-end editor, where they appeared #.
I suspected the code had been pasted from somewhere and brought over this characters. Once deleted the PP worked fine.
Regards,
Nick
‎2007 Nov 27 2:06 PM
hi Gregory,
syntax check really does not retunr any error/warning? I have this kind of error, when IFs or CASEs are not closed. Other option could be that you have text literals more than one line.
ec
‎2007 Nov 27 2:07 PM
Hi,
I had a similar problem once that was caused by 'unusual' characters at the end of some of the lines of code. These were only visible when I switch to the old-style back-end editor, where they appeared #.
I suspected the code had been pasted from somewhere and brought over this characters. Once deleted the PP worked fine.
Regards,
Nick