Application Development 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: 

Pretty Printer not adding FORM... MODULE... headers

former_member647362
Discoverer
0 Kudos
2,296

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!

1 ACCEPTED SOLUTION

natiele_bohn
Product and Topic Expert
Product and Topic Expert
222

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.

5 REPLIES 5

natiele_bohn
Product and Topic Expert
Product and Topic Expert
223

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.

0 Kudos
222

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.

matt
Active Contributor
222

New forms? Forms are obsolete now - there shouldn't be any new forms.

Jelena_Perfiljeva
Active Contributor
0 Kudos
222

Hahahahahahaha!!!! Good one! 🙂

matt
Active Contributor
0 Kudos
222

Deleted as spam