What do you look for when you review a junior developer's ABAP, and how do you give the feedback?
Say your answer out loud first.
Practise another way
First I check it does what the ticket says, with a test or a quick run. Then the risky things: SELECT inside loops, missing authority checks, hard-coded values, no error handling. After that readability: names, short methods, no obsolete statements.
I give feedback in person or in the pull request as a question first, one or two main points, praise something real, and I link a rule. I make sure it teaches, not just corrects.
A review has two jobs: protect production and grow the developer. Say both.
What to check, in order
- Does it solve the stated need? Read the ticket, then the code. Run it with a normal case and a nasty case (empty selection, one million rows).
- Production risks.
SELECTinside aLOOP,SELECT *, missingWHEREon a big table, noFOR ALL ENTRIESempty-table guard (classic code) or an unbounded result set.- Missing
AUTHORITY-CHECK, hard-coded users, client or plant values. - Commit inside a method that should not commit, missing enqueue lock on updates.
- Errors swallowed:
sy-subrcignored, no exception class, no application log.
- Maintainability. Descriptive names, small methods with one job, constants instead of magic numbers, no obsolete statements, inline declarations where they help. The Clean ABAP guide from SAP is a good neutral reference, so the discussion is about a rule rather than the reviewer's taste.
- Tests and tools. ABAP Unit for the logic, an ATC run with no priority 1 or 2 findings, and a transport that contains only what it should.
- Upgrade safety. New code should use released APIs where the system allows it.
How to give feedback
- Prefer a pull request or a short call within a day while the work is fresh.
- Ask before telling: "What happens here if the table is empty?"
- Limit to the 2 or 3 points that matter. Mark style nits separately as optional.
- Name one thing done well and be specific.
- Link the rule or the trace that proves the point (an ST05 trace beats an opinion).
- For a repeated issue, add it to a team checklist or an ATC check rather than commenting again.
" Review comment example: unbounded read plus loop select
LOOP AT lt_orders INTO DATA(ls_order).
SELECT SINGLE name1 FROM kna1
WHERE kunnr = @ls_order-kunnr INTO @DATA(lv_name).
ENDLOOP.
" Suggest: one SELECT with JOIN or FOR ALL ENTRIES on the whole set
Metric. After a month the same issue should not appear twice from the same person. If it does, the feedback was not understood, so change the method (pairing instead of comments).
Lists risks before style, gives few focused comments with a reason and a rule, and tracks whether the junior improves.
Rewrites the code themselves, or leaves thirty nitpick comments with no priority.
Reviewing for personal style and missing the performance, authority and error-handling risks.
- The junior disagrees with your comment. What now?
- What would you automate in review?
- How do you review a transport you did not write?
- What is a review comment you regret?
1 candidate write-up, 2 official pages and 1 prep guide. Confidence: medium. Checked 3 Dec 2026.
- Prep guide Gives the question.
- Official page Backs the answer.
- Official page Backs the answer.
- Candidate write-up Gives the question.