cancel
Showing results for 
Search instead for 
Did you mean: 

How to Handle Exceptions in Web Dynpro for ABAP?

Former Member
0 Kudos

Is there a simple method inside a try/catch/endcatch/endtry using the code wizard. If anyone has any documentation or suggestions I am learning and open to all.

Thank-You.

Accepted Solutions (1)

Accepted Solutions (1)

former_member342104
Participant
0 Kudos

hi,

use wizard genaral method message-raise exception

Answers (1)

Answers (1)

thomas_jung
Developer Advocate
Developer Advocate
0 Kudos

What do you mean by handle execptions? Do you just want to catch them or also issue messages? There is nothing special about catching exceptions in WDA. That is just normal ABAP stuff. WDA does have its own message manager and there is a code wizard for that. You just choose the type of message you want to issue from the code wizard and then fill in the parameters.

Former Member
0 Kudos

Hi Thomas,

is there also a way to globally handle all exceptions for a wd application or a wd component?

We would like to always show a popup window and write the exception (including stack trace) to the log file.

Thanks,

Christoph

Former Member
0 Kudos

Sorry, I don't have the answer....Good Luck.

thomas_jung
Developer Advocate
Developer Advocate
0 Kudos

You could put TRY...CATCH blocks within all of the methods of your WDA Component. However this will only catch exceptions that occur within your coding. You could of course still have exceptions occur within the framework or because of incorrect processing of the context.