cancel
Showing results for 
Search instead for 
Did you mean: 

Catch Web dynpro errors

hadar_morchi
Participant
0 Kudos

Hi,

I have a Web dypro for java code to connect to an RFC .

it looks like this :


try {
 wdContext.currentRsbb_Nodes_Read_With_Filter_InputElement().modelObject().execute();
} 
catch (WDDynamicRFCExecuteException wde) {
 msgMgr.reportException("Problem", true);
} catch (Exception e) {
 msgMgr.reportException(e.getMessage(), true);
}

I have two problem :

When the user does not exist in the R3 system or when the JCO failed to connect this user [SSO problems]

The Pages is shown with an error message that are not understood to a simple user ...

how can I catch those errors and display my one messages based on the actual cause of the errors.

just to be clarify . even thought I have a try catch in the code , in a debug I can see the program are reaching to the WDDynamicRFCExecuteException but ... it display :

"500 Internal Server Error .... "

Or

"Could not create JCOClientConnection for logical System..."

Thanks in advance

Hadar

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

HI,

To see the error,

catch(Exception e)

{

msgMngr.reportException("Exception is : "+e,true);

}

Regards

Fahad Hamsa

hadar_morchi
Participant
0 Kudos

Hi Fahad,

I tried that as you can see in the code I have attached ...

in no circumstances I get the error message , only

"500 Internal Server Error

Web Dynpro Container/SAP J2EE Engine/6.40

Failed to process request. Please contact your system administrator. .... "

while writing this message .. I got an idea of creating new iview ... something like ErroriView that will display when an error message is pop ... I'm currently working in that direction and I'll update ...

Thanks,

Hadar

hadar_morchi
Participant
0 Kudos

Well ...

creating new iview ,ErroriView that displays when an error message is pop ... works fine !

Just letting you know

Bye,

Hadar