2018 Jun 26 7:02 PM
I'm not sure what's causing this and it appears to be an issue across all our developers, but when we click "Pretty Printer" button in editor, all the code gets aligned as normal however the new FORMs and MODULEs added don't get the comment header blocks.
Note, yes I'm sure the forms and modules aren't preceded by a comment line :).
Thanks for your help!
2018 Jun 26 7:10 PM
Hello,
The behavior has changed. Please check note 2038638 - Pretty Printer changes as of Basis Release 740:
Solution:
1.
The "Pattern" function in the ABAP Editor provides a manual alternative for generating and inserting standard comments.
– In change mode, position the cursor on a FORM or MODULE statement.
– Open the "Pattern" dialog. In the "Other Pattern" field, enter one of the following:
– *F for subroutines
– *M for modules
After you close the dialog, the system inserts the relevant standard comment above the FORM or MODULE statement.
2.
The two blank characters before METHOD in the form-based Class Builder can be deleted to restore the old display. The system can then be formatted as usual.
2018 Jun 26 7:10 PM
Hello,
The behavior has changed. Please check note 2038638 - Pretty Printer changes as of Basis Release 740:
Solution:
1.
The "Pattern" function in the ABAP Editor provides a manual alternative for generating and inserting standard comments.
– In change mode, position the cursor on a FORM or MODULE statement.
– Open the "Pattern" dialog. In the "Other Pattern" field, enter one of the following:
– *F for subroutines
– *M for modules
After you close the dialog, the system inserts the relevant standard comment above the FORM or MODULE statement.
2.
The two blank characters before METHOD in the form-based Class Builder can be deleted to restore the old display. The system can then be formatted as usual.
2018 Jun 27 2:08 PM
Thanks for the clue... that link didn't work for me however I got the note and it appears this is by design 😐
The workaround in the note makes no sense - it doesn't work around generating standard comments for FORM/MODULE.
The other way seems to still work;
1. code your logic which calls the new form/module
2. double click the new object name and let SAP create the object... it will create it with the header comments.
2018 Jun 27 2:59 PM
New forms? Forms are obsolete now - there shouldn't be any new forms.
2018 Jun 27 3:58 PM
2018 Sep 19 8:42 AM