Skip to Content
Former Member
Mar 26, 2007 at 12:51 PM

How to analyse the access deny failure from R/3


Hi, everybody

I have a simple task: create the WDP application with one view - screen with students list. Student list retrieved from R/3 function via RFC adaptive model. This app requires authentication. The R/3 function has an access restriction for "Student" user. (SSO working properly). The requirement is when I log in under the Student - this app must show me the second view with a message "User ... have no rights".

This is the code

try {
    wdContext.currentZnrx_Get_List_Students_InputElement().modelObject ().execute(); //just trying to get some students list via R/3 function
} catch( e) {
  //analyse what the reason of this exception

Could you please give a hint, how can I be sure about the reason of thrown exception? That it is exactly related to access rights failure. The error key of thrown exception is too common (RFC_ERROR_SYSTEM_FAILURE)

I really don't want to parse the text which getCause() method returns.