ERPClimb logoERPClimb
Debugging
ABAP Developmentintermediate 7 min read

Debugging Part 6: ST22 Short Dump Analysis

Preview · a free account unlocks the full lesson

Key takeaway

Read ABAP short dumps in ST22: runtime error name and exception class, "What happened", "Error analysis", "How to correct", source code extract, active calls (call stack), chosen variables, user and transaction, and the most common dumps with their typical causes and fixes.

In this lessonShow sections

Visual overview

Debugging Part 6: ST22 Short Dump Analysis — learning sheetFlow: Run the code example to create a controlled dump in a sandbox → Analyse it in ST22 section by section → Fix with TRY/CATCH and rerun. Key ideas: FINDING THE DUMP; SECTIONS; COMMON DUMPS; FIX PATTERN. Watch out: A dump in SAP standard code is often caused by custom data or exits (e.g. wrong values passed) — check the call stack for Z code before opening an SAP incident.ERPClimb.com / ABAP / LESSON 6/10 / LEARNING SHEETDebugging Part 6: ST22 Short Dump Analysis1 · HOW IT FLOWS1Run the code example tocreate a controlled dumpin a sandbox2Analyse it in ST22section by section3Fix with TRY/CATCH andrerun2 · KEY IDEAS EXPLAINEDFinding The DumpST22 → select by date, user, program; dumps arekept for a limited time (default about 14 days).SectionsShort text and runtime error: category of theproblem.What happened / What can you do: generalexplanation.Common DumpsCONVT_NO_NUMBER / CX_SY_CONVERSION_NO_NUMBER: textinto numeric field → validate/convert input.BCD_ZERODIVIDE: division by zero → check divisor.Fix PatternUnderstand the data that triggered it → fix code(validation, TRY/CATCH, guards) or data → testwith the same data.3 · REMEMBER · WATCH OUTRememberST22 shows every runtime error with name (e.g. CONVT_NO_NUMBER),exception class (CX_SY_CONVERSION_NO_NUMBER), program, line, user and…Read in this order: short text → "What happened" /"Error analysis" → "Source code extract" (the…"Debugger" button (for recent dumps in some cases) orreproducing with a breakpoint at the failing line gives the full…!Watch outA dump in SAP standard code is oftencaused by custom data or exits (e.g.wrong values passed) — check thecall stack for Z code before openingan SAP incident.4 · IN A REAL PROJECTA nightly interface dumped with CONVT_NO_NUMBER in a standard function module. The team was about to open anSAP incident, but the "Active calls" section showed a Z mapping program passing a quantity fieldcontaining "1,5" (comma decimal) from a partner file. Adding input normalisation in the mapping and…Original ERPClimb learning sheet • Verify against your SAP release and edition

Explanation

Parts 2 through 5 debugged running code; when a program terminates outright, ST22 is where to start. It shows every runtime error with its name, such as CONVT_NO_NUMBER, its exception class, such as CX_SY_CONVERSION_NO_NUMBER, along with the program, line, user, and time involved.

The recommended reading order is: the short text, then "What happened" or "Error analysis," then the "Source code extract" showing the failing line, then "Active calls" for the call stack, and finally "Chosen variables." A "Debugger" button is sometimes available for recent dumps, and failing that, reproducing the issue with a breakpoint set at the failing line gives you the same full context.

One useful habit: a dump occurring in SAP standard code is very often actually caused by custom data or custom exits passing in wrong values, so check the call stack for Z code before opening an SAP incident.

To find a dump, go to ST22 and select by date, user, or program — dumps are only kept for a limited time, by default around 14 days.

Reading through the sections: the short text and runtime error name give you the category of the problem. "What happened" and "What can you do" give a general explanation aimed at any user. "Error analysis" gets specific — for example, stating plainly that the value 'ABC' couldn't be interpreted as a number.

"How to correct" carries SAP's own hints, and it's worth searching SAP notes using the runtime error name plus the program name. The "Source code extract" shows the failing statement marked with >>>. "Active calls" or "events" is the call stack — look through it for the first program that's actually yours.

And "Chosen variables" shows the actual values in play at the moment of the dump.

Free account

Create a free account to keep reading

You have read the opening of this lesson. A free ERPClimb account unlocks the rest of it, every other lesson and topic, and your learning history, so you can pick up exactly where you stopped. No card needed.

  • Full explanation
  • Code example
  • Real project scenario
  • Common mistakes
  • Best practices
  • Interview angle

One tap with Google works too. Every topic keeps its first lesson open to everyone.

Keep exploring

Referenced SAP objects

Reviewed reference pages for the objects this page mentions.

Check before use: lesson examples are educational, not a guarantee of correctness for your SAP edition or release. Sample code has not been executed on your SAP system. Confirm API availability, syntax, authorizations and business impact in an approved development or test environment.