Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Regarding Shortdump

Former Member
0 Likes
670

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,

4 REPLIES 4
Read only

Former Member
0 Likes
553

Well what does the short dump say ??

Read only

0 Likes
553

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

Read only

0 Likes
553

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...

Read only

Former Member
0 Likes
553

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