‎2007 Feb 03 1:42 PM
Hi,
What is abap dump ?
How to see runtime errors in ABAP ?
Bye,
muttu.
‎2007 Feb 03 1:45 PM
You can check the same in Tcode ST22 (abap dump analysis ).
You can click on that particular dump and check the details .
regards,
vijay.
‎2007 Feb 03 2:16 PM
Dynamic Check
Errors that cannot be detected statically and that occur at runtime are detected by the ABAP runtime environment. Such errors lead to exceptions. If an exception is not handled or cannot be handled, a runtime error occurs. If such a runtime error occurs, the ABAP runtime environment terminates the program, generates a short dump, and switches to a special screen from which you can analyze it.
Short dumps are divided into blocks describing different aspects of the error. In the overview, you can see what information is contained in the short dump, for example, the contents of data objects, active calls, control structures, and so on. The short dump overview also allows you to display the point in the program at which the termination occurred in the ABAP Debugger.
The following kinds of errors can occur:
· Internal error
The kernel encountered an error. In this case, inform SAP.
· Installation and environment or resource error
An error that occurred due to incorrect system installation or missing resources (for example, database closed).
· Error in application program
Typical causes:
Contents of a numeric field have the wrong format.
Arithmetic overflow.
External procedure does not exist.
Type conflict when passing parameters to an external procedure.
Short dumps are retained in the system for 14 days. Use Transaction ST22 to administer short dumps. If you want to retain a short dump beyond the default 14 days, use the Keep function. If you want to delete short dumps by a date criterion other than the default 14 days, choose Reorganize. If you display a short dump using Transaction ST22, you cannot branch to the Debugger.
If problems occur in an ABAP program that you cannot solve yourself, you can send an extract of the short dump to SAP. The contents of the short dump are essential to the SAP Hotline and Remote Consulting to enable them to solve your problem.
‎2007 Feb 03 3:18 PM
this description is good and useful. Let me make 2 small additions:
A program may issue messages of different types
Type I and S are just for information, they will not affect the program flow.
W - Warnings warn you about certain things. In online programs issued during screen processing the WARNING takes you back to the screen that you have to confirm the value entered or change it.
E - will stop program flow. In online programs issued during screen processing it takes you back to the screen where you have to change something to avoid the message
X - In some situations, especially those that are not planned to occur at all, the program issues an X message. Then it terminates and creates a DUMP. This is meant to help to analyze the situation and find out how this could happen.
If a DUMP occurs in online processing the program switches to dump list screen with a DEBUG button on the top. If you´hit the DEBUG button the debugger starts and is positioned to the statement where the dump occured. All programs are still loaded in memory allowing to check all fields values, call hierarchy, system and user tables and so on.
Regards,
Clemens