Clean ABAP: Writing maintainable and testable code
Having a code base, which is readable, maintainable and testable is essential for sustainable development. The book Clean Code from Robert C. Martin and some other books contain many best practices around maintainable code. Some years ago Florian Hoffmann and me started an internal repository about best practices for and readable, maintainable and testable ABAP Code. Through info sessions with many hundreds of participants, intense discussions, and great contributions, SAP colleagues helped turn this into a treasure trove for modern ABAPers.
From the exchange with customer and partners, we know that there is a huge need for such kind of best practices. Besides, many of you asked whether this would become available as a book, and whether we would be allowed to share it with our customers and partners. We came to the conclusion that this initiative gains its drive from its community, and that it needs to remain part of that community.
Therefore, we decided to make Clean ABAP an Open Source contribution:
Under the CC BY 3.0 license and open to contributions from inside and outside of SAP, we hope that this repository will eventually help the more than 1 million ABAP developers worldwide to make their ABAP code a little cleaner, day by day.
Book: Based on the ask from many colleagues, we are additionally publishing a book clean ABAP to help developers with learning and implementing clean ABAP as an individual, as a team and as an organization. The book is more content rich compared to the Open Source repository and provides more context for learning. So that it is a valuable addition for beginners and experts with many years of ABAP experience. Since 2022 we also published a German version of the book. The Open Source Repository and the book are very powerful in combination. While the book is better for learning, the repository has some advantages when it comes to code review and tools. E.g. the single chapters in the repository can be referenced in code reviews or from static code check tools.
Wider Ecosystem: Clean ABAP has created its own wider ecosystem with a community, tool support and further practices. More details can also be found behind the following links. And there is much more to come :). So stay tuned.
Clean ABAP Slack Channel: #sap-abap-clean-code
The community provided translations in many different languages. So far in Chinese (中文), Japanese (日本語), German (Deutsch), French (Français) and Spanish (Español)
If you want to get updates, you can subscribe to the free newsletter:
You can help to increase the community by sharing it: