cancel
Showing results for 
Search instead for 
Did you mean: 

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

0 Kudos

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.

Accepted Solutions (1)

Accepted Solutions (1)

nishantbansal91
Active Contributor
0 Kudos

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

Answers (2)

Answers (2)

Former Member
0 Kudos

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

0 Kudos

Hi Sathish & Meenachi,

Thanks for the response. Are you asking me to place my codes inside a Try block and catch the exception through assitance class method?

My requirement is a email has to be triggered independent of any event or method throws a runtime error. Since my application is implemented with many web dynpro components there are more than 100 methods and events, moving all those codes into a try block might be tedious job.

Thanks,

Venky

anurag_abbi_tm
Participant
0 Kudos

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

Former Member
0 Kudos

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.