Application Development and Automation 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: 
Read only

Pretty Printer

Former Member
0 Likes
1,103

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?

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
831

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

2 REPLIES 2
Read only

JozsefSzikszai
Active Contributor
0 Likes
831

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

Read only

Former Member
0 Likes
832

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