Skip to Content
Product Information
Author's profile photo Frank Müller

AMDP Pretty Printer

Maybe you know the blog post from Thomas Fiedler Where to hell is the Pretty Printer?

Since 2019 I am wondering where to hell is the Pretty Printer for AMDPs.

The SAP standard Pretty Printer (ABAP Source Code Formatter) does not really format the AMDP source code.

Therefore, I developed in my spare time an AMDP Pretty Printer. It is not an SAP product.

It has the following main features:

  • Write key words upper case and the rest lower case
  • Indent the AMDP (SQL) source code of the class
  • Leave the ABAP part of the class as it is

Here is a short demo:

The AMDP Pretty Printer consists like the SAP ABAP Development Tools of a Rest Service in the SAP Development System that contains the Pretty Printer logic and an Eclipse Plugin that calls the Rest Service and adjust the coding.

You can find it with an installation manual on my github account (MIT license).

It saves me a lot of time during the development of AMDPs and it makes the source code more legible. I’m sure it will help you, too.

I’m looking forward for your feedback.

Best regards


Assigned Tags

      You must be Logged on to comment or reply to a post.
      Author's profile photo AjeethKumar R
      AjeethKumar R

      Really a great work Frank. Thanks for bringing this.

      Author's profile photo Frank Müller
      Frank Müller
      Blog Post Author

      Thank you AjeethKumar R.

      Author's profile photo Peter Inotai
      Peter Inotai

      Thanks Frank for this add-on.

      It's a pity that it's not part of standard, but I like the idea that the ABAP community is implementing such useful functionalities as an add-on.

      I don't work much with AMDB yet. However I've installed on our S/4HANA sandbox system. It works fine and it's very useful.

      Report ZAPP_PRETTY_PRINTER_TEST is very nice, too.

      Author's profile photo Frank Müller
      Frank Müller
      Blog Post Author

      Thank you Peter. The ABAP community is great. Unfortunately, is the ADT SDK not so well documented like for example SAPUI5. I think there would be much more great community tools, if SAP would invest in it.

      Author's profile photo Nagamani Lb
      Nagamani Lb

      Hi Frank,

      I tried the pretty printer in Eclipse version 2022-03, but it doesnt work. If i click on the pretty printer button i am getting the below error, can you please advice.




      Author's profile photo Frank Müller
      Frank Müller
      Blog Post Author

      Hi Nagamani,

      sorry for the late reply.

      A colleague of me had a similar issue. Therefore, I added more details to the error message.

      See also here:

      As he tried the new version then the error did not appear again (whyever).

      So please try the new version.

      Best regards