A tool is enough
- Unify formatting and spelling
- Replace obsolete statements such as CALL METHOD
- Find rule violations, in the editor or in CI
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.
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.
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.
Clean ABAP belongs to the first two levels of the ASE coaching program.