Skip to Content

How send Email Notifiaction when Run time Errors occurs in Web dynpro

Hi experts,

As a part of the Project we developed many Webdypro Application and we lunching these Application from SAP portal to Customers.

Now my requirement is in the case of ABAP Run times errors (Dumps) occurs, Need to send the Notification Email to business with some basic information.

I'm trying to find some options in SICF of the Web dynpro Application.

Please I really need your help on this.

Thank you in advance.


Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • Best Answer
    Posted on Dec 19, 2013 at 04:51 PM

    HI Ventkatesh,

    I don't the exact solution. I give you one guess.

    Just Create One background Job for this take the Dump data from the ST22 and Check the object for that and send email according to that. I know that its not a solution but i give you suggestion.


    Nishant Bansal

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 30, 2013 at 05:17 AM

    Hi Venkatesh,

    When you run portal it will automatically trigger assistance class methods from webdynpro application. so you can write exceptions(Code) in assistance class method itself. Portal is only like desktop or layout how the page looks like so i hope dont want to do anything in SICF.

    Thanks & Regards,


    Add a comment
    10|10000 characters needed characters exceeded

    • Hi Venkatesh,

      You are right, it will be a very tedious job.

      Moreover, there are some errors / dumps which do not occur or show in ST22.

      As hard it may sound but I have to say that triggering an email is not possible for every scenario.

      At best, you can handle some of the most frequently occurring scenarios or others where you foresee a possibility of a dump.

      Many errors may be connection errors as well (mainly from user side). In that case as well sending unnecessary emails will only fill the inbox.

      I can give a suggestion though. If you are interested in sending emails only for the dumps that are displayed in ST22 then you may try to write a report which checks details of ST22, and picks only those dumps which are relevant to the portal and send a simple message. Then that program can be automated. Try table snap_beg.



  • author's profile photo Former Member
    Former Member
    Posted on Dec 30, 2013 at 04:28 AM


    Using SICF you can redirect to specific page when run time error occurs in Web dynpro application. But there is no option to trigger an email.

    One option to send an email is: add a TRY CATCH block in the method/event you are expecting run time error ...catch the generic exception using cx_dynamic_check and send mail there.


    "Code where run time error is expected

    CATCH cx_dynamic_check INTO oref.

    "code to send an email.


    Untitled.png (55.9 kB)
    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.