‎2005 Jun 26 3:09 AM
Dear guys,
Could you pls tell me what are the possible reasons could lead to short dump.
I have my abap program which leads to short dump.Generally i want to restrict the display of shortdump.
what are the precaution steps can i take as an abap programmer.
could you pls point me....
Ambichan,
‎2005 Jun 26 3:18 AM
‎2005 Jun 26 3:24 AM
hey,
if i know shortdump i think i can easily trace out.
But my doubt is how to be precaution in programs GENERALLY to avoid shortdump.
Bcause, we use many FM, and subroutine programs in one ABAP Program and not sure which will raise SHORTDUMP IN FUTURE.
ALL THAT I WANT IS, just CATCH the SHORTDUMP and have to raise the USER EXCEPTION TO USER.
I need to know GENERAL precaution to Avoid SHORTDUMP in my abap program.
(any ideas like using EXCEPTION Statement in subroutines?)
got my point..
ambichan.
Message was edited by: ambi chan
‎2005 Jun 26 4:12 AM
Well
If you check all your input data make sure there is no logic errors and raise/catch all your exceptions correctly you should not get a short dump...
Now for that to happen right your program must be flawless or correctly catch the odd error like division by zero and so on ...
Enjoy
Message was edited by: F.J. Brandelik
By definition a short dump is not catchable because it happens when the process encounters an error condition that it does not know how to recover from... i.e. you did not specify the correct catch clause....
The only way to avoid that is ANALYZE the eventual short dump and MODIFY the program to catch the corresponding error condition and to handle it in consequence...
‎2005 Jun 26 4:32 AM
And there are errors that I don't think can be caught by CATCH, like timeouts or errors when calling SAP FMs.
Avoiding dumps is an ideal goal, but not realistically achievable with the current software.
Even if you could write a complex program that covered every conceivable situation, it would take so long to write, that the users would rather put up with an occasional dump than pay for a program that takes too long to develop. It's a necessary trade-off.
Rob