cancel
Showing results for 
Search instead for 
Did you mean: 

Handle Errors Centrally

Former Member
0 Kudos

Hi all,

Please let me know the better approaches in handling errors in java webdynpros.

How should I use Context Value Nodes to hold the errors and display them at a later point of time.

Regards,

Somya

Accepted Solutions (0)

Answers (4)

Answers (4)

Former Member
0 Kudos

Hi,

Please have a look at this blog

Regards

Ayyapparaj

Former Member
0 Kudos

Hi somya,

If at any point in time you receive a not explainable compilation errors, select your Web Dynpro project and select "Reload". This will reload the XML files and re-created the complete coding.

for permission check errors go through :[http://help.sap.com/saphelp_nwce10/helpdata/en/12/8d9840888a2f54e10000000a1550b0/content.htm]

In some situations the child component it is, because of the potential risk of disruption to navigation, the error handling should be done in the root component. :[http://www.addon-software.de/wiki/index.php/Pattern_overview]

Regards,

Khushboo

Former Member
0 Kudos

Hi Somya

1) Create a global boolean variable

public static final boolean shw_err = true;

2) Inside your code use this Boolean variable to show the error messages accordingly

like

if(shw_err == true)
{
wdComponentAPI.getMessageManager().reportMessage(" Your message");
}

use the above code where ever required and just change the shw_err value, this will be used as Error Message ON/OFF switch. You can pass the error messages into the node and you can display when ever required

Best Regards

Chaitanya.A

siddharth_jain
Active Contributor
0 Kudos

Hi ,

Check the following thread for Message handling in WD

http://help.sap.com/saphelp_nw04s/helpdata/en/d1/1937e802d4ef4597fa14c48e66ca5d/frameset.htm

Also WD provides Message Pool where you can define user error,text and Warning messages and these messages can be shown using IWDMessageManager APis.

Siddharth

Edited by: Siddharth Jain on Aug 25, 2008 7:45 AM