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.

Venky.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • Best Answer
    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.

    Regards,

    Nishant Bansal

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    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,

    Meenachi.R

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

      Regards

      Anurag

  • avatar image
    Former Member
    Dec 30, 2013 at 04:28 AM

    Venkatesh-

    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.

    TRY.

    "Code where run time error is expected

    CATCH cx_dynamic_check INTO oref.

    "code to send an email.

    ENDTRY.

    Add comment
    10|10000 characters needed characters exceeded