Skip to content
ASE Academy

Clean ABAP, in real code.

Clean ABAP applies the principles of Clean Code to ABAP, as described in SAP’s Clean ABAP style guide. In one-to-one coaching at ASE Academy, you work on your own ABAP code and decide with your coach which case to protect with a test before you change anything.

What is Clean ABAP?

The guide also covers legacy code: refactor in small steps, agree as a team on which conventions to follow, and sometimes keep old prefixes in existing objects so they stay readable.

What ABAP Cleaner automates

ABAP Cleaner, SAP’s open-source tool for ADT, applies many rules of the guide automatically. It can rewrite the call CALL METHOD me->calc_total … RECEIVING from the example above into a functional call. abaplint checks your code statically, including in CI, and the ABAP Test Cockpit runs the checks specified in your check variant.

What no tool does for you: choosing meaningful names, splitting the logic into methods such as discount_on, and deciding which behavior to pin down with a test before you change the code. In the example it is the edge case: an order of exactly 200 gets the discount. If the refactoring accidentally changed the condition to require more than 200, the test would fail at once.

Tool or coaching?

A tool is enough

Coaching helps

Clean ABAP in the program

Clean ABAP belongs to the first two levels of the ASE coaching program.

ABAP coaching at a glance 

Your questions

Does Clean ABAP apply to legacy code?
Yes. The guide itself describes how to refactor legacy code step by step. During coaching, you practice refactoring your own code.
Do I have to use ABAP Cloud?
No. You can apply Clean ABAP in classic ABAP too. Which syntax you can use depends on your release.
How does Clean ABAP relate to Clean Core?
Clean Core is SAP’s approach to an upgrade-ready system, including extensions through released APIs. Clean ABAP makes code readable and testable. Clean code can still use an unreleased API, so the two complement each other.

Book an intro call