‎2007 Jul 05 6:00 AM
Hi Gurus,
I want to give one message before the program is going to dump. How to give the message before it is going to short dump.
Points will be awarded
Thanks
Ravi
‎2007 Jul 05 6:02 AM
Hi
The only way is : Go for debug mode and finf out where the program is going for dump and due to which statement/routine it's going for dump.
Place your message before that statement/routine encountered.
Regards,
Sree
‎2007 Jul 05 6:03 AM
Hi,
THe DUMP is something that is provided to you by ABAP runtime.
If you are say creating a DUMP with your code and know which part of code is going to dump you can make use of the MESSAGE statement which requires user action like an INFO messsage, message type 'I'. Then once the user interacts with the message you will get the dump.
Regards,
Sesh
‎2007 Jul 05 6:03 AM
Hello,
Use the code
CHECK sy-subrc eq 0and write the rest of the code.
Reward if found helpfull.
Rakesh.
‎2007 Jul 05 6:06 AM
Hi Ravi,
May be one thing is possible - but not the perfect answer.
Use Try- Catch Statement to catch the error and then give your message.
Refer this -
http://help.sap.com/saphelp_nw04/helpdata/en/a9/b8eef8fe9411d4b2ee0050dadfb92b/content.htm
Reward if useful!
‎2007 Jul 05 6:08 AM
hi Ravi
u can catch the exception to avoid short dupm aor give the message.
Exception will not lead to short dump
and if u mak use of Error Message then short dump wont be dispalyed
try the following code
data: obj type ref to <exception>,
text type string.
try.
code...
if sy-surc ne 0.
Message '001' (message class) raising <exception>.
endif.
catch <exception> into obj.
text = obj ->get_text( ).
write 😕 text.
endtry.
regards
ravish
<b>plz dont forget to reward points if helpful</b>
‎2007 Jul 05 6:08 AM
Hi !
You can user the pretty good ST22 to analyze the dump.
Just start it and double-click on you dump.
Then press the "ABAP-Editor" button. The ST22 will then jump to the code that caused the dump.
Hope that helped a bit.... Reward points would be nice.
‎2007 Jul 05 6:16 AM
hI,
Plz check the areas you having doubt tht this block will throw error...Try to put an error message by checking the condition...
REWARD IF USEFUL