Technical Articles
Clean ABAP
Under the CC BY 3.0 license and open to contributions from inside and outside of SAP, we hope that this repository will help developers worldwide to make their ABAP code a little cleaner, day by day.
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.
Besides, there has been a podcast published recently. More details can also be found behind the following links :
- Clean ABAP as a Foundation for improvements
- Clean ABAP Slack Channel: #sap-abap-clean-code
- Static Code Checks with CodePal
- Static Code Checks with abaplint
- Code Review Setup and Practices
- Translations to Chinese (中文), Japanese (日本語), German (Deutsch), French (Français) and Spanish (Español)
Subscribe to Newsletter: Collaboration on Improving
If you do not miss an update on Clean ABAP, Clean SAPUI5, test automation, testability and other engineering / craftsmanship / architecture topics, subscribe to the brand new newsletter. The newsletter will not only be used for sharing knowledge, but also offer opportunities for collaboration, building communities and co-creation.
As a big fan of clean code principles, I can only say this is a wonderful initiative. Thanks for making it public!
It's amazing how difficult it is to convince people to write easily readable code, this will help.
Great reading, thanks for sharing
This is pretty great, amazing work!
Great stuff!
Awesome, thanks for sharing,
Excellent job! Thanks for sharing this great stuff with the community. Every ABAP developer should know and use Clean Code. This makes the ABAP world a bit better for all of us.
Great, there's a great need (I would almost say desperate) for this, will definitely share it with my team. I did put the Clean Coder book in our bookshelf, no one has touched it 🙂
Thank You Klaus Haeuptle and Florian Hofmannfor this great initiative.
Great Stuff!!
This is a great and usefull initiative!
I love to see ABAP to support method name longer 30 characters.
Every training I give starts with the chapter "Clean Code". With the "new" ABAP it's so easy to implement, but a bit hard to teach (like the use of Eclipse).
Thank you for this initiative.
This is so recognizable.
Bookmarked in the section "important", thanks for an awesome contribution.
I've spotted stuff that I'm doing right... and stuff I do that maybe I'll think about changing!
This is really a fantastic initiative...Thanks for sharing the great things for ABAPers...kudos Klaus
I really appreciate a blog on this topic, coding best practices in ABAP has been neglected for far too long! We can sure make use of this where I work, looks like I have some reading to do though!
Just amazing! Awesome blog – great initiative.
Jelena Perfiljeva Paul Hardy
I have been reading this online document the last few days. Lars Hvam told me about it in Copenhagen over the weekend.
I don't think any programmer will ever agree with 100% of it, but the vast majority makes a lot of sense to me.
In my experience, there is never 100% agreement among programmers on anything. 🙂
We can agree on that 🙂
I disagree. 😉
Thanks for putting this together! I'm just scratching the surface at the moment, poking around a bit here and there and already found lots of stuff we should (perhaps) do differently. Not too suprisingly, I also happened upon several items which fly right over my head as I just don't do much programming (and then just a little bit with OO) nowadays.
Definitely lots of food for thought to digest and then share with others!
Cheers
Bärbel
Good Morning.
Excellent news
VERY nice! Good to see something "new" finally come out after seeing the same old style/standards guide from back in the 1990s still making the rounds! haha
Some books should come with self-destruction mechanism. 🙂
ABAP guidelines were published back in 2009 by SAP Press though, but I find even those would still be novelty to some developers.
Correction: ARE a novelty to MANY developers, even whole organisations.
Even though everything in that book is also in the ABAP online documentation.
Personally, I find the whole “Uncle Bob” cult following annoying and, by association, dislike the words “Clean Code”.
But I am a big fan of the streamlined and optimized code (I just simply call it “code”
) and this is really an excellent initiative! I like the “cheat sheets” a lot, this is very handy. And the fact that this is available on Git and not as a $60 book – this is just fantastic. Well done and thank you for sharing!
Well deserved title of probably the most liked and commented SCN blog of 2019.
Very good content !
Thanks!
Just Wonderful.
Thanks a lot.
Elias
very nice article !
Thank you for this initiative, its way to go
Thanks for the blog
In Correctness and Quality of ABAP help they say: that as a good practice to run not only unit tests but scenario tests also. You have mentioned nothing about scenario tests for ABAP-environment.
However still for now in fact the scenario testing is important testing.
Do you need such kind of “drive from … community” about automation scenario testing in ABAP-development ? )
“We encourage you to get rid of all encoding prefixes.”
From my exprerience that wlll be one of the hardest! ABAPers do like their prefixes.
Edit: After reading it all, I just have to congratulate you guys on a job well done. I'm going to apply this for all this greencode because I agree with like everything and the examples "Do" and "Don't" give an excelent picture. Unfortunately most of the code you see today uses the "don't" examples.
Excellent work!
Lots of topics to evaluate and discuss, particularly for those of us on older versions.
I was made aware of the Github link via the Fediverse some time ago and now also found this blog.
Very nice, I like it a lot!
best
Joachim
It is so nice to see how SAP is evolving and always up to the market and sometimes even ahead. Thank you Klaus Haeuptle for this blog.
Thanks for sharing Klaus Haeuptle
Praveer.
Interesting to see this blog still featured on the community front page - in as 'most liked' and 'trending'
...shouldn't there be some kind of cap, maybe?! OK for it to be "most liked" for as long as that's the case - the metrics are easy here (just count + compare likes).
But if something is trending for about a year already? What exactly is the metric here?
Thanks to all contributers for this amazing work!
A contrary view: It's probably time to stop recommending Clean Code
(Same web site contains 3 really innovative and mind-blowing hard science-fiction novels!).
Good one.
Thanks for this styleguide!
Every SAP Developer should read this guide.
I am wondering when SAP itself will write clean code. I just had a look at the central function module of material requirement planning. Even the name violates clean principles "DO_DISPOSITIONSRECHNUNG" 🙂 When will SAP stop with "Denglish"
If you look into the code of DO_DISPOSITIONSRECHNUNG nearly every line of code is against the principles.
Rüdiger Hodapp If Time_Machine invented.
Time_Machine->GoBackinTimeAndAlterCode( fm = DO_DISPOSITIONSRECHNUNG style = CleanCode years = 25 ). endif.