Automatically create a program using Pretty Printer

I generated the program through INSERT REPORT ...

I would like to know if there is a way to apply the Pretty Printer tool in this program automatically.

+5
source share
1 answer

Base 7.50:

With enough printing, the ABAP editor calls pg_pretty_print FORM in the LLOCAL_EDT1F08 program. It calls the format_source cl_sedi_pretty_printer method, which runs FM PRETTY_PRINTER inside it.

Basis 7.40 and up to:

With enough printing, the ABAP editor calls pg_pretty_print FORM in the LLOCAL_EDT1F08 program. It calls FM PRETTY_PRINTER inside it.

Normal thing PRETTY_PRINTER . If you debug it and you check the parameters, you can see that otext (old source) goes to ntext (pretty printed). This way you can print the source code before saving it.

+7
source

Source: https://habr.com/ru/post/1268229/


All Articles